| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-12-26 | Make "all fields are shorthand" requirement configurable | Samuel Moelius | -1/+1 | |
| 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-12-06 | chore: use multipart_suggestions for str_splitn | Scott Gerring | -9/+13 | |
| 2024-11-15 | Rename all clippy_config::msrvs -> clippy_utils::msrvs | Philipp Krones | -1/+1 | |
| 2024-11-12 | new lint `unnecessary_map_or` | Jacherr | -1/+1 | |
| 2024-10-13 | Check MethodCall/Call arg count earlier or at all | GnomedDev | -1/+1 | |
| 2024-09-22 | Formatting | Philipp Krones | -2/+2 | |
| 2024-08-08 | Merge commit 'cb806113e0f83a8f9b47d35b453b676543bcc40e' into ↵ | Philipp Krones | -2/+2 | |
| clippy-subtree-update | ||||
| 2024-06-13 | Merge commit '3e5a02b13b1244545454752c6629b767522a44b1' into ↵ | Philipp Krones | -2/+2 | |
| clippy-subtree-update | ||||
| 2024-04-17 | Rename `BindingAnnotation` to `BindingMode` | Jules Bertholet | -3/+3 | |
| 2024-04-04 | Merge commit '9725c4a162502a02c1c67fdca6b797fe09b2b73c' into ↵ | Philipp Krones | -2/+2 | |
| clippy-subtree-update | ||||
| 2024-03-22 | Rename `hir::Node::Local` into `hir::Node::LetStmt` | Guillaume Gomez | -1/+1 | |
| 2024-03-22 | Rename `hir::Local` into `hir::LetStmt` | Guillaume Gomez | -2/+2 | |
| 2024-03-14 | Rename `hir::StmtKind::Local` into `hir::StmtKind::Let` | Guillaume Gomez | -1/+1 | |
| 2023-11-16 | Merge commit 'edb720b199083f4107b858a8761648065bf38d86' into clippyup | Philipp Krones | -29/+22 | |
| 2023-11-02 | Merge commit '09ac14c901abc43bd0d617ae4a44e8a4fed98d9c' into clippyup | Philipp Krones | -16/+4 | |
| 2023-08-14 | Move scrutinee `HirId` into `MatchSource::TryDesugar` | Esteban Küber | -1/+1 | |
| 2023-07-17 | Merge commit 'd9c24d1b1ee61f276e550b967409c9f155eac4e3' into clippyup | Philipp Krones | -2/+2 | |
| 2023-07-02 | Merge commit '37f4c1725d3fd7e9c3ffd8783246bc5589debc53' into clippyup | Philipp Krones | -1/+1 | |
| 2023-05-20 | Merge commit '435a8ad86c7a33bd7ffb91c59039943408d3b6aa' into clippyup | Philipp Krones | -1/+1 | |
| 2023-05-03 | Restrict `From<S>` for `{D,Subd}iagnosticMessage`. | Nicholas Nethercote | -2/+2 | |
| Currently a `{D,Subd}iagnosticMessage` can be created from any type that impls `Into<String>`. That includes `&str`, `String`, and `Cow<'static, str>`, which are reasonable. It also includes `&String`, which is pretty weird, and results in many places making unnecessary allocations for patterns like this: ``` self.fatal(&format!(...)) ``` This creates a string with `format!`, takes a reference, passes the reference to `fatal`, which does an `into()`, which clones the reference, doing a second allocation. Two allocations for a single string, bleh. This commit changes the `From` impls so that you can only create a `{D,Subd}iagnosticMessage` from `&str`, `String`, or `Cow<'static, str>`. This requires changing all the places that currently create one from a `&String`. Most of these are of the `&format!(...)` form described above; each one removes an unnecessary static `&`, plus an allocation when executed. There are also a few places where the existing use of `&String` was more reasonable; these now just use `clone()` at the call site. As well as making the code nicer and more efficient, this is a step towards possibly using `Cow<'static, str>` in `{D,Subd}iagnosticMessage::{Str,Eager}`. That would require changing the `From<&'a str>` impls to `From<&'static str>`, which is doable, but I'm not yet sure if it's worthwhile. | ||||
| 2022-12-29 | Merge commit '4f3ab69ea0a0908260944443c739426cc384ae1a' into clippyup | Philipp Krones | -1/+1 | |
| 2022-12-01 | Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup | Philipp Krones | -4/+4 | |
| 2022-10-23 | Merge commit '4f142aa1058f14f153f8bfd2d82f04ddb9982388' into clippyup | flip1995 | -3/+1 | |
| 2022-10-06 | Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup | Philipp Krones | -11/+9 | |
| 2022-09-06 | Auto merge of #101241 - camsteffen:refactor-binding-annotations, r=cjgillot | bors | -6/+5 | |
| `BindingAnnotation` refactor * `ast::BindingMode` is deleted and replaced with `hir::BindingAnnotation` (which is moved to `ast`) * `BindingAnnotation` is changed from an enum to a tuple struct e.g. `BindingAnnotation(ByRef::No, Mutability::Mut)` * Associated constants added for convenience `BindingAnnotation::{NONE, REF, MUT, REF_MUT}` One goal is to make it more clear that `BindingAnnotation` merely represents syntax `ref mut` and not the actual binding mode. This was especially confusing since we had `ast::BindingMode`->`hir::BindingAnnotation`->`thir::BindingMode`. I wish there were more symmetry between `ByRef` and `Mutability` (variant) naming (maybe `Mutable::Yes`?), and I also don't love how long the name `BindingAnnotation` is, but this seems like the best compromise. Ideas welcome. | ||||
| 2022-09-05 | separate the receiver from arguments in HIR under /clippy | Takayuki Maeda | -3/+3 | |
| 2022-09-02 | clippy: BindingAnnotation change | Cameron Steffen | -6/+5 | |
| 2022-06-13 | remove unnecessary `to_string` and `String::new` | Takayuki Maeda | -2/+2 | |
| 2022-05-21 | Merge 'rust-clippy/master' into clippyup | xFrednet | -3/+3 | |
| 2022-05-05 | Merge commit '7c21f91b15b7604f818565646b686d90f99d1baf' into clippyup | flip1995 | -173/+240 | |
| 2022-03-11 | Improve `AdtDef` interning. | Nicholas Nethercote | -1/+1 | |
| This commit makes `AdtDef` use `Interned`. Much the commit is tedious changes to introduce getter functions. The interesting changes are in `compiler/rustc_middle/src/ty/adt.rs`. | ||||
| 2022-02-10 | Merge commit '57b3c4b90f4346b3990c1be387c3b3ca7b78412c' into clippyup | flip1995 | -3/+3 | |
| 2022-01-21 | Remove a span from hir::ExprKind::MethodCall | Cameron Steffen | -4/+4 | |
| 2022-01-13 | Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup | flip1995 | -2/+2 | |
| 2021-12-19 | Auto merge of #91957 - nnethercote:rm-SymbolStr, r=oli-obk | bors | -2/+2 | |
| Remove `SymbolStr` This was originally proposed in https://github.com/rust-lang/rust/pull/74554#discussion_r466203544. As well as removing the icky `SymbolStr` type, it allows the removal of a lot of `&` and `*` occurrences. Best reviewed one commit at a time. r? `@oli-obk` | ||||
| 2021-12-15 | Remove unnecessary sigils around `Ident::as_str()` calls. | Nicholas Nethercote | -2/+2 | |
| 2021-12-13 | Fix clippy uses of QPath::LangItem | Esteban Kuber | -1/+1 | |
| 2021-12-06 | Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup | flip1995 | -0/+323 | |
