Uh oh!
There was an error while loading. Please reload this page.
Remove some usage of DUMMY_HIR_ID - #71069
Conversation
rust-highfive
commented
Apr 12, 2020
r? @davidtwco (rust_highfive has picked a reviewer for you, use r? to override) |
marmeladema
commented
Apr 12, 2020
cc @eddyb |
There was a problem hiding this comment.
cc @nikomatsakis Is this a good way to encode this?
There was a problem hiding this comment.
Oh this is what ObligationCause::dummy does, heh.
There was a problem hiding this comment.
Yes, i just "copied" what was done in dummy
eddyb
commented
Apr 12, 2020
@bors r+ Thanks! |
bors
commented
Apr 12, 2020
📌 Commit 8f5605a71ad2d2c74b3b3120fbbe193561dca9bc has been approved by |
eddyb
commented
Apr 12, 2020
@bors rollup |
eddyb
commented
Apr 12, 2020
@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
71d99b3CompareDUMMY_HIR_ID in calls to ObligationClause::miscDUMMY_HIR_IDUse `ObligationClause::dummy()` when appropriate or replace `hir::DUMMY_HIR_ID` by `hir::CRATE_HIR_ID`, as used in `ObligationClause::dummy()`.
71d99b3 to
0634789Compare| 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.
Heh this is a bugfix (#[allow] & friends will now work correctly).
eddyb
commented
Apr 12, 2020
@bors r+ |
bors
commented
Apr 12, 2020
📌 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_IDbyhir::CRATE_HIR_ID, as used inObligationClause::dummy().