Repository navigation
Cannot impl auto traits for free alias types that expand to otherwise legal self type #157756
Copy link
Copy link
Closed
Labels
A-auto-traitsArea: auto traits (e.g., `auto trait Send {}`)Area: auto traits (e.g., `auto trait Send {}`)A-coherenceArea: CoherenceArea: CoherenceC-bugCategory: This is a bug.Category: This is a bug.F-checked_type_aliases`#![feature(checked_type_aliases)]` (formerly: `lazy_type_alias`)`#![feature(checked_type_aliases)]` (formerly: `lazy_type_alias`)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Description
Activity
- addedT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.C-bugCategory: This is a bug.Category: This is a bug.A-auto-traitsArea: auto traits (e.g., `auto trait Send {}`)Area: auto traits (e.g., `auto trait Send {}`)T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.A-coherenceArea: CoherenceArea: CoherenceF-checked_type_aliases`#![feature(checked_type_aliases)]` (formerly: `lazy_type_alias`)`#![feature(checked_type_aliases)]` (formerly: `lazy_type_alias`)
on Jun 11, 2026 - addedneeds-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triagingThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
on Jun 11, 2026 - removedneeds-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triagingThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
on Jun 11, 2026 - added a commit that references this issue
on Jul 3, 2026 - added 2 commits that reference this issue
on Jul 5, 2026 - added a commit that references this issue
on Jul 5, 2026 - added a commit that references this issue
on Jul 6, 2026
Metadata
Metadata
Assignees
Labels
A-auto-traitsArea: auto traits (e.g., `auto trait Send {}`)Area: auto traits (e.g., `auto trait Send {}`)A-coherenceArea: CoherenceArea: CoherenceC-bugCategory: This is a bug.Category: This is a bug.F-checked_type_aliases`#![feature(checked_type_aliases)]` (formerly: `lazy_type_alias`)`#![feature(checked_type_aliases)]` (formerly: `lazy_type_alias`)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.
Type
Projects
- StatusShow more project fieldsDone
We just need to call
expand_free_alias_tyson the self type in the relevant place inrustc_hir_analysis::coherence::orphan.