]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/rename.fixed
Auto merge of #83846 - torhovland:issue-10971, r=davidtwco
[rust.git] / src / tools / clippy / tests / ui / rename.fixed
1 //! Test for Clippy lint renames.
2 // run-rustfix
3
4 #![allow(dead_code)]
5 // allow the new lint name here, to test if the new name works
6 #![allow(clippy::module_name_repetitions)]
7 #![allow(clippy::new_without_default)]
8 #![allow(clippy::redundant_static_lifetimes)]
9 #![allow(clippy::bind_instead_of_map)]
10 #![allow(clippy::box_collection)]
11 #![allow(clippy::blocks_in_if_conditions)]
12 #![allow(clippy::map_unwrap_or)]
13 #![allow(clippy::unwrap_used)]
14 #![allow(clippy::expect_used)]
15 #![allow(clippy::for_loops_over_fallibles)]
16 #![allow(clippy::useless_conversion)]
17 #![allow(clippy::invisible_characters)]
18 #![allow(clippy::single_char_add_str)]
19 #![allow(clippy::match_result_ok)]
20 // uplifted lints
21 #![allow(invalid_value)]
22 #![allow(array_into_iter)]
23 #![allow(unused_labels)]
24 #![allow(drop_bounds)]
25 #![allow(temporary_cstring_as_ptr)]
26 #![allow(non_fmt_panics)]
27 #![allow(unknown_lints)]
28 #![allow(invalid_atomic_ordering)]
29 #![allow(enum_intrinsics_non_enums)]
30 // warn for the old lint name here, to test if the renaming worked
31 #![warn(clippy::module_name_repetitions)]
32 #![warn(clippy::new_without_default)]
33 #![warn(clippy::redundant_static_lifetimes)]
34 #![warn(clippy::cognitive_complexity)]
35 #![warn(clippy::bind_instead_of_map)]
36 #![warn(clippy::box_collection)]
37 #![warn(clippy::blocks_in_if_conditions)]
38 #![warn(clippy::blocks_in_if_conditions)]
39 #![warn(clippy::map_unwrap_or)]
40 #![warn(clippy::map_unwrap_or)]
41 #![warn(clippy::map_unwrap_or)]
42 #![warn(clippy::unwrap_used)]
43 #![warn(clippy::unwrap_used)]
44 #![warn(clippy::expect_used)]
45 #![warn(clippy::expect_used)]
46 #![warn(clippy::for_loops_over_fallibles)]
47 #![warn(clippy::for_loops_over_fallibles)]
48 #![warn(clippy::useless_conversion)]
49 #![warn(clippy::invisible_characters)]
50 #![warn(clippy::single_char_add_str)]
51 #![warn(clippy::match_result_ok)]
52 // uplifted lints
53 #![warn(invalid_value)]
54 #![warn(array_into_iter)]
55 #![warn(unused_labels)]
56 #![warn(drop_bounds)]
57 #![warn(temporary_cstring_as_ptr)]
58 #![warn(non_fmt_panics)]
59 #![warn(unknown_lints)]
60 #![warn(invalid_atomic_ordering)]
61 #![warn(enum_intrinsics_non_enums)]
62
63 fn main() {}