about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-08-22convert strings to symbols in attr diagnosticsJana Dönszelmann-31/+36
2025-08-22fix: don't check for `!x = y`/`x = !y`Ada Alakbarova-435/+212
misc: rm "as shown" from help message - clippy guidelines recommend against this misc: pull conditions into let-chain misc: use `Span::to` misc: inline `{l,r}_ty` misc: move the type checks out of `check_comparison` misc: make test cases much less verbose
2025-08-22Revert "Detect method not being present that is present in other tuple types"Rémy Rakic-218/+2
This reverts commit 585a40963ea59808e74803f8610659a505b145e0.
2025-08-22Fix stderr normalization.Camille Gillot-5/+5
2025-08-22Simplify implementation.Camille Gillot-44/+46
2025-08-22Separate transmute checking from typeck.Camille Gillot-254/+253
2025-08-22interpret/allocation: get_range on ProvenanceMapNia Espera-8/+14
2025-08-22Recover param: Ty = EXPRMichael Goulet-2/+44
2025-08-22Add warning to the `Builder::llvm_config` functionJakub Beránek-0/+4
2025-08-22Ship LLVM tools for the correct target when cross-compilingJakub Beránek-5/+43
2025-08-22bool_comparison: fix incorrect suggestion with `>`/`<` and macros (#15513)Samuel Tardieu-20/+59
Fixes https://github.com/rust-lang/rust-clippy/issues/15497 changelog: [`bool_comparison`]: fix incorrect suggestion with `>`/`<` and macros
2025-08-22bool_comparison: use correct span context for `>`/`<` suggMichael Howell-20/+59
2025-08-22modify `LazyLock` poison panic messageConnor Tsui-34/+59
Fixes an issue where if the underlying `Once` panics because it is poisoned, the panic displays the wrong message. Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
2025-08-22Auto merge of #145352 - Shourya742:2025-08-12-remove-default-config, r=Kobzolbors-563/+527
Remove default config from bootstrap This PR removes the default config initialization from parse_inner, as it introduced many assumptions during config setup. Instead, each variable is now manually initialized to eliminate certain invariants in parse_inner and streamline the process. r? `@Kobzol`
2025-08-22fix `manual_is_ascii_check`: also add explicit type when linting `matches!` ↵Samuel Tardieu-14/+50
(#15492) fixes https://github.com/rust-lang/rust-clippy/issues/15326 changelog: [`manual_is_ascii_check`]: also add explicit type when linting `matches!`
2025-08-22Rename `llvm_config` to `host_llvm_config` to avoid confusionJakub Beránek-36/+39
2025-08-22Add aarch64_be-unknown-hermit targetJens Reidel-0/+33
Signed-off-by: Jens Reidel <adrian@travitia.xyz>
2025-08-22fix: also get `ty_sugg` in the `matches!` caseAda Alakbarova-14/+50
2025-08-22On E0277, point at type that doesn't implement boundEsteban Küber-249/+1094
When encountering an unmet trait bound, point at local type that doesn't implement the trait: ``` error[E0277]: the trait bound `Bar<T>: Foo` is not satisfied --> $DIR/issue-64855.rs:9:19 | LL | pub struct Bar<T>(<Self as Foo>::Type) where Self: ; | ^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | help: the trait `Foo` is not implemented for `Bar<T>` --> $DIR/issue-64855.rs:9:1 | LL | pub struct Bar<T>(<Self as Foo>::Type) where Self: ; | ^^^^^^^^^^^^^^^^^ ```
2025-08-23fix: `derivable_impls` suggests wrongly on `derive_const`yanglsh-16/+207
2025-08-22Stabilize `round_char_boundary` featureokaneco-17/+15
2025-08-22Stabilize `round_char_boundary` featureokaneco-26/+22
2025-08-22ptr_as_ptr: fix incorrect suggestion with `pointer::cast` and macros (#15514)Samuel Tardieu-2/+20
Fixes https://github.com/rust-lang/rust-clippy/issues/15232 changelog: [`ptr_as_ptr`]: fix incorrect suggestion with `pointer::cast` and macros
2025-08-22`try_err`: clean-up (#15526)Samuel Tardieu-28/+12
changelog: none
2025-08-22`is_expr_identity_of_pat`: simplify using `(unordered_)over` (#15450)Samuel Tardieu-8/+7
This makes the last arm significantly shorter, but marginally shortens the other ones as well - I first removed the length comparisons from the match guards since they were already present in `(unordered_)over`, but then brought them back since they are quite a helpful "guard clause" - It's a bit unfortunate that the `Slice`/`Array` arm can't use `over` as well, which creates some asymmetry, but changing the signature of `over` to accept arbitrary iterators felt like too much to me, especially because we'd lose the ability to compare the lengths of the two inputs (which could've been mitigated by `ExactLenIterator::len`, but that method is still unstable AFAIR) One other option would be to only use `unordered_over` in the last arm, and not `over`, but I think `over` is not that bad.. changelog: none
2025-08-22Add 1.89 beta-accepted changes to changelog (#15534)Samuel Tardieu-0/+5
https://github.com/rust-lang/rust-clippy/issues?q=state%3Aclosed%20label%3Abeta-accepted Those were missed in the prior backport. The two beta-accepted issues that were not added were done as reverts of the prior changes they fixed. So no reason to add them to the changelog. changelog: none
2025-08-22Better check for `assign_op_pattern` in `const` context (#15532)Philipp Krones-24/+133
`assign_op_pattern` can be used in a `const` context if the trait definition as well as the implementation of the corresponding `Assign` pattern is `const` as well. The lint was temporarily deactivated in the compiler repository for all `const` contexts to avoid false positives when operators were potentially constified. This reenables it when appropriate now that the repositories have been synced. Closes rust-lang/rust-clippy#15285 changelog: [`assign_op_pattern`]: trigger in `const` contexts when appropriate r? @flip1995
2025-08-22Add 1.89 beta-accepted changes to changelogPhilipp Krones-0/+5
2025-08-22benchmarks for exponent fmt of integersPascal S. de Kloe-0/+24
2025-08-22ci: Begin running ui tests with `rust.debuginfo-level-tests=1`Martin Nordholts-3/+24
To reduce risk of regressing on generating debuginfo e.g. in the form of ICE:s. This will also ensure that future ui tests support different debuginfo levels. When I looked at run time for different CI jobs, **x86_64-gnu-debug** was far from the bottle neck, so it should be fine to make it perform more work.
2025-08-22Auto merge of #145749 - flip1995:clippy-subtree-update, r=Manishearthbors-1050/+1823
Clippy subtree update r? `@Manishearth`
2025-08-22main.js: only call window.rustdocToggleSrcSidebar if it existsbinarycat-2/+1
2025-08-22typecheck: add nonnull around element known to existbinarycat-2/+1
2025-08-22typecheck tooltipBlurHandlerbinarycat-1/+3
2025-08-22typecheck window.CURRENT_TOOLTIP_ELEMENTbinarycat-32/+7
2025-08-22use `is_{type,path}_diagnostic_item` in more places (#15527)Samuel Tardieu-27/+19
changelog: none
2025-08-22fix(lexer): Allow '-' in the infostring continue setEd Page-14/+4
This more closely matches the RFC and what our T-lang contact has asked for, see https://github.com/rust-lang/rust/issues/136889#issuecomment-3212715312
2025-08-22test(frontmatter): Show current hyphen behaviorEd Page-0/+38
2025-08-22Add let in let-chain completion supportA4-Tacks-3/+17
Example --- ```rust fn f() { if true && $0 {} } ``` -> ```rust fn f() { if true && let $1 = $0 {} } ```
2025-08-22resolve: Remove `ScopeSet::Late`Vadim Petrochenkov-23/+32
The difference between `Late` and `All` only matters when `finalize` is enabled. So add a `stage` field to `Finalize` and use it instead.
2025-08-22resolve: Remove derive fallback lint id from `ScopeSet::Late`Vadim Petrochenkov-11/+13
2025-08-22resolve: Remove `Module` from `ScopeSet::Late`Vadim Petrochenkov-7/+9
It can be passed in a more usual way through `ParentScope`
2025-08-22resolve: `early_resolve_ident_in_lexical_scope` -> `resolve_ident_in_scope_set`Vadim Petrochenkov-20/+16
2025-08-22improve float to_degrees/to_radians rounding comments and implKarol Zwolak-10/+79
* revise comments explaining why we are using literal or expression * add unspecified precision comments as we don't guarantee precision * use expression in `f128::to_degrees()` * make `f64::to_degrees()` impl consistent with other functions
2025-08-22Better check for `assign_op_pattern` in `const` contextSamuel Tardieu-24/+133
`assign_op_pattern` can be used in a `const` context if the trait definition as well as the implementation of the corresponding `Assign` pattern is `const` as well.
2025-08-22fix: `unnested_or_patterns` FP on structs with only shorthand field patsAda Alakbarova-30/+80
2025-08-22`is_expr_identity_of_pat`: simplify using `(unordered_)over`Ada Alakbarova-8/+7
2025-08-22make the lint early-passAda Alakbarova-9/+9
2025-08-22(finally) implement `WithSearchPat`Ada Alakbarova-0/+1
2025-08-22add misc kinds: Pat, CVarArgs, Typeof, Dummy, ErrAda Alakbarova-1/+12