summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/non_minimal_cfg.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/non_minimal_cfg.stderr')
-rw-r--r--src/tools/clippy/tests/ui/non_minimal_cfg.stderr9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tools/clippy/tests/ui/non_minimal_cfg.stderr b/src/tools/clippy/tests/ui/non_minimal_cfg.stderr
index cdfd728aa..c33c35ed8 100644
--- a/src/tools/clippy/tests/ui/non_minimal_cfg.stderr
+++ b/src/tools/clippy/tests/ui/non_minimal_cfg.stderr
@@ -1,25 +1,26 @@
error: unneeded sub `cfg` when there is only one condition
- --> $DIR/non_minimal_cfg.rs:5:7
+ --> $DIR/non_minimal_cfg.rs:3:7
|
LL | #[cfg(all(windows))]
| ^^^^^^^^^^^^ help: try: `windows`
|
= note: `-D clippy::non-minimal-cfg` implied by `-D warnings`
+ = help: to override `-D warnings` add `#[allow(clippy::non_minimal_cfg)]`
error: unneeded sub `cfg` when there is only one condition
- --> $DIR/non_minimal_cfg.rs:8:7
+ --> $DIR/non_minimal_cfg.rs:6:7
|
LL | #[cfg(any(windows))]
| ^^^^^^^^^^^^ help: try: `windows`
error: unneeded sub `cfg` when there is only one condition
- --> $DIR/non_minimal_cfg.rs:11:11
+ --> $DIR/non_minimal_cfg.rs:9:11
|
LL | #[cfg(all(any(unix), all(not(windows))))]
| ^^^^^^^^^ help: try: `unix`
error: unneeded sub `cfg` when there is only one condition
- --> $DIR/non_minimal_cfg.rs:11:22
+ --> $DIR/non_minimal_cfg.rs:9:22
|
LL | #[cfg(all(any(unix), all(not(windows))))]
| ^^^^^^^^^^^^^^^^^ help: try: `not(windows)`