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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)