| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2024-12-09 | Introduce `default_field_values` feature | Esteban Küber | -2/+2 | |
| Initial implementation of `#[feature(default_field_values]`, proposed in https://github.com/rust-lang/rfcs/pull/3681. Support default fields in enum struct variant Allow default values in an enum struct variant definition: ```rust pub enum Bar { Foo { bar: S = S, baz: i32 = 42 + 3, } } ``` Allow using `..` without a base on an enum struct variant ```rust Bar::Foo { .. } ``` `#[derive(Default)]` doesn't account for these as it is still gating `#[default]` only being allowed on unit variants. Support `#[derive(Default)]` on enum struct variants with all defaulted fields ```rust pub enum Bar { #[default] Foo { bar: S = S, baz: i32 = 42 + 3, } } ``` Check for missing fields in typeck instead of mir_build. Expand test with `const` param case (needs `generic_const_exprs` enabled). Properly instantiate MIR const The following works: ```rust struct S<A> { a: Vec<A> = Vec::new(), } S::<i32> { .. } ``` Add lint for default fields that will always fail const-eval We *allow* this to happen for API writers that might want to rely on users' getting a compile error when using the default field, different to the error that they would get when the field isn't default. We could change this to *always* error instead of being a lint, if we wanted. This will *not* catch errors for partially evaluated consts, like when the expression relies on a const parameter. Suggestions when encountering `Foo { .. }` without `#[feature(default_field_values)]`: - Suggest adding a base expression if there are missing fields. - Suggest enabling the feature if all the missing fields have optional values. - Suggest removing `..` if there are no missing fields. | ||||
| 2023-12-01 | Merge commit 'f0cdee4a3f094416189261481eae374b76792af1' into clippy-subtree-sync | Philipp Krones | -1/+1 | |
| 2023-11-02 | Merge commit '09ac14c901abc43bd0d617ae4a44e8a4fed98d9c' into clippyup | Philipp Krones | -1/+1 | |
| 2022-06-16 | Merge commit 'd7b5cbf065b88830ca519adcb73fad4c0d24b1c7' into clippyup | flip1995 | -3/+4 | |
| 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`. | ||||
| 2021-12-06 | Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup | flip1995 | -0/+1 | |
| 2021-07-29 | Merge commit '0cce3f643bfcbb92d5a1bb71858c9cbaff749d6b' into clippyup | flip1995 | -5/+5 | |
| 2021-04-08 | Merge commit 'b40ea209e7f14c8193ddfc98143967b6a2f4f5c9' into clippyup | flip1995 | -1/+1 | |
| 2021-03-25 | Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup | flip1995 | -1/+1 | |
| 2020-12-20 | Merge commit '4911ab124c481430672a3833b37075e6435ec34d' into clippyup | flip1995 | -1/+6 | |
| 2020-09-04 | `ty.kind` -> `ty.kind()` in rustdoc and clippy | LeSeulArtichaut | -1/+1 | |
| 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 | -2/+2 | |
| 2020-06-26 | rustc_lint: only query `typeck_tables_of` when a lint needs it. | Eduard-Mihai Burtescu | -1/+1 | |
| 2020-06-09 | Merge commit 'ff0993c5e9162ddaea78e83d0f0161e68bd4ea73' into clippy | Lzu Tao | -0/+10 | |
| 2020-03-30 | rustup https://github.com/rust-lang/rust/pull/70536 | Matthias Krüger | -1/+1 | |
| 2020-01-13 | Rustup to rust-lang/rust#68045 | Yuki Okushi | -1/+1 | |
| 2020-01-11 | Rustup to rust-lang/rust#67806 | Yuki Okushi | -3/+2 | |
| 2020-01-07 | Rustup to rust-lang/rust#67886 | Yuki Okushi | -1/+1 | |
| 2019-12-27 | Rustup to rust-lang/rust#66936 | Yuki Okushi | -1/+1 | |
| 2019-12-04 | Rustup to rust-lang/rust#66878 | Matthias Krüger | -1/+2 | |
| 2019-09-27 | Rustup to rust-lang/rust#64813 | flip1995 | -1/+1 | |
| 2019-09-26 | Rustup https://github.com/rust-lang/rust/pull/64513 | Lzu Tao | -1/+1 | |
| 2019-08-02 | Doctests: Fix all complexity lint docs | Philipp Hansch | -2/+8 | |
| cc #4319 | ||||
| 2019-04-17 | Use lint pass macros | Matthew Kraai | -14/+3 | |
| Fixes #3917. | ||||
| 2019-03-05 | move lint documentation into macro invocations | Andy Russell | -16/+16 | |
| 2019-01-27 | rustup https://github.com/rust-lang/rust/pull/57726 | Matthias Krüger | -0/+4 | |
| 2019-01-08 | Remove all copyright license headers | Philipp Hansch | -9/+0 | |
| Discussion previously happened in https://github.com/rust-lang/rust/pull/43498 | ||||
| 2018-12-29 | Remove crate:: prefixes from crate paths | Konrad Borowski | -4/+4 | |
| This is somewhat misleading, as those are actually external crates, and don't need a crate:: prefix. | ||||
| 2018-11-27 | Run rustfmt on clippy_lints | flip1995 | -4/+7 | |
| 2018-10-06 | Add license header to Rust files | Manish Goregaokar | -0/+10 | |
| 2018-09-15 | Reintroduce `extern crate` for non-Cargo dependencies. | Eduard-Mihai Burtescu | -4/+4 | |
| 2018-08-29 | Switch to declare_tool_lint macro | flip1995 | -1/+1 | |
| 2018-08-22 | rustup, fix breakage introduced by https://github.com/rust-lang/rust/pull/53581 | Matthias Krüger | -1/+1 | |
| 2018-07-19 | Remove import of rustc | Manish Goregaokar | -0/+1 | |
| 2018-07-16 | ExprKind | csmoe | -2/+2 | |
| 2018-05-30 | Run rustfix | Mateusz Mikuła | -1/+1 | |
| 2018-03-28 | Categorize all the lints! | Oliver Schneider | -2/+2 | |
| 2018-01-10 | Version bump | Oliver Schneider | -1/+1 | |
| 2017-08-14 | Rustfmt | Oliver Schneider | -4/+6 | |
| 2017-06-11 | Abide by the common rustc::ty conventions. | Eduard-Mihai Burtescu | -2/+2 | |
| 2017-01-13 | rustup to 2017-01-12 | Oliver Schneider | -1/+1 | |
| 2016-12-07 | update to the rust-PR that unblocks clippy | Oliver Schneider | -2/+2 | |
| 2016-12-06 | rustup to rustc 1.15.0-dev (3b248a184 2016-12-05) | Oliver Schneider | -1/+1 | |
| 2016-11-16 | Rustup to rustc 1.15.0-nightly (0ed951993 2016-11-14) | mcarton | -1/+1 | |
| 2016-09-10 | Rustup to *rustc 1.13.0-nightly (f1f40f850 2016-09-09)* | mcarton | -2/+2 | |
| 2016-08-07 | Make the lint docstrings more consistent. | Georg Brandl | -2/+4 | |
| 2016-07-16 | Improve docs | mcarton | -2/+5 | |
| 2016-06-16 | round 1 | Oliver Schneider | -3/+3 | |
| 2016-05-27 | split clippy into lints, plugin and cargo-clippy | Oliver Schneider | -0/+42 | |
