-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Use HirId in TraitCandidate. #69108
Use HirId in TraitCandidate. #69108
Conversation
@@ -270,7 +270,6 @@ impl<'a> ToStableHashKey<StableHashingContext<'a>> for hir::TraitCandidate { | |||
|
|||
let import_keys = import_ids |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this method can just return the fields of TraitCandidate
now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just leave it like this for now.
src/librustc_hir/hir.rs
Outdated
@@ -2588,7 +2588,7 @@ pub type CaptureModeMap = NodeMap<CaptureBy>; | |||
#[derive(Clone, Debug)] | |||
pub struct TraitCandidate { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could make this generic over the id instead of duplicating it.
☔ The latest upstream changes (presumably #69023) made this pull request unmergeable. Please resolve the merge conflicts. |
2620198
to
4706c38
Compare
@bors r+ |
📌 Commit 2a899e2 has been approved by |
Use HirId in TraitCandidate. I had to duplicate the `TraitMap` type to hold `NodeId`s until AST->HIR lowering is done. r? @Zoxc
Rollup of 9 pull requests Successful merges: - #68728 (parse: merge `fn` syntax + cleanup item parsing) - #68938 (fix lifetime shadowing check in GATs) - #69057 (expand: misc cleanups and simplifications) - #69108 (Use HirId in TraitCandidate.) - #69125 (Add comment to SGX entry code) - #69126 (miri: fix exact_div) - #69127 (Enable use after scope detection in the new LLVM pass manager) - #69135 (Spelling error "represening" to "representing") - #69141 (Don't error on network failures) Failed merges: r? @ghost
Revert #69108 ... to see if it caused the regression in #69197. @bors try @rust-timer queue
I had to duplicate the
TraitMap
type to holdNodeId
s until AST->HIR lowering is done.r? @Zoxc