-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Factor out hir::Node::Binding
#98639
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri |
(rust-highfive has picked a reviewer for you, use r? to override) |
@camsteffen do you mind fixing the tidy failure and rebasing? https://github.com/rust-lang/rust/runs/7099501730?check_suite_focus=true#step:25:2212 also did you bless the ui tests? curious if this changed any diagnostics outputs. |
1b487d9
to
716af21
Compare
My bad. Fixed tidy and rebased. Didn't run the ui tests since I'm hoping they just pass. |
I can take a look at this after my real day job is over 😜. |
Looks good to me. @bors r+ |
📌 Commit 716af21 has been approved by |
…ler-errors Factor out `hir::Node::Binding`
…ler-errors Factor out `hir::Node::Binding`
This will need a rebase once #98706 is merged, can't merge both PRs at a time due to compiler error: #98723 (comment) I'm gonna @bors r- to get this out of the queue for now, feel free to re-r+ once rebase is done. |
716af21
to
ec82bc1
Compare
@@ -71,8 +71,7 @@ impl<'tcx> LateLintPass<'tcx> for ManualRemEuclid { | |||
&& let Some(const3) = check_for_unsigned_int_constant(cx, right) | |||
// Also ensures the const is nonzero since zero can't be a divisor | |||
&& const1 == const2 && const2 == const3 | |||
&& let Some(hir_id) = path_to_local(expr3) | |||
&& let Some(Node::Binding(_)) = cx.tcx.hir().find(hir_id) { | |||
&& let Some(hir_id) = path_to_local(expr3) { |
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.
New change with rebase. path_to_local
is always a binding.
@bors r=compiler-errors |
📌 Commit ec82bc1 has been approved by |
Rollup of 5 pull requests Successful merges: - rust-lang#98639 (Factor out `hir::Node::Binding`) - rust-lang#98653 (Add regression test for rust-lang#79494) - rust-lang#98763 (bootstrap: illumos platform flags for split-debuginfo) - rust-lang#98766 (cleanup mir visitor for `rustc::pass_by_value`) - rust-lang#98783 (interpret: make a comment less scary) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
…ler-errors Factor out `hir::Node::Binding`
No description provided.