diff --git a/tests/ui/absurd-extreme-comparisons.stderr b/tests/ui/absurd-extreme-comparisons.stderr index b18a943c557c..c22c7eb75b46 100644 --- a/tests/ui/absurd-extreme-comparisons.stderr +++ b/tests/ui/absurd-extreme-comparisons.stderr @@ -141,7 +141,7 @@ error: <-comparison of unit values detected. This will always be false LL | () < {}; | ^^^^^^^ | - = note: #[deny(clippy::unit_cmp)] on by default + = note: `#[deny(clippy::unit_cmp)]` on by default error: aborting due to 18 previous errors diff --git a/tests/ui/bit_masks.stderr b/tests/ui/bit_masks.stderr index 159db0374d29..dc5ad6dfbdff 100644 --- a/tests/ui/bit_masks.stderr +++ b/tests/ui/bit_masks.stderr @@ -12,7 +12,7 @@ error: this operation will always return zero. This is likely not the intended o LL | x & 0 == 0; | ^^^^^ | - = note: #[deny(clippy::erasing_op)] on by default + = note: `#[deny(clippy::erasing_op)]` on by default error: incompatible bit mask: `_ & 2` can never be equal to `1` --> $DIR/bit_masks.rs:17:5 diff --git a/tests/ui/cstring.stderr b/tests/ui/cstring.stderr index a2fc07d4af0d..8c86249dc845 100644 --- a/tests/ui/cstring.stderr +++ b/tests/ui/cstring.stderr @@ -4,7 +4,7 @@ error: you are getting the inner pointer of a temporary `CString` LL | CString::new("foo").unwrap().as_ptr(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | - = note: #[deny(clippy::temporary_cstring_as_ptr)] on by default + = note: `#[deny(clippy::temporary_cstring_as_ptr)]` on by default = note: that pointer will be invalid outside this expression help: assign the `CString` to a variable to extend its lifetime --> $DIR/cstring.rs:7:5 diff --git a/tests/ui/derive.stderr b/tests/ui/derive.stderr index fc87c7d15960..875018961090 100644 --- a/tests/ui/derive.stderr +++ b/tests/ui/derive.stderr @@ -4,7 +4,7 @@ error: you are deriving `Hash` but have implemented `PartialEq` explicitly LL | #[derive(Hash)] | ^^^^ | - = note: #[deny(clippy::derive_hash_xor_eq)] on by default + = note: `#[deny(clippy::derive_hash_xor_eq)]` on by default note: `PartialEq` implemented here --> $DIR/derive.rs:19:1 | diff --git a/tests/ui/drop_bounds.stderr b/tests/ui/drop_bounds.stderr index cc87913ecb1a..5d360ef30a1d 100644 --- a/tests/ui/drop_bounds.stderr +++ b/tests/ui/drop_bounds.stderr @@ -4,7 +4,7 @@ error: Bounds of the form `T: Drop` are useless. Use `std::mem::needs_drop` to d LL | fn foo() {} | ^^^^ | - = note: #[deny(clippy::drop_bounds)] on by default + = note: `#[deny(clippy::drop_bounds)]` on by default error: Bounds of the form `T: Drop` are useless. Use `std::mem::needs_drop` to detect if a type has drop glue. --> $DIR/drop_bounds.rs:5:8 diff --git a/tests/ui/for_loop_over_option_result.stderr b/tests/ui/for_loop_over_option_result.stderr index 5414bfcf9de5..194a0bfec5b3 100644 --- a/tests/ui/for_loop_over_option_result.stderr +++ b/tests/ui/for_loop_over_option_result.stderr @@ -30,7 +30,7 @@ error: you are iterating over `Iterator::next()` which is an Option; this will c LL | for x in v.iter().next() { | ^^^^^^^^^^^^^^^ | - = note: #[deny(clippy::iter_next_loop)] on by default + = note: `#[deny(clippy::iter_next_loop)]` on by default error: for loop over `v.iter().next().and(Some(0))`, which is an `Option`. This is more readably written as an `if let` statement. --> $DIR/for_loop_over_option_result.rs:31:14 @@ -57,7 +57,7 @@ LL | | break; LL | | } | |_____^ | - = note: #[deny(clippy::never_loop)] on by default + = note: `#[deny(clippy::never_loop)]` on by default error: this loop never actually loops --> $DIR/for_loop_over_option_result.rs:53:5 diff --git a/tests/ui/if_same_then_else.stderr b/tests/ui/if_same_then_else.stderr index fa42afff0be0..d9424334c09c 100644 --- a/tests/ui/if_same_then_else.stderr +++ b/tests/ui/if_same_then_else.stderr @@ -236,7 +236,7 @@ error: this `if` has the same condition as a previous if LL | } else if true { | ^^^^ | - = note: #[deny(clippy::ifs_same_cond)] on by default + = note: `#[deny(clippy::ifs_same_cond)]` on by default note: same as this --> $DIR/if_same_then_else.rs:235:8 | diff --git a/tests/ui/indexing_slicing.stderr b/tests/ui/indexing_slicing.stderr index f075de50686d..b2840f7b5ccc 100644 --- a/tests/ui/indexing_slicing.stderr +++ b/tests/ui/indexing_slicing.stderr @@ -4,7 +4,7 @@ error: index out of bounds: the len is 4 but the index is 4 LL | x[4]; // Ok, let rustc's `const_err` lint handle `usize` indexing on arrays. | ^^^^ | - = note: #[deny(const_err)] on by default + = note: `#[deny(const_err)]` on by default error: index out of bounds: the len is 4 but the index is 8 --> $DIR/indexing_slicing.rs:19:5 diff --git a/tests/ui/infinite_iter.stderr b/tests/ui/infinite_iter.stderr index 564c2b43778b..ec30a54d3817 100644 --- a/tests/ui/infinite_iter.stderr +++ b/tests/ui/infinite_iter.stderr @@ -111,7 +111,7 @@ error: infinite iteration detected LL | let _: HashSet = (0..).collect(); // Infinite iter | ^^^^^^^^^^^^^^^ | - = note: #[deny(clippy::infinite_iter)] on by default + = note: `#[deny(clippy::infinite_iter)]` on by default error: aborting due to 15 previous errors diff --git a/tests/ui/infinite_loop.stderr b/tests/ui/infinite_loop.stderr index a3fc591c1b16..6f0332fa8c4a 100644 --- a/tests/ui/infinite_loop.stderr +++ b/tests/ui/infinite_loop.stderr @@ -4,7 +4,7 @@ error: Variable in the condition are not mutated in the loop body. This either l LL | while y < 10 { | ^^^^^^ | - = note: #[deny(clippy::while_immutable_condition)] on by default + = note: `#[deny(clippy::while_immutable_condition)]` on by default error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop. --> $DIR/infinite_loop.rs:28:11 diff --git a/tests/ui/invalid_ref.stderr b/tests/ui/invalid_ref.stderr index 42a11fe7e5d2..aeef3892dbe7 100644 --- a/tests/ui/invalid_ref.stderr +++ b/tests/ui/invalid_ref.stderr @@ -4,7 +4,7 @@ error: reference to zeroed memory LL | let ref_zero: &T = std::mem::zeroed(); // warning | ^^^^^^^^^^^^^^^^^^ | - = note: #[deny(clippy::invalid_ref)] on by default + = note: `#[deny(clippy::invalid_ref)]` on by default = help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html error: reference to zeroed memory diff --git a/tests/ui/lint_without_lint_pass.stderr b/tests/ui/lint_without_lint_pass.stderr index 9d0b0d627898..0559cee70efb 100644 --- a/tests/ui/lint_without_lint_pass.stderr +++ b/tests/ui/lint_without_lint_pass.stderr @@ -13,7 +13,7 @@ note: lint level defined here | LL | #![deny(clippy::internal)] | ^^^^^^^^^^^^^^^^ - = note: #[deny(clippy::lint_without_lint_pass)] implied by #[deny(clippy::internal)] + = note: `#[deny(clippy::lint_without_lint_pass)]` implied by `#[deny(clippy::internal)]` = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) error: aborting due to previous error diff --git a/tests/ui/match_bool.stderr b/tests/ui/match_bool.stderr index 193e6c17238b..5c65d2fed3da 100644 --- a/tests/ui/match_bool.stderr +++ b/tests/ui/match_bool.stderr @@ -83,7 +83,7 @@ error: equal expressions as operands to `&&` LL | match test && test { | ^^^^^^^^^^^^ | - = note: #[deny(clippy::eq_op)] on by default + = note: `#[deny(clippy::eq_op)]` on by default error: you seem to be trying to match on a boolean expression --> $DIR/match_bool.rs:36:5 diff --git a/tests/ui/mistyped_literal_suffix.stderr b/tests/ui/mistyped_literal_suffix.stderr index c3fed6ae8fdc..17c8b3230273 100644 --- a/tests/ui/mistyped_literal_suffix.stderr +++ b/tests/ui/mistyped_literal_suffix.stderr @@ -4,7 +4,7 @@ error: mistyped literal suffix LL | let fail14 = 2_32; | ^^^^ help: did you mean to write: `2_i32` | - = note: #[deny(clippy::mistyped_literal_suffixes)] on by default + = note: `#[deny(clippy::mistyped_literal_suffixes)]` on by default error: mistyped literal suffix --> $DIR/mistyped_literal_suffix.rs:7:18 diff --git a/tests/ui/never_loop.stderr b/tests/ui/never_loop.stderr index 416e14d676e7..c00b4c78cf28 100644 --- a/tests/ui/never_loop.stderr +++ b/tests/ui/never_loop.stderr @@ -10,7 +10,7 @@ LL | | break; LL | | } | |_____^ | - = note: #[deny(clippy::never_loop)] on by default + = note: `#[deny(clippy::never_loop)]` on by default error: this loop never actually loops --> $DIR/never_loop.rs:32:5 diff --git a/tests/ui/non_copy_const.stderr b/tests/ui/non_copy_const.stderr index 1276491127ad..634933eac618 100644 --- a/tests/ui/non_copy_const.stderr +++ b/tests/ui/non_copy_const.stderr @@ -6,7 +6,7 @@ LL | const ATOMIC: AtomicUsize = AtomicUsize::new(5); //~ ERROR interior mutable | | | help: make this a static item: `static` | - = note: #[deny(clippy::declare_interior_mutable_const)] on by default + = note: `#[deny(clippy::declare_interior_mutable_const)]` on by default error: a const item should never be interior mutable --> $DIR/non_copy_const.rs:11:1 @@ -132,7 +132,7 @@ error: a const item with interior mutability should not be borrowed LL | ATOMIC.store(1, Ordering::SeqCst); //~ ERROR interior mutability | ^^^^^^ | - = note: #[deny(clippy::borrow_interior_mutable_const)] on by default + = note: `#[deny(clippy::borrow_interior_mutable_const)]` on by default = help: assign this const to a local or static variable, and use the variable here error: a const item with interior mutability should not be borrowed diff --git a/tests/ui/out_of_bounds_indexing/empty_array.stderr b/tests/ui/out_of_bounds_indexing/empty_array.stderr index 2372bf860c52..cda78a47ec73 100644 --- a/tests/ui/out_of_bounds_indexing/empty_array.stderr +++ b/tests/ui/out_of_bounds_indexing/empty_array.stderr @@ -4,7 +4,7 @@ error: index out of bounds: the len is 0 but the index is 0 LL | empty[0]; | ^^^^^^^^ | - = note: #[deny(const_err)] on by default + = note: `#[deny(const_err)]` on by default error: range is out of bounds --> $DIR/empty_array.rs:7:12 diff --git a/tests/ui/outer_expn_info.stderr b/tests/ui/outer_expn_info.stderr index 2bd3a9835457..d9efc91da8e4 100644 --- a/tests/ui/outer_expn_info.stderr +++ b/tests/ui/outer_expn_info.stderr @@ -9,7 +9,7 @@ note: lint level defined here | LL | #![deny(clippy::internal)] | ^^^^^^^^^^^^^^^^ - = note: #[deny(clippy::outer_expn_info)] implied by #[deny(clippy::internal)] + = note: `#[deny(clippy::outer_expn_info)]` implied by `#[deny(clippy::internal)]` error: aborting due to previous error diff --git a/tests/ui/proc_macro.stderr b/tests/ui/proc_macro.stderr index ec19cd8fc5fb..78c3880db499 100644 --- a/tests/ui/proc_macro.stderr +++ b/tests/ui/proc_macro.stderr @@ -4,7 +4,7 @@ error: approximate value of `f{32, 64}::consts::PI` found. Consider using it dir LL | let _x = 3.14; | ^^^^ | - = note: #[deny(clippy::approx_constant)] on by default + = note: `#[deny(clippy::approx_constant)]` on by default error: aborting due to previous error diff --git a/tests/ui/suspicious_arithmetic_impl.stderr b/tests/ui/suspicious_arithmetic_impl.stderr index f818f7b3d956..e8a6efc4c4d2 100644 --- a/tests/ui/suspicious_arithmetic_impl.stderr +++ b/tests/ui/suspicious_arithmetic_impl.stderr @@ -12,7 +12,7 @@ error: Suspicious use of binary operator in `AddAssign` impl LL | *self = *self - other; | ^ | - = note: #[deny(clippy::suspicious_op_assign_impl)] on by default + = note: `#[deny(clippy::suspicious_op_assign_impl)]` on by default error: aborting due to 2 previous errors diff --git a/tests/ui/unnecessary_clone.stderr b/tests/ui/unnecessary_clone.stderr index 8d5d54e7de67..79b99ff1d1d2 100644 --- a/tests/ui/unnecessary_clone.stderr +++ b/tests/ui/unnecessary_clone.stderr @@ -68,7 +68,7 @@ error: using `clone` on a double-reference; this will copy the reference instead LL | let z: &Vec<_> = y.clone(); | ^^^^^^^^^ | - = note: #[deny(clippy::clone_double_ref)] on by default + = note: `#[deny(clippy::clone_double_ref)]` on by default help: try dereferencing it | LL | let z: &Vec<_> = &(*y).clone(); diff --git a/tests/ui/zero_div_zero.stderr b/tests/ui/zero_div_zero.stderr index 763859f54fb2..c599da8baf9b 100644 --- a/tests/ui/zero_div_zero.stderr +++ b/tests/ui/zero_div_zero.stderr @@ -4,7 +4,7 @@ error: equal expressions as operands to `/` LL | let nan = 0.0 / 0.0; | ^^^^^^^^^ | - = note: #[deny(clippy::eq_op)] on by default + = note: `#[deny(clippy::eq_op)]` on by default error: constant division of 0.0 with 0.0 will always result in NaN --> $DIR/zero_div_zero.rs:4:15