-
Notifications
You must be signed in to change notification settings - Fork 14k
Clippy subtree update #148957
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
base: main
Are you sure you want to change the base?
Clippy subtree update #148957
Conversation
Their meanings, and the way they're handled in `get_attr`, are pretty similar
- Move it and its helper function `parse_attrs` together to the end of the file, because it's surprising to see front-and-center a struct that's only really used in one place (`cognitive_complexity`). - Avoid panic path in `LimitStack::limit` - Replace `assert` with `debug_assert` to avoid panics in release builds
Reduces code repetition
Now we don't touch, and thus don't break, whatever path `Rc`/`Arc` was specified with
Move `unused_enumerate_index.rs` to `methods`.
Fix rust-lang/rust-clippy#14350 Co-authored-by: Timo <30553356+y21@users.noreply.github.com>
…dead Constify trait aliases Allow `const trait Foo = Bar + [const] Baz;` trait alias declarations. Their rules are the same as with super traits of const traits. So `[const] Baz` or `const Baz` is only required for `[const] Foo` or `const Foo` bounds respectively. tracking issue rust-lang#41517 (part of the general trait alias feature gate, but I can split it out into a separate const trait alias feature gate. I just assumed that const traits would stabilize before trait aliases, and we'd want to stabilize trait aliases together with const trait aliases at the same time) r? ``@compiler-errors`` ``@fee1-dead``
not really necessary Follow-up to rust-lang/rust-clippy#15803 changelog: none r? @llogiq
Alternative to part of rust-lang/rust-clippy#14509. changelog: none
r? @ghost changelog: none
|
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
|
|
@madsmtm could you take a look at the |
| // FIXME: This should not be affected by the attribute on the function above. | ||
| fn bloo() { | ||
| //~^ cognitive_complexity |
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.
This shouldn't have started linting. But it is too late here and I'm pretty exhausted from this week to try to look into what changed in the check_attributes_after behavior of a restriction lint...
|
cc @RalfJung This syncs the MSRV fixes, that you need. Sorry for the 1+ day delay. |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
@bors r+ p=1 rollup=never |
Clippy subtree update r? `@Manishearth`
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
💔 Test failed - checks-actions |
r? @Manishearth