2019-08-18 02:37:12 -05:00
|
|
|
//! Test for Clippy lint renames.
|
|
|
|
// run-rustfix
|
|
|
|
|
|
|
|
#![allow(dead_code)]
|
|
|
|
// allow the new lint name here, to test if the new name works
|
|
|
|
#![allow(clippy::module_name_repetitions)]
|
|
|
|
#![allow(clippy::new_without_default)]
|
|
|
|
#![allow(clippy::redundant_static_lifetimes)]
|
2021-12-06 05:33:31 -06:00
|
|
|
#![allow(clippy::cognitive_complexity)]
|
2021-11-04 07:52:36 -05:00
|
|
|
#![allow(clippy::bind_instead_of_map)]
|
|
|
|
#![allow(clippy::box_collection)]
|
|
|
|
#![allow(clippy::blocks_in_if_conditions)]
|
|
|
|
#![allow(clippy::map_unwrap_or)]
|
|
|
|
#![allow(clippy::unwrap_used)]
|
|
|
|
#![allow(clippy::expect_used)]
|
|
|
|
#![allow(clippy::for_loops_over_fallibles)]
|
|
|
|
#![allow(clippy::useless_conversion)]
|
|
|
|
#![allow(clippy::invisible_characters)]
|
|
|
|
#![allow(clippy::single_char_add_str)]
|
|
|
|
#![allow(clippy::match_result_ok)]
|
2021-12-06 05:33:31 -06:00
|
|
|
#![allow(clippy::disallowed_types)]
|
|
|
|
#![allow(clippy::disallowed_methods)]
|
2021-11-04 07:52:36 -05:00
|
|
|
// uplifted lints
|
|
|
|
#![allow(invalid_value)]
|
|
|
|
#![allow(array_into_iter)]
|
|
|
|
#![allow(unused_labels)]
|
|
|
|
#![allow(drop_bounds)]
|
|
|
|
#![allow(temporary_cstring_as_ptr)]
|
|
|
|
#![allow(non_fmt_panics)]
|
|
|
|
#![allow(unknown_lints)]
|
|
|
|
#![allow(invalid_atomic_ordering)]
|
|
|
|
#![allow(enum_intrinsics_non_enums)]
|
2019-08-18 02:37:12 -05:00
|
|
|
// warn for the old lint name here, to test if the renaming worked
|
2021-11-04 07:52:36 -05:00
|
|
|
#![warn(clippy::module_name_repetitions)]
|
|
|
|
#![warn(clippy::new_without_default)]
|
|
|
|
#![warn(clippy::redundant_static_lifetimes)]
|
2019-08-18 02:37:12 -05:00
|
|
|
#![warn(clippy::cognitive_complexity)]
|
2021-11-04 07:52:36 -05:00
|
|
|
#![warn(clippy::bind_instead_of_map)]
|
|
|
|
#![warn(clippy::box_collection)]
|
|
|
|
#![warn(clippy::blocks_in_if_conditions)]
|
|
|
|
#![warn(clippy::blocks_in_if_conditions)]
|
|
|
|
#![warn(clippy::map_unwrap_or)]
|
|
|
|
#![warn(clippy::map_unwrap_or)]
|
|
|
|
#![warn(clippy::map_unwrap_or)]
|
|
|
|
#![warn(clippy::unwrap_used)]
|
|
|
|
#![warn(clippy::unwrap_used)]
|
|
|
|
#![warn(clippy::expect_used)]
|
|
|
|
#![warn(clippy::expect_used)]
|
|
|
|
#![warn(clippy::for_loops_over_fallibles)]
|
|
|
|
#![warn(clippy::for_loops_over_fallibles)]
|
|
|
|
#![warn(clippy::useless_conversion)]
|
|
|
|
#![warn(clippy::invisible_characters)]
|
|
|
|
#![warn(clippy::single_char_add_str)]
|
|
|
|
#![warn(clippy::match_result_ok)]
|
2021-12-06 05:33:31 -06:00
|
|
|
#![warn(clippy::disallowed_types)]
|
|
|
|
#![warn(clippy::disallowed_methods)]
|
2022-01-27 08:12:45 -06:00
|
|
|
#![warn(clippy::needless_borrow)]
|
2021-11-04 07:52:36 -05:00
|
|
|
// uplifted lints
|
|
|
|
#![warn(invalid_value)]
|
|
|
|
#![warn(array_into_iter)]
|
|
|
|
#![warn(unused_labels)]
|
|
|
|
#![warn(drop_bounds)]
|
|
|
|
#![warn(temporary_cstring_as_ptr)]
|
|
|
|
#![warn(non_fmt_panics)]
|
|
|
|
#![warn(unknown_lints)]
|
|
|
|
#![warn(invalid_atomic_ordering)]
|
2021-10-11 03:10:16 -05:00
|
|
|
#![warn(enum_intrinsics_non_enums)]
|
2019-08-18 02:37:12 -05:00
|
|
|
|
|
|
|
fn main() {}
|