| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2025-02-19 | fix: `map_entry` FP on struct member | yanglsh | -1/+16 | |
| 2025-02-03 | Simplify `reindent_multiline()` signature | Samuel Tardieu | -2/+2 | |
| - `reindent_multiline()` always returns the result of `reindent_multiline_inner()` which returns a `String`. Make `reindent_multiline()` return a `String` as well, instead of a systematically owned `Cow<'_, str>`. - There is no reason for `reindent_multiline()` to force a caller to build a `Cow<'_, str>` instead of passing a `&str` directly, especially considering that a `String` will always be returned. Also, both the input parameter and return value (of type `Cow<'_, str>`) shared the same (elided) lifetime for no reason: this worked only because the result was always the `Cow::Owned` variant which is compatible with any lifetime. As a consequence, the signature changes from: ```rust fn reindent_multiline(s: Cow<'_, str>, …) -> Cow<'_, str> { … } ``` to ```rust fn reindent_multiline(s: &str, …) -> String { … } ``` | ||||
| 2024-12-26 | Make "all fields are shorthand" requirement configurable | Samuel Moelius | -2/+2 | |
| Handle field attributes in suggestions Fix adjacent code Address review comments https://github.com/rust-lang/rust-clippy/pull/13737#discussion_r1861352124 Address all review comments but one This comment is not yet addressed: https://github.com/rust-lang/rust-clippy/pull/13737#discussion_r1874544907 `initializer_suggestions` -> `lint_inconsistent_struct_field_initializers` | ||||
| 2024-09-22 | Formatting | Philipp Krones | -4/+4 | |
| 2024-09-19 | [Clippy] Swap `map_entry` to use diagnostic items instead of paths | GnomedDev | -6/+6 | |
| 2024-04-04 | Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into ↵ | Philipp Krones | -1/+1 | |
| clippy-subtree-update | ||||
| 2024-03-21 | Merge commit '9d6f41691ed9dbfaec2a2df2661c42451f2fe0d3' into ↵ | Philipp Krones | -1/+4 | |
| clippy-subtree-update | ||||
| 2024-03-14 | Rename `hir::StmtKind::Local` into `hir::StmtKind::Let` | Guillaume Gomez | -1/+1 | |
| 2024-03-07 | Merge commit '93f0a9a91f58c9b2153868f458402155fb6265bb' into ↵ | Philipp Krones | -2/+53 | |
| clippy-subtree-update | ||||
| 2024-01-05 | Update clippy for hir::Guard removal | Matthew Jasper | -2/+2 | |
| 2023-12-01 | Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync | Philipp Krones | -1/+1 | |
| 2023-11-02 | Merge commit '09ac14c901abc43bd0d617ae4a44e8a4fed98d9c' into clippyup | Philipp Krones | -3/+3 | |
| 2023-10-16 | fix lint failures in clippy | Arthur Lafrance | -1/+1 | |
| 2023-07-17 | Merge commit 'd9c24d1b1ee61f276e550b967409c9f155eac4e3' into clippyup | Philipp Krones | -16/+17 | |
| 2023-04-23 | Merge commit 'a3ed905928a03b6e433d0b429190bf3a847128b3' into clippyup | Philipp Krones | -1/+1 | |
| 2023-02-25 | Merge commit '149392b0baa4730c68f3c3eadf5c6ed7b16b85a4' into clippyup | Jason Newcomb | -4/+8 | |
| 2022-10-23 | Merge commit '4f142aa1058f14f153f8bfd2d82f04ddb9982388' into clippyup | flip1995 | -12/+8 | |
| 2022-10-06 | Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup | Philipp Krones | -21/+7 | |
| 2022-09-05 | separate the receiver from arguments in HIR under /clippy | Takayuki Maeda | -2/+2 | |
| 2022-07-18 | Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup | Philipp Krones | -1/+1 | |
| 2022-06-04 | Merge commit 'd9ddce8a223cb9916389c039777b6966ea448dc8' into clippyup | Philipp Krones | -1/+1 | |
| 2022-05-21 | Merge 'rust-clippy/master' into clippyup | xFrednet | -2/+2 | |
| 2022-05-09 | fix clippy | SparrowLii | -2/+2 | |
| 2022-01-21 | Remove a span from hir::ExprKind::MethodCall | Cameron Steffen | -2/+1 | |
| 2022-01-17 | Auto merge of #90986 - camsteffen:nested-filter, r=cjgillot | bors | -6/+1 | |
| Replace `NestedVisitorMap` with generic `NestedFilter` This is an attempt to make the `intravisit::Visitor` API simpler and "more const" with regard to nested visiting. With this change, `intravisit::Visitor` does not visit nested things by default, unless you specify `type NestedFilter = nested_filter::OnlyBodies` (or `All`). `nested_visit_map` returns `Self::Map` instead of `NestedVisitorMap<Self::Map>`. It panics by default (unreachable if `type NestedFilter` is omitted). One somewhat trixty thing here is that `nested_filter::{OnlyBodies, All}` live in `rustc_middle` so that they may have `type Map = map::Map` and so that `impl Visitor`s never need to specify `type Map` - it has a default of `Self::NestedFilter::Map`. | ||||
| 2022-01-17 | Auto merge of #92816 - tmiasko:rm-llvm-asm, r=Amanieu | bors | -1/+1 | |
| Remove deprecated LLVM-style inline assembly The `llvm_asm!` was deprecated back in #87590 1.56.0, with intention to remove it once `asm!` was stabilized, which already happened in #91728 1.59.0. Now it is time to remove `llvm_asm!` to avoid continued maintenance cost. Closes #70173. Closes #92794. Closes #87612. Closes #82065. cc `@rust-lang/wg-inline-asm` r? `@Amanieu` | ||||
| 2022-01-16 | Fix Visitor::NestedFilter in Clippy | Cameron Steffen | -6/+1 | |
| 2022-01-13 | Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup | flip1995 | -5/+5 | |
| 2022-01-12 | Remove LLVM-style inline assembly from clippy | Tomasz Miąsko | -1/+1 | |
| 2021-12-06 | Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup | flip1995 | -0/+1 | |
| 2021-11-04 | Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup | flip1995 | -5/+8 | |
| 2021-09-08 | Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup | flip1995 | -8/+23 | |
| 2021-08-15 | Introduce hir::ExprKind::Let - Take 2 | Caio | -3/+5 | |
| 2021-07-29 | Merge commit '0cce3f643bfcbb92d5a1bb71858c9cbaff749d6b' into clippyup | flip1995 | -4/+7 | |
| 2021-06-03 | Merge commit '3ae8faff4d46ad92f194c2a4b941c3152a701b31' into clippyup | flip1995 | -1/+1 | |
| 2021-04-22 | Merge commit '98e2b9f25b6db4b2680a3d388456d9f95cb28344' into clippyup | flip1995 | -122/+575 | |
| 2021-04-08 | Merge commit 'b40ea209e7f14c8193ddfc98143967b6a2f4f5c9' into clippyup | flip1995 | -8/+8 | |
| 2021-03-25 | Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup | flip1995 | -3/+5 | |
| 2021-02-26 | Add missing diagnostic item Symbols | Cameron Steffen | -1/+2 | |
| 2021-02-09 | Rename HIR UnOp variants | Ömer Sinan Ağacan | -1/+1 | |
| This renames the variants in HIR UnOp from enum UnOp { UnDeref, UnNot, UnNeg, } to enum UnOp { Deref, Not, Neg, } Motivations: - This is more consistent with the rest of the code base where most enum variants don't have a prefix. - These variants are never used without the `UnOp` prefix so the extra `Un` prefix doesn't help with readability. E.g. we don't have any `UnDeref`s in the code, we only have `UnOp::UnDeref`. - MIR `UnOp` type variants don't have a prefix so this is more consistent with MIR types. - "un" prefix reads like "inverse" or "reverse", so as a beginner in rustc code base when I see "UnDeref" what comes to my mind is something like "&*" instead of just "*". | ||||
| 2021-01-07 | Reintroduce hir::ExprKind::If | Caio | -2/+2 | |
| 2020-09-24 | Merge commit 'e636b88aa180e8cab9e28802aac90adbc984234d' into clippyup | flip1995 | -2/+2 | |
| 2020-07-17 | Rename TypeckTables to TypeckResults. | Valentin Lazureanu | -1/+1 | |
| 2020-07-03 | Use 'tcx for references to AccessLevels wherever possible. | Eduard-Mihai Burtescu | -7/+4 | |
| 2020-06-26 | rustc_lint: only query `typeck_tables_of` when a lint needs it. | Eduard-Mihai Burtescu | -1/+1 | |
| 2020-06-10 | Update Clippy for MethodCall changes | Aaron Hill | -2/+2 | |
| 2020-04-26 | More diagnostic items | Philipp Hansch | -2/+2 | |
| In particular for: * `VecDeque` * `String` * `Mutex` * `HashMap` * `HashSet` cc https://github.com/rust-lang/rust/pull/71414 https://github.com/rust-lang/rust-clippy/issues/5393 | ||||
| 2020-04-17 | Cleanup: Rename 'db' variable to 'diag' | Philipp Hansch | -3/+3 | |
| 2020-03-30 | rustup https://github.com/rust-lang/rust/pull/70536 | Matthias Krüger | -1/+1 | |
| 2020-03-16 | rustup https://github.com/rust-lang/rust/pull/68944 | Matthias Krüger | -1/+1 | |
