-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Clippy subtree update #117021
Clippy subtree update #117021
Commits on Sep 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6e0c456 - Browse repository at this point
Copy the full SHA 6e0c456View commit details
Commits on Sep 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 77c121e - Browse repository at this point
Copy the full SHA 77c121eView commit details
Commits on Oct 4, 2023
-
Configuration menu - View commit details
-
Copy full SHA for faacd55 - Browse repository at this point
Copy the full SHA faacd55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31fd282 - Browse repository at this point
Copy the full SHA 31fd282View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6f29f1 - Browse repository at this point
Copy the full SHA e6f29f1View commit details
Commits on Oct 5, 2023
-
Rename
Features::active_features
.The word "active" is currently used in two different and confusing ways: - `ACTIVE_FEATURES` actually means "available unstable features" - `Features::active_features` actually means "features declared in the crate's code", which can include feature within `ACTIVE_FEATURES` but also others. (This is also distinct from "enabled" features which includes declared features but also some edition-specific features automatically enabled depending on the edition in use.) This commit changes the `Features::active_features` to `Features::declared_features` which actually matches its meaning. Likewise, `Features::active` becomes `Features::declared`.
Configuration menu - View commit details
-
Copy full SHA for 010a9b1 - Browse repository at this point
Copy the full SHA 010a9b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9de3e6c - Browse repository at this point
Copy the full SHA 9de3e6cView commit details
Commits on Oct 6, 2023
-
Add regression test for rust-lang#11610 about mutable usage of argume…
…nt in async function for the `needless_pass_by_ref_mut` lint
Configuration menu - View commit details
-
Copy full SHA for ddd1564 - Browse repository at this point
Copy the full SHA ddd1564View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ebed4c - Browse repository at this point
Copy the full SHA 8ebed4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 68d2082 - Browse repository at this point
Copy the full SHA 68d2082View commit details -
Auto merge of rust-lang#11623 - koka831:fix/11619, r=llogiq
Fix ice in `redundant_locals` Fixes rust-lang#11619 Rebinding over macro like the code below, idents will be different (`x#4` and `x#0` in that case). ```rust fn reassign_in_macro() { let x = 10; macro_rules! mac { ($i:ident) => { let mut x = x; } } mac!(y); } ``` It causes unwrapping `None`. https://github.com/rust-lang/rust-clippy/blob/9554e477c29e6ddca9e5cdce71524341ef9d48e8/clippy_lints/src/redundant_locals.rs#L88-L98 changelog: ICE: [`redundant_locals`]: No longer lints rebinding over macro
Configuration menu - View commit details
-
Copy full SHA for 3662bd8 - Browse repository at this point
Copy the full SHA 3662bd8View commit details -
Rollup merge of rust-lang#116423 - eltociear:patch-22, r=flip1995
Fix typo in attrs.rs documenation -> documentation
Configuration menu - View commit details
-
Copy full SHA for 0ed398e - Browse repository at this point
Copy the full SHA 0ed398eView commit details
Commits on Oct 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for bffba76 - Browse repository at this point
Copy the full SHA bffba76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c6fa29 - Browse repository at this point
Copy the full SHA 1c6fa29View commit details -
Auto merge of rust-lang#11639 - y21:issue11635, r=llogiq
[`into_iter_without_iter`]: walk up deref impl chain to find `iter` methods Fixes rust-lang#11635 changelog: [`into_iter_without_iter`]: walk up deref impl chain to find `iter` methods
Configuration menu - View commit details
-
Copy full SHA for 7624045 - Browse repository at this point
Copy the full SHA 7624045View commit details -
Auto merge of rust-lang#116437 - nnethercote:rustc_features, r=Nilstrieb
Clean up `rustc_features` Plenty more to be done, but this is a decent start. r? `@Nilstrieb`
Configuration menu - View commit details
-
Copy full SHA for 56400a0 - Browse repository at this point
Copy the full SHA 56400a0View commit details -
Auto merge of rust-lang#11638 - samueltardieu:into-iter, r=Manishearth
Fix two typos in lint description Fix rust-lang#11636 changelog: none
Configuration menu - View commit details
-
Copy full SHA for 33f49f3 - Browse repository at this point
Copy the full SHA 33f49f3View commit details
Commits on Oct 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 850f2f5 - Browse repository at this point
Copy the full SHA 850f2f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ed338d - Browse repository at this point
Copy the full SHA 5ed338dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7755737 - Browse repository at this point
Copy the full SHA 7755737View commit details -
Auto merge of rust-lang#11550 - blyxyas:fix-impl_trait_in_params-for_…
…assocfn, r=dswij `impl_trait_in_params` now supports impls and traits Before this PR, the lint `impl_trait_in_params`. This PR gives the lint support for functions in impls and traits. (Also, some pretty heavy refactor) fixes rust-lang#11548 changelog:[`impl_trait_in_params`] now supports `impl` blocks and functions in traits
Configuration menu - View commit details
-
Copy full SHA for bde0482 - Browse repository at this point
Copy the full SHA bde0482View commit details
Commits on Oct 9, 2023
-
Auto merge of rust-lang#11645 - Alexendoo:ui_test, r=flip1995
Update ui_test to 0.21.2 Hopefully fixes rust-lang#11489 r? `@flip1995` changelog: none
Configuration menu - View commit details
-
Copy full SHA for 929a288 - Browse repository at this point
Copy the full SHA 929a288View commit details -
Configuration menu - View commit details
-
Copy full SHA for 70b8d15 - Browse repository at this point
Copy the full SHA 70b8d15View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b60531 - Browse repository at this point
Copy the full SHA 0b60531View commit details -
Configuration menu - View commit details
-
Copy full SHA for bba155e - Browse repository at this point
Copy the full SHA bba155eView commit details
Commits on Oct 10, 2023
-
Rejig some top-level
rustc_hir_pretty
functions.There are several that are unused and can be removed. And there are some calls to `to_string`, which can be expressed more nicely as a `foo_to_string` call, and then `to_string` need not be `pub`. (This requires adding `pat_to_string`).
Configuration menu - View commit details
-
Copy full SHA for 359fa98 - Browse repository at this point
Copy the full SHA 359fa98View commit details
Commits on Oct 12, 2023
-
Rollup merge of rust-lang#116625 - nnethercote:rustc_hir_pretty, r=fe…
…e1-dead `rustc_hir_pretty` cleanups Just some improvements I found while looking through this code. r? ``@fee1-dead``
Configuration menu - View commit details
-
Copy full SHA for 0b8495b - Browse repository at this point
Copy the full SHA 0b8495bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b5488f9 - Browse repository at this point
Copy the full SHA b5488f9View commit details -
Auto merge of rust-lang#11659 - aDotInTheVoid:hexdigit, r=Jarcho
[`manual_is_ascii_check`]: Also check for `is_ascii_hexdigt` changelog: [`manual_is_ascii_check`]: Also check for `is_ascii_hexdigt`
Configuration menu - View commit details
-
Copy full SHA for ff00e9c - Browse repository at this point
Copy the full SHA ff00e9cView commit details
Commits on Oct 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for eb6fb18 - Browse repository at this point
Copy the full SHA eb6fb18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fc717d - Browse repository at this point
Copy the full SHA 9fc717dView commit details -
Auto merge of rust-lang#11664 - koka831:fix/11134, r=blyxyas
Fix/11134 Fix rust-lang#11134 Hir of `qpath` will be `TypeRelative(Ty { kind: Path(LangItem...` when a closure contains macro (e.g. rust-lang/rust-clippy#11651) and rust-lang#11134, it causes panic. This PR avoids panicking and emitting incomplete path string when `qpath` contains `LangItem`. changelog: none
Configuration menu - View commit details
-
Copy full SHA for c40359d - Browse repository at this point
Copy the full SHA c40359dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d179605 - Browse repository at this point
Copy the full SHA d179605View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c0870d - Browse repository at this point
Copy the full SHA 8c0870dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ffd09a - Browse repository at this point
Copy the full SHA 1ffd09aView commit details
Commits on Oct 14, 2023
-
Make
multiple_unsafe_ops_per_block
ignore await desugaringThe await desugaring contains two calls (`Poll::new_unchecked` and `get_context`) inside a single unsafe block. That violates the lint.
Configuration menu - View commit details
-
Copy full SHA for 6ed04af - Browse repository at this point
Copy the full SHA 6ed04afView commit details
Commits on Oct 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for bb6516a - Browse repository at this point
Copy the full SHA bb6516aView commit details -
Auto merge of rust-lang#11609 - y21:get_first_non_primitives, r=giraf…
…fate [`get_first`]: lint on non-primitive slices Fixes rust-lang#11594 I left the issue open for a couple days before making the PR to see if anyone has something to say, but it looks like there aren't any objections to removing this check that prevented linting on non-primitive slices, so here's the PR now. There's a couple of instances in clippy itself where we now emit the lint. The actual relevant change is in the first commit and fixing the `.get(0)` instances in clippy itself is in the 2nd commit. changelog: [`get_first`]: lint on non-primitive slices
Configuration menu - View commit details
-
Copy full SHA for ef95be5 - Browse repository at this point
Copy the full SHA ef95be5View commit details
Commits on Oct 16, 2023
-
Auto merge of rust-lang#11514 - pitaj:triagebot_no-merges_exclude-tit…
…les, r=flip1995 triagebot no-merges: exclude "Rustup"s, add labels rust-lang/triagebot#1720 changelog: none
Configuration menu - View commit details
-
Copy full SHA for ae52ee5 - Browse repository at this point
Copy the full SHA ae52ee5View commit details -
Auto merge of rust-lang#11666 - c410-f3r:dsadasewqasdsa, r=flip1995
Document conflicting lints Documents the outcome described in rust-lang/rust-clippy#11662 so that the situation can be avoided in the future by other individuals. changelog: none
Configuration menu - View commit details
-
Copy full SHA for 387d756 - Browse repository at this point
Copy the full SHA 387d756View commit details -
Now
declare_interior_mutable_const
and `borrow_interior_mutable_con……st` respect the `ignore-interior-mutability` configuration entry changelog: Now `declare_interior_mutable_const` and `borrow_interior_mutable_const` respect the `ignore-interior-mutability` configuration entry Signed-off-by: slinkydeveloper <francescoguard@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3960bc0 - Browse repository at this point
Copy the full SHA 3960bc0View commit details -
Auto merge of rust-lang#11673 - y21:issue11672, r=Manishearth
[`unnecessary_lazy_eval`]: reduce applicability if closure has return type annotation Fixes rust-lang#11672 We already check if closure parameters don't have type annotations and reduce the applicability to `MaybeIncorrect` if they do, since those help type inference and removing them breaks code. We didn't do this for return type annotations however. This PR adds it. This doesn't change it to produce a fix that will compile, but it will prevent rustfix from auto-applying it. (In general I'm not sure if we can suggest a fix that will compile. In this specific example, it might be possible to suggest `&[] as &[u8]`, but as-casts won't always work, e.g. `Default::default() as &[u8]` is a compile error, so just reducing applicability should be a safe fix in any case for now) changelog: [`unnecessary_lazy_eval`]: reduce applicability to `MaybeIncorrect` if closure has return type annotation
Configuration menu - View commit details
-
Copy full SHA for 9f27b15 - Browse repository at this point
Copy the full SHA 9f27b15View commit details
Commits on Oct 17, 2023
-
Auto merge of rust-lang#11646 - Nilstrieb:compiler-does-not-comply-wi…
…th-the-lints!!, r=giraffate Make `multiple_unsafe_ops_per_block` ignore await desugaring The await desugaring contains two calls (`Poll::new_unchecked` and `get_context`) inside a single unsafe block. That violates the lint. fixes rust-lang#11312 changelog: [`multiple_unsafe_ops_per_block`]: fix false positives in `.await`
Configuration menu - View commit details
-
Copy full SHA for 2cf708d - Browse repository at this point
Copy the full SHA 2cf708dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ee26d0 - Browse repository at this point
Copy the full SHA 9ee26d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 09535a5 - Browse repository at this point
Copy the full SHA 09535a5View commit details -
Auto merge of rust-lang#11622 - GuillaumeGomez:needless_pass_by_ref_m…
…ut-regression-test-11610, r=blyxyas Add regression test for rust-lang#11610 about mutable usage of argument in async function for the `needless_pass_by_ref_mut` lint Fixes rust-lang/rust-clippy#11610. This was already fixed. I simply added a regression test. changelog: Add regression test for rust-lang#11610 about mutable usage of argument in async function for the `needless_pass_by_ref_mut` lint
Configuration menu - View commit details
-
Copy full SHA for 2640d5c - Browse repository at this point
Copy the full SHA 2640d5cView commit details -
Don't emit
needless_pass_by_ref_mut
if the variable is used in an u……nsafe block or function
Configuration menu - View commit details
-
Copy full SHA for bc97f7d - Browse repository at this point
Copy the full SHA bc97f7dView commit details -
Add test for
needless_pass_by_ref_mut
to ensure that the lint is no……t emitted if variable is used in an unsafe block or function
Configuration menu - View commit details
-
Copy full SHA for 80a092c - Browse repository at this point
Copy the full SHA 80a092cView commit details
Commits on Oct 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d9dc5ee - Browse repository at this point
Copy the full SHA d9dc5eeView commit details -
add lint for struct field names
side effect for `enum_variants`: use .first() instead of .get(0) in enum_variants lint move to_camel_case to str_util module move module, enum and struct name repetitions check to a single file `item_name_repetitions` rename enum_variants threshold config option
Configuration menu - View commit details
-
Copy full SHA for 8b02dac - Browse repository at this point
Copy the full SHA 8b02dacView commit details -
Auto merge of rust-lang#11624 - GuillaumeGomez:needless_pass_by_ref_m…
…ut-unsafe-fn-block, r=blyxyas Don't emit `needless_pass_by_ref_mut` if the variable is used in an unsafe block or function Fixes rust-lang/rust-clippy#11586. Fixes rust-lang/rust-clippy#11180. As suggested in the two issues above, this lint should not be emitted if this an unsafe function or if the argument is used in an unsafe block. changelog: [`needless_pass_by_ref_mut`]: Don't emit if the variable is used in an unsafe block or function
Configuration menu - View commit details
-
Copy full SHA for 5fb312e - Browse repository at this point
Copy the full SHA 5fb312eView commit details -
Auto merge of rust-lang#11496 - jonboh:prefix_postfix_struct, r=y21
add lint for struct field names changelog: [`struct_field_names`]: lint structs with the same pre/postfix in all fields or with fields that are pre/postfixed with the name of the struct. fixes rust-lang#2555 I've followed general structure and naming from the code in [enum_variants](https://github.com/rust-lang/rust-clippy/blob/b788addfcc955368b9771b77d312c248fab60253/clippy_lints/src/enum_variants.rs) lint, which implements the same logic for enum variants.
Configuration menu - View commit details
-
Copy full SHA for fe21991 - Browse repository at this point
Copy the full SHA fe21991View commit details -
Fix invalid warning for closure in non-async function for `needless_p…
…ass_by_ref_mut` lint
Configuration menu - View commit details
-
Copy full SHA for ec2b8ab - Browse repository at this point
Copy the full SHA ec2b8abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b4b07c - Browse repository at this point
Copy the full SHA 3b4b07cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e6db95 - Browse repository at this point
Copy the full SHA 3e6db95View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1528c1d - Browse repository at this point
Copy the full SHA 1528c1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a07c032 - Browse repository at this point
Copy the full SHA a07c032View commit details
Commits on Oct 19, 2023
-
Auto merge of rust-lang#11683 - Alexendoo:msrv-config, r=Manishearth,…
…flip1995 Deserialize `Msrv` directly in `Conf` Gives the error a span pointing to the invalid config value Also puts `Conf` itself in the `OnceLock` rather than just the `Msrv` for [the `register_late_mod_pass` work](rust-lang#116731) since it will be used from two different callbacks changelog: none
Configuration menu - View commit details
-
Copy full SHA for 9574d28 - Browse repository at this point
Copy the full SHA 9574d28View commit details -
Auto merge of rust-lang#11621 - GuillaumeGomez:needless_pass_by_ref_m…
…ut-closure-non-async-fn, r=blyxyas Needless pass by ref mut closure non async fn Fixes rust-lang/rust-clippy#11620. Fixes rust-lang/rust-clippy#11561. changelog: [`needless_pass_by_ref_mut`]: Correctly handle arguments moved into closure in non-async functions. r? `@Centri3`
Configuration menu - View commit details
-
Copy full SHA for cd477d4 - Browse repository at this point
Copy the full SHA cd477d4View commit details -
Auto merge of rust-lang#115214 - Urgau:rfc-3127-trim-paths, r=compile…
…r-errors Implement rustc part of RFC 3127 trim-paths This PR implements (or at least tries to) [RFC 3127 trim-paths](rust-lang#111540), the rustc part. That is `-Zremap-path-scope` with all of it's components/scopes. `@rustbot` label: +F-trim-paths
Configuration menu - View commit details
-
Copy full SHA for 214b4d9 - Browse repository at this point
Copy the full SHA 214b4d9View commit details
Commits on Oct 20, 2023
-
Auto merge of rust-lang#11521 - y21:issue9122, r=llogiq
[`map_identity`]: allow closure with type annotations Fixes rust-lang#9122 `.map(|a: u32| a)` can help type inference, so we should probably allow this and not warn about "unnecessary map of the identity function" changelog: [`map_identity`]: allow closure with type annotations
Configuration menu - View commit details
-
Copy full SHA for e230f19 - Browse repository at this point
Copy the full SHA e230f19View commit details -
Auto merge of rust-lang#11678 - slinkydeveloper:master, r=Alexendoo
Now `declare_interior_mutable_const` and `borrow_interior_mutable_const` respect the `ignore-interior-mutability` configuration entry Fix rust-lang#10537 changelog: Now `declare_interior_mutable_const` and `borrow_interior_mutable_const` respect the `ignore-interior-mutability` configuration entry
Configuration menu - View commit details
-
Copy full SHA for 090df7a - Browse repository at this point
Copy the full SHA 090df7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 868e513 - Browse repository at this point
Copy the full SHA 868e513View commit details -
Configuration menu - View commit details
-
Copy full SHA for d9259fd - Browse repository at this point
Copy the full SHA d9259fdView commit details
Commits on Oct 21, 2023
-
Auto merge of rust-lang#11539 - taiki-e:enforced-import-renames, r=Ce…
…ntri3 Warn missing_enforced_import_renames by default Similar to rust-lang/rust-clippy#8261 that did the same thing to disallowed_methods & disallowed_types. This lint is also only triggered if import renames are defined in the `clippy.toml` file. changelog: Moved [`missing_enforced_import_renames`] to `style` (Now warn-by-default) [rust-lang#11539](rust-lang/rust-clippy#11539)
Configuration menu - View commit details
-
Copy full SHA for 23af253 - Browse repository at this point
Copy the full SHA 23af253View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f03156 - Browse repository at this point
Copy the full SHA 5f03156View commit details -
Configuration menu - View commit details
-
Copy full SHA for a585cda - Browse repository at this point
Copy the full SHA a585cdaView commit details -
Auto merge of rust-lang#11694 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` changelog: none
Configuration menu - View commit details
-
Copy full SHA for 2b030eb - Browse repository at this point
Copy the full SHA 2b030ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24b3554 - Browse repository at this point
Copy the full SHA 24b3554View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8b55fe - Browse repository at this point
Copy the full SHA b8b55feView commit details