2019-06-14 02:54:34 -05:00
|
|
|
//! Test for Clippy lint renames.
|
2019-08-18 02:37:12 -05:00
|
|
|
// run-rustfix
|
2019-06-14 02:54:34 -05:00
|
|
|
|
2019-08-18 02:37:12 -05:00
|
|
|
#![allow(dead_code)]
|
2019-06-14 02:54:34 -05:00
|
|
|
// 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 07:08:48 -06:00
|
|
|
#![allow(clippy::cognitive_complexity)]
|
2021-10-26 02:53:53 -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)]
|
2021-10-26 15:55:51 -05:00
|
|
|
#![allow(clippy::for_loops_over_fallibles)]
|
2021-10-26 02:53:53 -05:00
|
|
|
#![allow(clippy::useless_conversion)]
|
|
|
|
#![allow(clippy::invisible_characters)]
|
|
|
|
#![allow(clippy::single_char_add_str)]
|
|
|
|
#![allow(clippy::match_result_ok)]
|
2021-11-17 00:39:21 -06:00
|
|
|
#![allow(clippy::disallowed_types)]
|
2021-11-18 07:08:48 -06:00
|
|
|
#![allow(clippy::disallowed_methods)]
|
2021-12-28 12:27:11 -06:00
|
|
|
#![allow(clippy::recursive_format_impl)]
|
2021-10-26 02:53:53 -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-06-14 02:54:34 -05:00
|
|
|
// warn for the old lint name here, to test if the renaming worked
|
2021-10-26 12:26:35 -05:00
|
|
|
#![warn(clippy::stutter)]
|
|
|
|
#![warn(clippy::new_without_default_derive)]
|
|
|
|
#![warn(clippy::const_static_lifetime)]
|
2019-02-22 19:19:50 -06:00
|
|
|
#![warn(clippy::cyclomatic_complexity)]
|
2021-10-26 02:53:53 -05:00
|
|
|
#![warn(clippy::option_and_then_some)]
|
|
|
|
#![warn(clippy::box_vec)]
|
2021-10-26 15:55:51 -05:00
|
|
|
#![warn(clippy::block_in_if_condition_expr)]
|
|
|
|
#![warn(clippy::block_in_if_condition_stmt)]
|
2021-10-26 02:53:53 -05:00
|
|
|
#![warn(clippy::option_map_unwrap_or)]
|
|
|
|
#![warn(clippy::option_map_unwrap_or_else)]
|
|
|
|
#![warn(clippy::result_map_unwrap_or_else)]
|
|
|
|
#![warn(clippy::option_unwrap_used)]
|
|
|
|
#![warn(clippy::result_unwrap_used)]
|
|
|
|
#![warn(clippy::option_expect_used)]
|
|
|
|
#![warn(clippy::result_expect_used)]
|
|
|
|
#![warn(clippy::for_loop_over_option)]
|
|
|
|
#![warn(clippy::for_loop_over_result)]
|
|
|
|
#![warn(clippy::identity_conversion)]
|
|
|
|
#![warn(clippy::zero_width_space)]
|
|
|
|
#![warn(clippy::single_char_push_str)]
|
|
|
|
#![warn(clippy::if_let_some_result)]
|
2021-11-17 00:39:21 -06:00
|
|
|
#![warn(clippy::disallowed_type)]
|
2021-11-18 07:08:48 -06:00
|
|
|
#![warn(clippy::disallowed_method)]
|
2022-01-11 18:44:33 -06:00
|
|
|
#![warn(clippy::ref_in_deref)]
|
2021-12-28 12:27:11 -06:00
|
|
|
#![warn(clippy::to_string_in_display)]
|
2021-10-26 02:53:53 -05:00
|
|
|
// uplifted lints
|
|
|
|
#![warn(clippy::invalid_ref)]
|
|
|
|
#![warn(clippy::into_iter_on_array)]
|
|
|
|
#![warn(clippy::unused_label)]
|
|
|
|
#![warn(clippy::drop_bounds)]
|
|
|
|
#![warn(clippy::temporary_cstring_as_ptr)]
|
|
|
|
#![warn(clippy::panic_params)]
|
|
|
|
#![warn(clippy::unknown_clippy_lints)]
|
|
|
|
#![warn(clippy::invalid_atomic_ordering)]
|
|
|
|
#![warn(clippy::mem_discriminant_non_enum)]
|
2018-12-17 06:59:09 -06:00
|
|
|
|
|
|
|
fn main() {}
|