-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
incorrect resolutions for type dependent paths in struct expression #98711
Copy link
Copy link
Open
Labels
A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.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.
Metadata
Metadata
Assignees
Labels
A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
stores the following resolution for
Self::Outputviafn write_resolution:the
node_substsforSelf::Outputare however empty. This makes the stored resolution completely useless as there isn't really a way to go fromFoo::OutputtoType<T>::Outputwhich is what we actually need.We should probably store
<Foo as Type<T>>::Outputinstead. This happens hererust/compiler/rustc_typeck/src/check/fn_ctxt/checks.rs
Lines 1592 to 1605 in 7425fb2