3 The tracking issue for this feature is: [#44690]
5 [#44690]: https://github.com/rust-lang/rust/issues/44690
7 ------------------------
9 Tool lints let you use scoped lints, to `allow`, `warn`, `deny` or `forbid` lints of
12 Currently `clippy` is the only available lint tool.
14 It is recommended for lint tools to implement the scoped lints like this:
16 - `#[_(TOOL_NAME::lintname)]`: for lint names
17 - `#[_(TOOL_NAME::lintgroup)]`: for groups of lints
18 - `#[_(TOOL_NAME::all)]`: for (almost[^1]) all lints
23 #![feature(tool_lints)]
25 #![warn(clippy::pedantic)]
27 #[allow(clippy::filter_map)]
30 let _ = v.into_iter().filter(|&x| x < 1).map(|x| x + 1).collect::<Vec<_>>();
31 println!("No filter_map()!");
35 [^1]: Some defined lint groups can be excluded here.