Skip to content

Commit e5f2330

Browse files
committed
Auto merge of #4285 - matthiaskrgr:rustup_backticks, r=phansch
rustup rust-lang/rust#62764 (was merged as part of rust-lang/rust#62782 ) changelog: none
2 parents c467273 + deb586a commit e5f2330

22 files changed

+24
-24
lines changed

tests/ui/absurd-extreme-comparisons.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ error: <-comparison of unit values detected. This will always be false
141141
LL | () < {};
142142
| ^^^^^^^
143143
|
144-
= note: #[deny(clippy::unit_cmp)] on by default
144+
= note: `#[deny(clippy::unit_cmp)]` on by default
145145

146146
error: aborting due to 18 previous errors
147147

tests/ui/bit_masks.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ error: this operation will always return zero. This is likely not the intended o
1212
LL | x & 0 == 0;
1313
| ^^^^^
1414
|
15-
= note: #[deny(clippy::erasing_op)] on by default
15+
= note: `#[deny(clippy::erasing_op)]` on by default
1616

1717
error: incompatible bit mask: `_ & 2` can never be equal to `1`
1818
--> $DIR/bit_masks.rs:17:5

tests/ui/cstring.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: you are getting the inner pointer of a temporary `CString`
44
LL | CString::new("foo").unwrap().as_ptr();
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
= note: #[deny(clippy::temporary_cstring_as_ptr)] on by default
7+
= note: `#[deny(clippy::temporary_cstring_as_ptr)]` on by default
88
= note: that pointer will be invalid outside this expression
99
help: assign the `CString` to a variable to extend its lifetime
1010
--> $DIR/cstring.rs:7:5

tests/ui/derive.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: you are deriving `Hash` but have implemented `PartialEq` explicitly
44
LL | #[derive(Hash)]
55
| ^^^^
66
|
7-
= note: #[deny(clippy::derive_hash_xor_eq)] on by default
7+
= note: `#[deny(clippy::derive_hash_xor_eq)]` on by default
88
note: `PartialEq` implemented here
99
--> $DIR/derive.rs:19:1
1010
|

tests/ui/drop_bounds.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: Bounds of the form `T: Drop` are useless. Use `std::mem::needs_drop` to d
44
LL | fn foo<T: Drop>() {}
55
| ^^^^
66
|
7-
= note: #[deny(clippy::drop_bounds)] on by default
7+
= note: `#[deny(clippy::drop_bounds)]` on by default
88

99
error: Bounds of the form `T: Drop` are useless. Use `std::mem::needs_drop` to detect if a type has drop glue.
1010
--> $DIR/drop_bounds.rs:5:8

tests/ui/for_loop_over_option_result.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ error: you are iterating over `Iterator::next()` which is an Option; this will c
3030
LL | for x in v.iter().next() {
3131
| ^^^^^^^^^^^^^^^
3232
|
33-
= note: #[deny(clippy::iter_next_loop)] on by default
33+
= note: `#[deny(clippy::iter_next_loop)]` on by default
3434

3535
error: for loop over `v.iter().next().and(Some(0))`, which is an `Option`. This is more readably written as an `if let` statement.
3636
--> $DIR/for_loop_over_option_result.rs:31:14
@@ -57,7 +57,7 @@ LL | | break;
5757
LL | | }
5858
| |_____^
5959
|
60-
= note: #[deny(clippy::never_loop)] on by default
60+
= note: `#[deny(clippy::never_loop)]` on by default
6161

6262
error: this loop never actually loops
6363
--> $DIR/for_loop_over_option_result.rs:53:5

tests/ui/if_same_then_else.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ error: this `if` has the same condition as a previous if
236236
LL | } else if true {
237237
| ^^^^
238238
|
239-
= note: #[deny(clippy::ifs_same_cond)] on by default
239+
= note: `#[deny(clippy::ifs_same_cond)]` on by default
240240
note: same as this
241241
--> $DIR/if_same_then_else.rs:235:8
242242
|

tests/ui/indexing_slicing.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: index out of bounds: the len is 4 but the index is 4
44
LL | x[4]; // Ok, let rustc's `const_err` lint handle `usize` indexing on arrays.
55
| ^^^^
66
|
7-
= note: #[deny(const_err)] on by default
7+
= note: `#[deny(const_err)]` on by default
88

99
error: index out of bounds: the len is 4 but the index is 8
1010
--> $DIR/indexing_slicing.rs:19:5

tests/ui/infinite_iter.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ error: infinite iteration detected
111111
LL | let _: HashSet<i32> = (0..).collect(); // Infinite iter
112112
| ^^^^^^^^^^^^^^^
113113
|
114-
= note: #[deny(clippy::infinite_iter)] on by default
114+
= note: `#[deny(clippy::infinite_iter)]` on by default
115115

116116
error: aborting due to 15 previous errors
117117

tests/ui/infinite_loop.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: Variable in the condition are not mutated in the loop body. This either l
44
LL | while y < 10 {
55
| ^^^^^^
66
|
7-
= note: #[deny(clippy::while_immutable_condition)] on by default
7+
= note: `#[deny(clippy::while_immutable_condition)]` on by default
88

99
error: Variable in the condition are not mutated in the loop body. This either leads to an infinite or to a never running loop.
1010
--> $DIR/infinite_loop.rs:28:11

tests/ui/invalid_ref.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: reference to zeroed memory
44
LL | let ref_zero: &T = std::mem::zeroed(); // warning
55
| ^^^^^^^^^^^^^^^^^^
66
|
7-
= note: #[deny(clippy::invalid_ref)] on by default
7+
= note: `#[deny(clippy::invalid_ref)]` on by default
88
= help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
99

1010
error: reference to zeroed memory

tests/ui/lint_without_lint_pass.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ note: lint level defined here
1313
|
1414
LL | #![deny(clippy::internal)]
1515
| ^^^^^^^^^^^^^^^^
16-
= note: #[deny(clippy::lint_without_lint_pass)] implied by #[deny(clippy::internal)]
16+
= note: `#[deny(clippy::lint_without_lint_pass)]` implied by `#[deny(clippy::internal)]`
1717
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
1818

1919
error: aborting due to previous error

tests/ui/match_bool.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ error: equal expressions as operands to `&&`
8383
LL | match test && test {
8484
| ^^^^^^^^^^^^
8585
|
86-
= note: #[deny(clippy::eq_op)] on by default
86+
= note: `#[deny(clippy::eq_op)]` on by default
8787

8888
error: you seem to be trying to match on a boolean expression
8989
--> $DIR/match_bool.rs:36:5

tests/ui/mistyped_literal_suffix.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: mistyped literal suffix
44
LL | let fail14 = 2_32;
55
| ^^^^ help: did you mean to write: `2_i32`
66
|
7-
= note: #[deny(clippy::mistyped_literal_suffixes)] on by default
7+
= note: `#[deny(clippy::mistyped_literal_suffixes)]` on by default
88

99
error: mistyped literal suffix
1010
--> $DIR/mistyped_literal_suffix.rs:7:18

tests/ui/never_loop.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL | | break;
1010
LL | | }
1111
| |_____^
1212
|
13-
= note: #[deny(clippy::never_loop)] on by default
13+
= note: `#[deny(clippy::never_loop)]` on by default
1414

1515
error: this loop never actually loops
1616
--> $DIR/never_loop.rs:32:5

tests/ui/non_copy_const.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LL | const ATOMIC: AtomicUsize = AtomicUsize::new(5); //~ ERROR interior mutable
66
| |
77
| help: make this a static item: `static`
88
|
9-
= note: #[deny(clippy::declare_interior_mutable_const)] on by default
9+
= note: `#[deny(clippy::declare_interior_mutable_const)]` on by default
1010

1111
error: a const item should never be interior mutable
1212
--> $DIR/non_copy_const.rs:11:1
@@ -132,7 +132,7 @@ error: a const item with interior mutability should not be borrowed
132132
LL | ATOMIC.store(1, Ordering::SeqCst); //~ ERROR interior mutability
133133
| ^^^^^^
134134
|
135-
= note: #[deny(clippy::borrow_interior_mutable_const)] on by default
135+
= note: `#[deny(clippy::borrow_interior_mutable_const)]` on by default
136136
= help: assign this const to a local or static variable, and use the variable here
137137

138138
error: a const item with interior mutability should not be borrowed

tests/ui/out_of_bounds_indexing/empty_array.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: index out of bounds: the len is 0 but the index is 0
44
LL | empty[0];
55
| ^^^^^^^^
66
|
7-
= note: #[deny(const_err)] on by default
7+
= note: `#[deny(const_err)]` on by default
88

99
error: range is out of bounds
1010
--> $DIR/empty_array.rs:7:12

tests/ui/outer_expn_info.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ note: lint level defined here
99
|
1010
LL | #![deny(clippy::internal)]
1111
| ^^^^^^^^^^^^^^^^
12-
= note: #[deny(clippy::outer_expn_info)] implied by #[deny(clippy::internal)]
12+
= note: `#[deny(clippy::outer_expn_info)]` implied by `#[deny(clippy::internal)]`
1313

1414
error: aborting due to previous error
1515

tests/ui/proc_macro.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: approximate value of `f{32, 64}::consts::PI` found. Consider using it dir
44
LL | let _x = 3.14;
55
| ^^^^
66
|
7-
= note: #[deny(clippy::approx_constant)] on by default
7+
= note: `#[deny(clippy::approx_constant)]` on by default
88

99
error: aborting due to previous error
1010

tests/ui/suspicious_arithmetic_impl.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ error: Suspicious use of binary operator in `AddAssign` impl
1212
LL | *self = *self - other;
1313
| ^
1414
|
15-
= note: #[deny(clippy::suspicious_op_assign_impl)] on by default
15+
= note: `#[deny(clippy::suspicious_op_assign_impl)]` on by default
1616

1717
error: aborting due to 2 previous errors
1818

tests/ui/unnecessary_clone.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ error: using `clone` on a double-reference; this will copy the reference instead
6868
LL | let z: &Vec<_> = y.clone();
6969
| ^^^^^^^^^
7070
|
71-
= note: #[deny(clippy::clone_double_ref)] on by default
71+
= note: `#[deny(clippy::clone_double_ref)]` on by default
7272
help: try dereferencing it
7373
|
7474
LL | let z: &Vec<_> = &(*y).clone();

tests/ui/zero_div_zero.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error: equal expressions as operands to `/`
44
LL | let nan = 0.0 / 0.0;
55
| ^^^^^^^^^
66
|
7-
= note: #[deny(clippy::eq_op)] on by default
7+
= note: `#[deny(clippy::eq_op)]` on by default
88

99
error: constant division of 0.0 with 0.0 will always result in NaN
1010
--> $DIR/zero_div_zero.rs:4:15

0 commit comments

Comments
 (0)