| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2025-02-21 | rename `MANUAL_DIV_CEIL` MSRV alias and add missing conf info for ↵ | Alejandra González | -1/+1 | |
| `manual_div_ceil` (#14263) - The name of an MSRV alias should describe its functionality, and it is not appropriate for it to be the same as the name of the lint that uses it. - Additionally, while `manual_div_ceil` allows setting MSRV, this is not correctly reflected in the configuration information. changelog: none | ||||
| 2025-02-21 | Represent the capability instead of the lint name in msrv aliases | Samuel Tardieu | -1/+1 | |
| `INTEGER_BITS` better represents the addition of the `BITS` value on the primitive integer types. | ||||
| 2025-02-20 | rename the MSRV alias `MANUAL_DIV_CEIL` to `DIV_CEIL` | lapla-cogito | -1/+1 | |
| 2025-02-12 | New lint: `mem_replace_option_with_some` | Samuel Tardieu | -0/+1 | |
| `mem::replace(opt, Some(v))` can be replaced by `opt.replace(v)`. | ||||
| 2025-02-07 | add MSRV check for `lines_filter_map_ok` (#14130) | Catherine Flores | -0/+1 | |
| fixes #14127 changelog: [`lines_filter_map_ok`]: respect MSRV | ||||
| 2025-02-03 | new `manual_option_as_slice` lint (#13901) | Alejandra González | -0/+3 | |
| Hey folks. It's been a while since I added the `as_slice` method to `Option`, and I totally forgot about a lint to suggest it. Well, I had some time around Christmas, so here it is now. --- changelog: add [`manual_option_as_slice`] lint | ||||
| 2025-02-03 | add `SLICE_FILL` to msrv | lapla-cogito | -1/+1 | |
| 2025-02-01 | add MSRV check for `lines_filter_map_ok` | lapla-cogito | -0/+1 | |
| 2025-01-26 | new `manual_option_as_slice` lint | Andre Bogus | -0/+3 | |
| 2025-01-24 | add new lint `non_std_lazy_statics` | J-ZhengLi | -1/+1 | |
| detect usage of `once_cell::sync::Lazy` and `lazy_static!`, recommending usage of `std::sync::LazyLock` instead | ||||
| 2025-01-18 | Emit `missing_const_for_fn` for `CONST_MUT_REFS` | Thomas Churchman | -1/+1 | |
| 2025-01-15 | New lint `useless-nonzero-new_unchecked` (#13993) | Manish Goregaokar | -1/+1 | |
| changelog: [`useless-nonzero-new_unchecked`]: new lint Close #13991 ### What it does Checks for `NonZero*::new_unchecked(<literal>)` being used in a `const` context. ### Why is this bad? Using `NonZero*::new_unchecked()` is an `unsafe` function and requires an `unsafe` context. When used with an integer literal in a `const` context, `NonZero*::new().unwrap()` will provide the same result with identical runtime performances while not requiring `unsafe`. ### Example ```no_run const PLAYERS: NonZeroUsize = unsafe { NonZeroUsize::new_unchecked(3) }; ``` Use instead: ```no_run const PLAYERS: NonZeroUsize = NonZeroUsize::new(3).unwrap(); ``` | ||||
| 2025-01-13 | New lint `useless-nonzero-new_unchecked` | Samuel Tardieu | -1/+1 | |
| 2025-01-13 | Rust 1.81 and later support elision with explicit self types | Samuel Tardieu | -1/+1 | |
| Commit 9ef6e2199c885ffd671b321dfbf16ff0934f4d80 introduced a check to ensure that Clippy doesn't consider a lifetime present in an explicit self type as being the default for an elided output lifetime. For example, elision did not work in the case like: ```rust fn func(self: &Rc<Self>, &str) -> &str { … } ``` Since Rust 1.81.0, the lifetime in the self type is now considered the default for elision. Elision should then be suggested when appropriate. | ||||
| 2025-01-01 | Dogfood double_ended_iterator_last | Quentin Santos | -1/+1 | |
| 2025-01-01 | Revert "Dogfood double_ended_iterator_last" | Quentin Santos | -1/+1 | |
| This reverts commit 09c5d34f98f53d4f0b4181404608d4c1bcede4d5. | ||||
| 2025-01-01 | Dogfood double_ended_iterator_last | Quentin Santos | -1/+1 | |
| 2024-12-26 | Merge remote-tracking branch 'upstream/master' into rustup | Philipp Krones | -4/+5 | |
| 2024-12-16 | rename rustc_attr to rustc_attr_parsing and create rustc_attr_data_structures | Jonathan Dönszelmann | -2/+2 | |
| 2024-12-16 | split attributes | Jonathan Dönszelmann | -1/+1 | |
| 2024-12-16 | Do not suggest using `Error` in `no_std` before Rust 1.81 (#13834) | llogiq | -1/+1 | |
| changelog: [`result_unit_err`]: do not suggest using `Error` in `no_std` mode before Rust 1.81 Fix #9767 | ||||
| 2024-12-16 | Do not suggest using `Error` in `no_std` before Rust 1.81 | Samuel Tardieu | -1/+1 | |
| 2024-12-15 | Initial impl `repr_packed_without_abi` | Lukas Lueg | -0/+1 | |
| Fixes #13375 | ||||
| 2024-12-15 | Add hir::Attribute | Jonathan Dönszelmann | -8/+8 | |
| 2024-12-05 | update `borrow_as_ptr` to suggest `&raw` when the MSRV allows it | cyrgani | -2/+2 | |
| 2024-11-28 | Merge commit 'ff4a26d442bead94a4c96fb1de967374bc4fbd8e' into ↵ | Philipp Krones | -0/+165 | |
| clippy-subtree-update | ||||
| 2024-11-16 | Simplify instances of `Option::map_or(true, …)` in Clippy sources | Samuel Tardieu | -1/+1 | |
| 2024-11-15 | Move MSRV implementation to clippy_utils | Philipp Krones | -0/+165 | |
| 2023-11-02 | Merge commit '09ac14c901abc43bd0d617ae4a44e8a4fed98d9c' into clippyup | Philipp Krones | -130/+0 | |
| 2023-10-23 | Move configuration to new `clippy_config` crate | Alex Macleod | -130/+0 | |
| 2023-10-21 | Merge commit '2b030eb03d9e5837440b1ee0b98c50b97c0c5889' into clippyup | Philipp Krones | -54/+36 | |
| 2023-10-18 | Deserialize Msrv directly in Conf | Alex Macleod | -54/+36 | |
| 2023-10-06 | Merge commit 'b105fb4c39bc1a010807a6c076193cef8d93c109' into clippyup | Philipp Krones | -1/+1 | |
| 2023-09-26 | Add `manual_hash_one` lint | Alex Macleod | -1/+1 | |
| 2023-08-24 | Merge commit '080b587854a73f2a8cbaecff1884860a78e2ff37' into clippyup | Philipp Krones | -1/+1 | |
| 2023-08-13 | feat: update manual_retain to lint binary_heap_retain | unvalley | -1/+1 | |
| refactor: rename variable chore: reorder test: update naming for msrv | ||||
| 2023-07-02 | Merge commit '37f4c1725d3fd7e9c3ffd8783246bc5589debc53' into clippyup | Philipp Krones | -1/+5 | |
| 2023-07-01 | New lint `manual_try_fold` | Catherine | -0/+1 | |
| 2023-06-29 | Add msrv check and make test pass | Catherine | -0/+1 | |
| 2023-06-27 | changed msrv name for consistency & changed nested if for style | darklyspaced | -1/+1 | |
| 2023-06-27 | changed the msrv to 1.70 to suggest `is_some_and` | darklyspaced | -0/+1 | |
| if the msrv is not >= 1.70 then the `map_or` is suggested instead of `is_some_and` (even when `unwrap_or` returns false) | ||||
| 2023-06-22 | rename MSRV alias, add MSRV to lint doc | y21 | -1/+1 | |
| 2023-06-20 | [`type_repetition_in_bounds`]: respect msrv for combining maybe bounds | y21 | -0/+1 | |
| 2023-06-09 | Extend `explicit_iter_loop` to all types | Jason Newcomb | -1/+1 | |
| 2023-06-02 | Merge commit '30448e8cf98d4754350db0c959644564f317bc0f' into clippyup | Philipp Krones | -1/+1 | |
| 2023-05-16 | add description and rename msrv tests | Centri3 | -1/+1 | |
| 2023-03-24 | Merge commit 'd5e2a7aca55ed49fc943b7a07a8eba05ab5a0079' into clippyup | Philipp Krones | -0/+1 | |
| 2023-03-16 | New lint to detect `&std::path::MAIN_SEPARATOR.to_string()` | Samuel "Sam" Tardieu | -0/+1 | |
| 2023-01-12 | Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup | Philipp Krones | -2/+2 | |
| 2023-01-05 | Restrict suggestion of deriving Default for enums to MSRV 1.62. | Kyle Huey | -2/+2 | |
| See https://blog.rust-lang.org/2022/06/30/Rust-1.62.0.html#default-enum-variants | ||||
