2019-08-18 07:37:12 +00: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-11-18 13:08:48 +00:00
|
|
|
#![allow(clippy::cognitive_complexity)]
|
2021-10-26 07:53:53 +00: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-11-17 06:39:21 +00:00
|
|
|
#![allow(clippy::disallowed_types)]
|
2021-11-18 13:08:48 +00:00
|
|
|
#![allow(clippy::disallowed_methods)]
|
2021-10-26 07:53:53 +00: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 07:37:12 +00:00
|
|
|
// warn for the old lint name here, to test if the renaming worked
|
2021-10-26 17:26:35 +00:00
|
|
|
#![warn(clippy::module_name_repetitions)]
|
|
|
|
#![warn(clippy::new_without_default)]
|
|
|
|
#![warn(clippy::redundant_static_lifetimes)]
|
2019-08-18 07:37:12 +00:00
|
|
|
#![warn(clippy::cognitive_complexity)]
|
2021-10-26 07:53:53 +00:00
|
|
|
#![warn(clippy::bind_instead_of_map)]
|
|
|
|
#![warn(clippy::box_collection)]
|
2021-10-26 21:01:46 +00:00
|
|
|
#![warn(clippy::blocks_in_if_conditions)]
|
|
|
|
#![warn(clippy::blocks_in_if_conditions)]
|
2021-10-26 07:53:53 +00:00
|
|
|
#![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-11-17 06:39:21 +00:00
|
|
|
#![warn(clippy::disallowed_types)]
|
2021-11-18 13:08:48 +00:00
|
|
|
#![warn(clippy::disallowed_methods)]
|
2021-10-26 07:53:53 +00: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)]
|
|
|
|
#![warn(enum_intrinsics_non_enums)]
|
2019-08-18 07:37:12 +00:00
|
|
|
|
|
|
|
fn main() {}
|