-
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
Remove some usage of DUMMY_HIR_ID
#71069
Remove some usage of DUMMY_HIR_ID
#71069
Conversation
r? @davidtwco (rust_highfive has picked a reviewer for you, use r? to override) |
cc @eddyb |
cause: ObligationCause::misc(span, hir::DUMMY_HIR_ID), | ||
cause: ObligationCause::misc(span, hir::CRATE_HIR_ID), |
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.
cc @nikomatsakis Is this a good way to encode this?
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.
Oh this is what ObligationCause::dummy
does, heh.
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.
Yes, i just "copied" what was done in dummy
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.
r=me after it passes tests (when not broken, GHA PR CI is probably the thing to watch)
EDIT: oh this PR isn't a few minutes old, and it has already passed.
@bors r+ Thanks! |
📌 Commit 8f5605a71ad2d2c74b3b3120fbbe193561dca9bc has been approved by |
@bors rollup |
@bors r- in case @marmeladema wants to add more commits to it, it's not like it's high up in the queue |
8f5605a
to
71d99b3
Compare
DUMMY_HIR_ID
in calls to ObligationClause::misc
DUMMY_HIR_ID
Use `ObligationClause::dummy()` when appropriate or replace `hir::DUMMY_HIR_ID` by `hir::CRATE_HIR_ID`, as used in `ObligationClause::dummy()`.
71d99b3
to
0634789
Compare
self.check_inline(DUMMY_HIR_ID, attr, &stmt.span, Target::Statement); | ||
self.check_inline(l.hir_id, attr, &stmt.span, Target::Statement); |
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.
Heh this is a bugfix (#[allow]
& friends will now work correctly).
@bors r+ |
📌 Commit 0634789 has been approved by |
Rollup of 4 pull requests Successful merges: - rust-lang#67766 (Fix warning for unused variables in or pattern (issue rust-lang#67691)) - rust-lang#71013 (Pass the `PlaceElem::Index` local to `visit_local`) - rust-lang#71064 (fix issue 69130) - rust-lang#71069 (Remove some usage of `DUMMY_HIR_ID`) Failed merges: r? @ghost
Use
ObligationClause::dummy()
when appropriate or replacehir::DUMMY_HIR_ID
byhir::CRATE_HIR_ID
, as used inObligationClause::dummy()
.