-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Clippy subtree update #152533
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 #152533
Conversation
The file is testing `unwrap_used`, but that's already covered by the `unwrap_expect_used.rs` test file
…nnethercote Bump bootstrap compiler to 1.94 https://forge.rust-lang.org/release/process.html#default-branch-bootstrap-update-tuesday
…Amanieu Move assert_matches to planned stable path Another prep PR for rust-lang#137487
The file is testing `unwrap_used`, but that's already covered by the `unwrap_expect_used.rs` test file changelog: none
Adds a trailing comma to struct patterns ending with `..`. Fixes rust-lang#16433
Now, only `call_span` is replaced, so the receiver is not a part of the diff. This also removes the need to create a snippet for the receiver.
…ust-lang#16198) Noticed while writing a copy of subtree sync docs for `rustfmt`. changelog: none
…nishearth Clippy subtree update r? Manishearth `Cargo.lock` update due to Clippy version bump.
This makes rustc simply return an exit code from main rather than calling `std::process::exit` with an exit code. This means that drops run normally and the process exits cleanly. Also instead of hard coding success and failure codes this uses `ExitCode::SUCCESS` and `ExitCode::FAILURE`, which in turn effectively uses `libc::EXIT_SUCCESS` and `libc::EXIT_FAILURE` (via std). These are `0` and `1` respectively for all currently supported host platforms so it doesn't actually change the exit code.
…th `..` (rust-lang#16442) fixes rust-lang/rust-clippy#16433 Adds a trailing comma to the last field of a struct pattern if it ends with a `..` to avoid an invalid suggestion. A test was added as well. changelog: [`manual_let_else`] fix suggestion for `..` patterns
std: avoid tearing `dbg!` prints Fixes rust-lang#136703. This is an alternative to rust-lang#149859. Instead of formatting everything into a string, this PR makes multi-expression `dbg!` expand into multiple nested matches, with the final match containing a single `eprint!`. By using macro recursion and relying on hygiene, this allows naming every bound value in that `eprint!`. CC @orlp r? libs
Closes rust-lang/rust-clippy#16446 changelog: [`doc_markdown`] add PowerShell to whitelist
Related to the example in rust-lang/rust-clippy#16451 but doesn't fix the issue itself changelog: [`let_and_return`]: No longer lints when there's a comment between the `let` and return
changelog: [`never_loop`]: rhs of short-circuit expression doesn't always run Fixes rust-lang/rust-clippy#16462
Closes rust-lang/rust-clippy#16447 changelog: [`test_attr_in_doctest`] fix FP on `test_harness`
…16424) Closes rust-lang/rust-clippy#16419 changelog: [`manual_is_variant_and`] enhance to cover manual `is_none_or`
…nnethercote Remove `SubdiagMessage` in favour of the identical `DiagMessage` For rust-lang#151366 Just some more cleanup :) SubdiagMessage is now identical to DiagMessage, so there's no point in having both of them
Replace typo'd name with link to the referenced lint. changelog: none
Fix links linking to non-existent pages. changelog: none
Marking the `main` function as `#[must_use]` is nonsensical, as it is not really supposed to be called anyway.
Replace the links to more recent materials in the docs. changelog: none
Marking the `main` function as `#[must_use]` is nonsensical, as it is not really supposed to be called anyway. changelog: [`must_use_candidates`]: No longer lints `main` functions with return values
) Triagebot implemented a GitHub comments viewer, it loads and shows all the comments (and review comments) of an issue or pull-request. In order to facilitate it's usage we also added a feature to automatically have triagebot add a "View all comments" link to that viewer, which this PR enables for this repository with a threshold of 20 comments minimum. See [this link](https://triage.rust-lang.org/gh-comments/rust-lang/rust-clippy/issues/15006) for an example of the result looks like. cc @samueltardieu r? @flip1995 changelog: none
r? @ghost changelog: none
|
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
|
This comment has been minimized.
This comment has been minimized.
9463913 to
0e2af75
Compare
This comment has been minimized.
This comment has been minimized.
|
|
|
Some changes occurred in compiler/rustc_codegen_gcc |
|
@bors r+ p=1 rollup=never |
|
⌛ Testing commit eaad11c with merge 76d6965... Workflow: https://github.com/rust-lang/rust/actions/runs/21974409176 |
Clippy subtree update r? @Manishearth 1 week late, due to vacation and some technical issues.
r? @Manishearth
1 week late, due to vacation and some technical issues.