fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
891 B23 linesraw
1error: useless lint attribute
2  --> $DIR/useless_attribute.rs:8:1
3   |
4LL | #[allow(dead_code)]
5   | ^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(dead_code)]`
6   |
7   = note: `-D clippy::useless-attribute` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::useless_attribute)]`
9
10error: useless lint attribute
11  --> $DIR/useless_attribute.rs:9:1
12   |
13LL | #[cfg_attr(feature = "cargo-clippy", allow(dead_code))]
14   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![cfg_attr(feature = "cargo-clippy", allow(dead_code)`
15
16error: useless lint attribute
17  --> $DIR/useless_attribute.rs:20:5
18   |
19LL |     #[allow(clippy::almost_swapped)]
20   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(clippy::almost_swapped)]`
21
22error: aborting due to 3 previous errors
23