-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Tweak E0277 &
-removal suggestions
#106360
Conversation
r? @nagisa (rustbot has picked a reviewer for you, use r? to override) |
f248375
to
ef4991f
Compare
ef4991f
to
f69e968
Compare
This comment has been minimized.
This comment has been minimized.
774c4a1
to
906f43a
Compare
This comment was marked as resolved.
This comment was marked as resolved.
906f43a
to
8393019
Compare
while let Some((c, Some(parent_trait_pred))) = code.parent() { | ||
// We want the root obligation, in order to detect properly handle | ||
// `for _ in &mut &mut vec![] {}`. | ||
code = c; | ||
trait_pred = parent_trait_pred; | ||
} |
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.
is there some sort of peel method that does this lol
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.
We have a few (blame me for the nomenclature :P) but I think not for this ^_^'
@bors r+ |
📌 Commit 8393019ce977995825aec81c301d9414f27d41d9 has been approved by It is now in the queue for this repository. |
8393019
to
8b8cce1
Compare
@bors r=compiler-errors |
… r=compiler-errors Tweak E0277 `&`-removal suggestions Fix rust-lang#64068, fix rust-lang#84837.
… r=compiler-errors Tweak E0277 `&`-removal suggestions Fix rust-lang#64068, fix rust-lang#84837.
…mpiler-errors Rollup of 8 pull requests Successful merges: - rust-lang#103236 (doc: rewrite doc for signed int::{carrying_add,borrowing_sub}) - rust-lang#103800 (Stabilize `::{core,std}::pin::pin!`) - rust-lang#106097 (Migrate mir_build diagnostics 2 of 3) - rust-lang#106170 (Move autoderef to `rustc_hir_analysis`) - rust-lang#106323 (Stabilize f16c_target_feature) - rust-lang#106360 (Tweak E0277 `&`-removal suggestions) - rust-lang#106524 (Label `struct/enum constructor` instead of `fn item`, mention that it should be called on type mismatch) - rust-lang#106739 (Remove `<dyn AstConv<'tcx>>::fun(c, ...)` calls in favour of `c.astconv().fun(...)`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fix #64068, fix #84837.