Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
4af682d
clean-up `clippy_utils::source`
ada4a Apr 4, 2026
777bdce
chore: document and test char::is_whitespace behaviour in collapsible…
codediebere Apr 10, 2026
8f679cd
`return` can be removed from the last stmt of a block if it has an expr
samueltardieu May 3, 2026
34b9d99
move `unnecessary_get_then_check` to `complexity`
ChrisJr404 May 11, 2026
a9aca1c
tiny PR
lcnr May 12, 2026
4916956
Remove a bunch of stray backticks
estebank May 13, 2026
e7f4bad
Make `UnordItems::flat_map` take `UnordItems` as args, too
oli-obk May 4, 2026
2ac87a3
Merge commit 'b147b68c9bbc5ad44aea4220e6f68fd281f19c64' into clippy-s…
flip1995 May 13, 2026
c921cb5
Rollup merge of #156552 - flip1995:clippy-subtree-update, r=Manishearth
JonathanBrouwer May 13, 2026
88cf4ad
Rename `LevelAndSource`
nnethercote May 12, 2026
a5244cc
fix arithmetic side effects false positive
pocopepe May 14, 2026
cb9f14a
Streamline `Level::from_{attr,symbol}`
nnethercote May 14, 2026
b05ab96
Prevent invalid `LevelSpec` values
nnethercote May 14, 2026
b31f09f
Rollup merge of #156564 - nnethercote:LevelSpec, r=GuillaumeGomez
GuillaumeGomez May 14, 2026
9201b28
Revert "Rollup merge of #154074 - dianne:dbg-temp-scopes, r=Mark-Simu…
cuviper May 14, 2026
7aced89
Revert "Rollup merge of #149869 - joboet:torn-dbg, r=Mark-Simulacrum"
cuviper May 14, 2026
3872c05
No longer promotes for integer literals <= 10
tanndlin May 11, 2026
8be2258
fix arithmetic side effects false positive (#17011)
Jarcho May 15, 2026
b734854
Fix `duration_suboptimal_units` for small literals (#16922)
ada4a May 15, 2026
ad95f0f
Split `LintExpectationId`
nnethercote May 15, 2026
462ea5b
Auto merge of #156518 - estebank:match-rustfmt, r=mejrs
bors May 17, 2026
5f750de
Rollup merge of #156596 - nnethercote:split-LintExpectation, r=Guilla…
JonathanBrouwer May 17, 2026
d112f70
Document MSRV-dependent lint behavior
Twil3akine May 19, 2026
ef325ef
Document MSRV-dependent lint behavior (#17035)
ada4a May 19, 2026
942dc28
Auto merge of #156589 - cuviper:revert-dbg-tearing, r=the8472
bors May 19, 2026
71fa8eb
Fix error message for useless_borrows_in_formatting for mutable borrows
42triangles May 19, 2026
56e2487
Fix error message for useless_borrows_in_formatting for mutable borro…
samueltardieu May 20, 2026
a5b2489
Extend `clippy::missing_safety_doc` to unsafe fields
jswrenn Mar 26, 2026
ab639d4
Fix function documentation
samueltardieu May 20, 2026
733cc25
Extend `clippy::missing_safety_doc` to unsafe fields (#16767)
samueltardieu May 20, 2026
0e80e0c
Add check for midpoint using multiplication by 0.5 and >> 1
oscargus May 16, 2026
5663c02
Add check for midpoint using multiplication by 0.5 and >> 1 (#17025)
samueltardieu May 21, 2026
0abfa85
tests: use modern error markers in empty_enum_variants_with_brackets
samueltardieu May 21, 2026
667803a
tests: use modern error markers in ignored_unit_patterns
samueltardieu May 21, 2026
7d40982
tests: use modern error markers in manual_midpoint
samueltardieu May 21, 2026
595b6c5
tests: use modern error markers in double_ended_iterator_last
samueltardieu May 21, 2026
c371a92
tests: use modern error markers in unused_format_specs_width
samueltardieu May 21, 2026
8316739
tests: use modern error markers in duplicated_attributes
samueltardieu May 21, 2026
9ae887d
tests: use modern error markers in mixed_attributes_style
samueltardieu May 21, 2026
0d88a86
tests: use modern error markers in ui-toml/impl_trait_in_params
samueltardieu May 21, 2026
25c6e5a
Cleanup/error messages (#17047)
Jarcho May 21, 2026
0755e50
Fix function documentation (#17041)
Jarcho May 21, 2026
002aeaa
move `unnecessary_get_then_check` to `complexity` (#16998)
Jarcho May 21, 2026
de4a1e9
ast_utils module cleanup
samueltardieu May 22, 2026
8f99b56
`return` can be removed from the last stmt of a block if it has an ex…
Jarcho May 22, 2026
9b99225
Simplify is_some() && …unwrap() to is_some_and in unit_arg
shulaoda May 22, 2026
1e4d280
ast_utils module cleanup (#17053)
llogiq May 22, 2026
b29177d
Simplify `is_some() && …unwrap()` to `is_some_and` in `unit_arg` (#17…
llogiq May 22, 2026
7c1c1b0
Avoid unnecessary `String` allocations in `MinifyingSugg` arithmetic ops
shulaoda May 22, 2026
7019104
Avoid unnecessary `String` allocations in `MinifyingSugg` arithmetic …
samueltardieu May 22, 2026
d72868d
Remove redundant `format!("{}", ..)` around `def_path_str` in `unnece…
shulaoda May 23, 2026
c31d970
fix(useless_format): fire on wrapped in a block-producing macro
shulaoda May 23, 2026
b59f804
fix(useless_format): fire on wrapped in a block-producing macro (#17…
samueltardieu May 23, 2026
f42dedc
Make Ada and Sam the owners of the book
samueltardieu May 23, 2026
96a00b9
Add Ada to the rotation
samueltardieu May 23, 2026
005fd12
add dswij back to rotation
dswij May 23, 2026
f72ea1f
Document and test use of char::is_whitespace in collapsible_if (#16840)
dswij May 23, 2026
882b25c
fix nan
moses7054 May 12, 2026
423f965
Fix `manual_range_contains` NAN handling (#17065)
llogiq May 23, 2026
a55b853
Add `eq_mut_restriction` to clippy_utils
CoCo-Japan-pan May 20, 2026
8a61907
Add Ada to the rotation (#17062)
ada4a May 25, 2026
a8aa784
Update RustRover docs
vlad20012 May 24, 2026
b19ee45
Update RustRover docs (#17069)
ada4a May 25, 2026
acece8d
add dswij back to rotation (#17064)
samueltardieu May 25, 2026
ba8b78b
Make Ada and Sam the owners of the book (#17061)
flip1995 May 26, 2026
778c025
Update `map_flatten` description
dswij May 27, 2026
512551c
Update `map_flatten` description (#17075)
samueltardieu May 27, 2026
8d3b3fe
Added new lint for `map_or(..., identity)`
teofr May 27, 2026
fdd9f4e
Added new lint for `map_or(..., identity)` (#16052)
ada4a May 27, 2026
486ad21
Attributes cleanup in tests [01/20]
samueltardieu May 21, 2026
26b39f8
Expand book's section on snippets
ada4a Apr 4, 2026
74b54c9
Extend documentation on snippets (#16809)
samueltardieu May 28, 2026
1fdb667
Add unused_async_trait_impl lint
Wassasin May 25, 2026
b119b14
Add unused_async_trait_impl lint (#16244)
ada4a May 28, 2026
ada994b
Attributes cleanup in tests [01/20] (#17085)
ada4a May 28, 2026
68204e7
Merge remote-tracking branch 'upstream/master' into rustup
flip1995 May 28, 2026
bfbff69
Bump nightly version -> 2026-05-28
flip1995 May 28, 2026
dd7914a
Bump Clippy version -> 0.1.98
flip1995 May 28, 2026
9fca3bc
Rustup (#17109)
flip1995 May 28, 2026
14937a3
Merge commit '9fca3bc9fc2bc83c60bde26d18ed68f11564b228' into clippy-s…
flip1995 May 28, 2026
9b01485
Update Cargo.lock
flip1995 May 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d"

[[package]]
name = "clippy"
version = "0.1.97"
version = "0.1.98"
dependencies = [
"anstream",
"askama",
Expand All @@ -687,7 +687,7 @@ dependencies = [

[[package]]
name = "clippy_config"
version = "0.1.97"
version = "0.1.98"
dependencies = [
"clippy_utils",
"itertools",
Expand All @@ -711,7 +711,7 @@ dependencies = [

[[package]]
name = "clippy_lints"
version = "0.1.97"
version = "0.1.98"
dependencies = [
"arrayvec",
"cargo_metadata 0.23.1",
Expand Down Expand Up @@ -743,7 +743,7 @@ dependencies = [

[[package]]
name = "clippy_utils"
version = "0.1.97"
version = "0.1.98"
dependencies = [
"arrayvec",
"itertools",
Expand Down Expand Up @@ -1148,7 +1148,7 @@ checksum = "a0afaad2b26fa326569eb264b1363e8ae3357618c43982b3f285f0774ce76b69"

[[package]]
name = "declare_clippy_lint"
version = "0.1.97"
version = "0.1.98"

[[package]]
name = "derive-where"
Expand Down
2 changes: 2 additions & 0 deletions src/tools/clippy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6947,6 +6947,7 @@ Released 2018-09-13
[`map_err_ignore`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_err_ignore
[`map_flatten`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten
[`map_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_identity
[`map_or_identity`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_or_identity
[`map_unwrap_or`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or
[`map_with_unused_argument_over_ranges`]: https://rust-lang.github.io/rust-clippy/master/index.html#map_with_unused_argument_over_ranges
[`match_as_ref`]: https://rust-lang.github.io/rust-clippy/master/index.html#match_as_ref
Expand Down Expand Up @@ -7375,6 +7376,7 @@ Released 2018-09-13
[`unstable_as_mut_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_mut_slice
[`unstable_as_slice`]: https://rust-lang.github.io/rust-clippy/master/index.html#unstable_as_slice
[`unused_async`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_async
[`unused_async_trait_impl`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_async_trait_impl
[`unused_collect`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_collect
[`unused_enumerate_index`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_enumerate_index
[`unused_format_specs`]: https://rust-lang.github.io/rust-clippy/master/index.html#unused_format_specs
Expand Down
17 changes: 3 additions & 14 deletions src/tools/clippy/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,20 +93,9 @@ an AST expression).
## Getting code-completion for rustc internals to work

### RustRover
Unfortunately, [`RustRover`][RustRover_homepage] does not (yet?) understand how Clippy uses compiler-internals
using `extern crate` and it also needs to be able to read the source files of the rustc-compiler which are not
available via a `rustup` component at the time of writing.
To work around this, you need to have a copy of the [rustc-repo][rustc_repo] available which can be obtained via
`git clone https://github.com/rust-lang/rust/`.
Then you can run a `cargo dev` command to automatically make Clippy use the rustc-repo via path-dependencies
which `RustRover` will be able to understand.
Run `cargo dev setup intellij --repo-path <repo-path>` where `<repo-path>` is a path to the rustc repo
you just cloned.
The command will add path-dependencies pointing towards rustc-crates inside the rustc repo to
Clippy's `Cargo.toml`s and should allow `RustRover` to understand most of the types that Clippy uses.
Just make sure to remove the dependencies again before finally making a pull request!

[rustc_repo]: https://github.com/rust-lang/rust/
Since [`RustRover`][RustRover_homepage] 2026.1, no additional setup is required.
Just open the project in RustRover as usual.

[RustRover_homepage]: https://www.jetbrains.com/rust/

### Rust Analyzer
Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clippy"
version = "0.1.97"
version = "0.1.98"
description = "A bunch of helpful lints to avoid common pitfalls in Rust"
repository = "https://github.com/rust-lang/rust-clippy"
readme = "README.md"
Expand Down
8 changes: 7 additions & 1 deletion src/tools/clippy/book/src/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,13 @@ fn main() {
You can also omit the patch version when specifying the MSRV, so `msrv = 1.30`
is equivalent to `msrv = 1.30.0`.

Note: `custom_inner_attributes` is an unstable feature, so it has to be enabled explicitly.
> **Note:** Some lints change their behavior depending on the configured MSRV.
> In some cases, Clippy may suppress a lint entirely to avoid suggesting APIs or
> syntax unavailable for the configured MSRV.
> In other cases, Clippy may emit the lint but choose an older compatible suggestion.

> **Note:** `custom_inner_attributes` is an unstable feature, so it has to be
> enabled explicitly.

Lints that recognize this configuration option can be
found [here](https://rust-lang.github.io/rust-clippy/master/index.html#msrv)
Expand Down
65 changes: 55 additions & 10 deletions src/tools/clippy/book/src/development/emitting_lints.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ LL | for _ in 1..1 + 1 {}
| ^^^^^^^^ help: use: `1..=1`
```

### Applicability

**Not all suggestions are always right**, some of them require human
supervision, that's why we have [Applicability][applicability].

Expand All @@ -105,23 +107,26 @@ impl<'tcx> LateLintPass<'tcx> for LintName {
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
// Imagine that `some_lint_expr_logic` checks for requirements for emitting the lint
if some_lint_expr_logic(expr) {
span_lint_and_sugg( // < Note this change
span_lint_and_then( // < Note this change
cx,
LINT_NAME,
span,
expr.span,
"message on why the lint is emitted",
"use",
format!("foo + {} * bar", snippet(cx, expr.span, "<default>")), // < Suggestion
Applicability::MachineApplicable,
|diag| {
// v Build and emit the suggestion
let mut app = Applicability::MachineApplicable;
let expr_snippet = snippet_with_applicability(cx, expr.span, "_", &mut app);
let sugg = format!("foo + {expr_snippet} * bar");
diag.span_suggestion(expr.span, "use", sugg, app);
}
);
}
}
}
```

Suggestions generally use the [`format!`][format_macro] macro to interpolate the
old values with the new ones. To get code snippets, use one of the `snippet*`
functions from `clippy_utils::source`.
old values with the new ones. For information on getting code snippets, see [Snippets](emitting_lints.md#snippets).

## How to choose between notes, help messages and suggestions

Expand Down Expand Up @@ -183,13 +188,50 @@ error: This `.fold` can be more succinctly expressed as `.any`
|
```

### Snippets
## Snippets

Snippets are pieces of the source code (as a string), they are extracted
generally using the [`snippet`][snippet_fn] function.
generally using the various `snippet_*` functions from [`clippy_utils::source`][].

If you're using the snippets _not_ to build a suggestion, it's usually
enough to use [`snippet`][snippet_fn] -- it accepts the span of the item, and
also a fallback string (see [Fallback string](emitting_lints.md#fallback-string)).

For example, if you want to know how an item looks (and you know the item's
span), you could use `snippet(cx, span, "..")`.
span), you could use `snippet(cx, span, "_")`.

If you do use the snippet for a suggestion, it's recommended to use
[`snippet_with_applicability`] instead. This is so that Clippy can reduce the
[applicability](emitting_lints.md#applicability) of the suggestion in case it couldn't extract
the snippet "cleanly" -- see the function's documentation for more information.

It's often necessary to create multiple snippets to build a suggestion, in which
case you'll have the following pattern:

```rust
// inside `span_lint_and_then`

// 1. Create initial applicability.
let mut app = Applicability::MachineApplicable;

// 2. Use it to create all the snippets
let foo_snippet = snippet_with_applicability(cx, foo.span, "_", &mut app);
let bar_snippet = snippet_with_applicability(cx, bar.span, "_", &mut app);
let sugg = format!("{foo_snippet} + {bar_snippet}"); // or whatever

// 3. Use it to emit the final suggestion
diag.span_suggestion(span, msg, sugg, app);
```

### Fallback string
This is the string that is used for the snippet when the source code that the
span points to is unavailable. That mostly only happens when proc-macros
mishandle spans -- see [the section on proc-macros][proc-macro-spans].

Most of the time, the snippets in a suggestion come from a (span of a) single
expression, and so `"_"` is an appropriate fallback string. If you instead
find yourself suggesting to insert multiple statements, or a block--basically
anything "big"--then consider using `".."` instead.

## Final: Run UI Tests to Emit the Lint

Expand All @@ -210,8 +252,11 @@ cover in the next chapters.
[`span_lint_and_help`]: https://doc.rust-lang.org/nightly/nightly-rustc/clippy_utils/diagnostics/fn.span_lint_and_help.html
[`span_lint_and_sugg`]: https://doc.rust-lang.org/nightly/nightly-rustc/clippy_utils/diagnostics/fn.span_lint_and_sugg.html
[`span_lint_and_then`]: https://doc.rust-lang.org/beta/nightly-rustc/clippy_utils/diagnostics/fn.span_lint_and_then.html
[`clippy_utils::source`]: https://doc.rust-lang.org/nightly/nightly-rustc/clippy_utils/source/index.html
[range_plus_one]: https://rust-lang.github.io/rust-clippy/master/index.html#range_plus_one
[inclusive_range]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html
[applicability]: https://doc.rust-lang.org/beta/nightly-rustc/rustc_errors/enum.Applicability.html
[snippet_fn]: https://doc.rust-lang.org/beta/nightly-rustc/clippy_utils/source/fn.snippet.html
[`snippet_with_applicability`]: https://doc.rust-lang.org/beta/nightly-rustc/clippy_utils/source/fn.snippet_with_applicability.html
[proc-macro-spans]: macro_expansions.html#the-is_from_proc_macro-function
[format_macro]: https://doc.rust-lang.org/std/macro.format.html
2 changes: 1 addition & 1 deletion src/tools/clippy/clippy_config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clippy_config"
version = "0.1.97"
version = "0.1.98"
edition = "2024"
publish = false

Expand Down
2 changes: 1 addition & 1 deletion src/tools/clippy/clippy_lints/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clippy_lints"
version = "0.1.97"
version = "0.1.98"
description = "A bunch of helpful lints to avoid common pitfalls in Rust"
repository = "https://github.com/rust-lang/rust-clippy"
readme = "README.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub(super) fn check(cx: &EarlyContext<'_>, item: &Item, attrs: &[Attribute]) {
return;
}
if let Some(lint_list) = &attr.meta_item_list()
&& attr.name().is_some_and(|name| is_lint_level(name))
&& attr.name().is_some_and(is_lint_level)
{
for lint in lint_list {
match item.kind {
Expand Down
7 changes: 6 additions & 1 deletion src/tools/clippy/clippy_lints/src/booleans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,12 @@ impl<'tcx> NonminimalBoolVisitor<'_, 'tcx> {
}
}
let nonminimal_bool_lint = |mut suggestions: Vec<_>| {
if !self.cx.tcx.lint_level_spec_at_node(NONMINIMAL_BOOL, e.hir_id).is_allow() {
if !self
.cx
.tcx
.lint_level_spec_at_node(NONMINIMAL_BOOL, e.hir_id)
.is_allow()
{
suggestions.sort();
span_lint_hir_and_then(
self.cx,
Expand Down
2 changes: 2 additions & 0 deletions src/tools/clippy/clippy_lints/src/collapsible_if.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ impl CollapsibleIf {

// Prevent "elseif"
// Check that the "else" is followed by whitespace
// Note: We intentionally use char::is_whitespace instead of rustc_lexer::is_whitespace here to
// avoid visual issues with zero-width spaces. See ui tests.
let requires_space = snippet(cx, up_to_else, "..").ends_with(|c: char| !c.is_whitespace());
let mut applicability = Applicability::MachineApplicable;
diag.span_suggestion(
Expand Down
92 changes: 45 additions & 47 deletions src/tools/clippy/clippy_lints/src/dbg_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,53 +75,51 @@ impl LateLintPass<'_> for DbgMacro {
"the `dbg!` macro is intended as a debugging tool",
|diag| {
let mut applicability = Applicability::MachineApplicable;
let (sugg_span, suggestion) = match is_async_move_desugar(expr)
.unwrap_or(expr)
.peel_drop_temps()
.kind
{
// dbg!()
ExprKind::Block(..) => {
// If the `dbg!` macro is a "free" statement and not contained within other expressions,
// remove the whole statement.
if let Node::Stmt(_) = cx.tcx.parent_hir_node(expr.hir_id)
&& let Some(semi_span) = cx.sess().source_map().mac_call_stmt_semi_span(macro_call.span)
{
(macro_call.span.to(semi_span), String::new())
} else {
(macro_call.span, String::from("()"))
}
},
// dbg!(1)
ExprKind::Match(val, ..) => (
macro_call.span,
snippet_with_applicability(cx, val.span.source_callsite(), "..", &mut applicability)
.to_string(),
),
// dbg!(2, 3)
ExprKind::Tup(
[
Expr {
kind: ExprKind::Match(first, ..),
..
},
..,
Expr {
kind: ExprKind::Match(last, ..),
..
},
],
) => {
let snippet = snippet_with_applicability(
cx,
first.span.source_callsite().to(last.span.source_callsite()),
"..",
&mut applicability,
);
(macro_call.span, format!("({snippet})"))
},
_ => unreachable!(),
};
let (sugg_span, suggestion) =
match is_async_move_desugar(expr).unwrap_or(expr).peel_drop_temps().kind {
// dbg!()
ExprKind::Block(..) => {
// If the `dbg!` macro is a "free" statement and not contained within other expressions,
// remove the whole statement.
if let Node::Stmt(_) = cx.tcx.parent_hir_node(expr.hir_id)
&& let Some(semi_span) =
cx.sess().source_map().mac_call_stmt_semi_span(macro_call.span)
{
(macro_call.span.to(semi_span), String::new())
} else {
(macro_call.span, String::from("()"))
}
},
// dbg!(1)
ExprKind::Match(val, ..) => (
macro_call.span,
snippet_with_applicability(cx, val.span.source_callsite(), "..", &mut applicability)
.to_string(),
),
// dbg!(2, 3)
ExprKind::Tup(
[
Expr {
kind: ExprKind::Match(first, ..),
..
},
..,
Expr {
kind: ExprKind::Match(last, ..),
..
},
],
) => {
let snippet = snippet_with_applicability(
cx,
first.span.source_callsite().to(last.span.source_callsite()),
"..",
&mut applicability,
);
(macro_call.span, format!("({snippet})"))
},
_ => unreachable!(),
};

diag.span_suggestion(
sugg_span,
Expand Down
2 changes: 2 additions & 0 deletions src/tools/clippy/clippy_lints/src/declared_lints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ pub static LINTS: &[&::declare_clippy_lint::LintInfo] = &[
crate::methods::MAP_ERR_IGNORE_INFO,
crate::methods::MAP_FLATTEN_INFO,
crate::methods::MAP_IDENTITY_INFO,
crate::methods::MAP_OR_IDENTITY_INFO,
crate::methods::MAP_UNWRAP_OR_INFO,
crate::methods::MAP_WITH_UNUSED_ARGUMENT_OVER_RANGES_INFO,
crate::methods::MUT_MUTEX_LOCK_INFO,
Expand Down Expand Up @@ -783,6 +784,7 @@ pub static LINTS: &[&::declare_clippy_lint::LintInfo] = &[
crate::unnested_or_patterns::UNNESTED_OR_PATTERNS_INFO,
crate::unsafe_removed_from_name::UNSAFE_REMOVED_FROM_NAME_INFO,
crate::unused_async::UNUSED_ASYNC_INFO,
crate::unused_async::UNUSED_ASYNC_TRAIT_IMPL_INFO,
crate::unused_io_amount::UNUSED_IO_AMOUNT_INFO,
crate::unused_peekable::UNUSED_PEEKABLE_INFO,
crate::unused_result_ok::UNUSED_RESULT_OK_INFO,
Expand Down
Loading
Loading