-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Make AssocItem
aware of its impl kind
#145186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
rustbot has assigned @petrochenkov. Use |
Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred in compiler/rustc_sanitizers cc @rcvalle changes to the core type system Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt Some changes occurred in compiler/rustc_passes/src/check_attr.rs This PR changes rustc_public cc @oli-obk, @celinval, @ouz-a Some changes occurred in compiler/rustc_codegen_ssa |
This comment has been minimized.
This comment has been minimized.
0617ff2
to
cfed1ee
Compare
The job Click to see the possible cause of the failure (guessed by this bot)
|
The general goal is to have fewer query dependencies by making
AssocItem
aware of its parent impl kind (inherent vs. trait) without having to query the parent.enum hir::ImplItemImplKind::{Inherent, Trait}
atImplItem.impl_kind
which allowsImplItem
to be aware of its containing impl kind, and also move impl-kind-specific fields into corresponding variants.AssocItemContainer::Impl
intoAssocItemContainer::{InherentImpl, TraitImpl}
.AssocItemContainer
in numerous places.