-
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
Update Clippy #87271
Update Clippy #87271
Conversation
Add instructions to run from source changelog: none We often get messages on Zulip asking how to install and run Clippy from source. This adds instructions to the readme. I also added a note explaining that `cargo install --path . --force` is bad, which I just decided after some investigating. I use macOS. It would be nice to get some tests on other platforms to see if this is correct.
…matsakis ExprUseVisitor: Treat ByValue use of Copy types as ImmBorrow r? ```@nikomatsakis```
Remove refs from Pat slices Changes `PatKind::Or(&'hir [&'hir Pat<'hir>])` to `PatKind::Or(&'hir [Pat<'hir>])` and others. This is more consistent with `ExprKind`, saves a little memory, and is a little easier to use.
Fix ICE in redundant_pattern_matching Fixes rust-lang#7410 changelog: Fix ICE in `redundant_pattern_matching` in `no_std` crates.
Fix ICE in `is_integer_const` fixes: rust-lang#7340 changelog: Fix ICE in `modulo_one` in const contexts
Use lang items for BinOp lints changelog: none
…ishearth New lint: [`self_named_constructor`] Adds the `self_named_constructor` lint for detecting when an implemented method has the same name as the type it is implemented for. changelog: [`self_named_constructor`] closes: rust-lang#7142
Add check if ty has_escaping_bound_vars in zero_sized_map_values lint Fixes: rust-lang#7447 changelog: fix ICE in [`zero_sized_map_values`]
Rustup r? `@ghost` Out of cycle sync for 2 ICE fixes rust-lang#7470 rust-lang#7471 rust-lang#7473 changelog: none
Some changes occurred in src/tools/clippy. cc @rust-lang/clippy |
@bors r+ |
📌 Commit b10966b has been approved by |
@bors p=1 rollup=maybe |
Okay, regarding rust-lang/rust-clippy#7470, I would have to look into it, but it seems a bit suspicious to me. I think layout code should be fine to have bound vars (though, I'm not exactly sure if these should be wrapped in a Another option would be to |
☀️ Test successful - checks-actions |
@jackh726 Thanks for the explanation. The This problem is orthogonal to the |
This is an out-of-cycle Clippy update, to fix 3 ICEs before the release (This should be merged before beta is branched):
rust-lang/rust-clippy#7470
rust-lang/rust-clippy#7471
rust-lang/rust-clippy#7473
cc @jackh726 @JohnTitor rust-lang/rust-clippy#7470 was caused by #86867. I saw the same ICE in the last rustup for Clippy though, so this might be a more general problem. Is there something we should check before calling
layout_of
? Should we always check forty.has_escaping_bound_vars()
before callinglayout_of
? Or is this overkill?r? @Manishearth