]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/blacklisted_name.stderr
Fix #88256, remove duplicated diagnostic
[rust.git] / tests / ui / blacklisted_name.stderr
index 055fb8836d78408c079de55fde946f3399ec56d0..70dbdaece8b6bb37083a79cb0d0bafc9b6c00a86 100644 (file)
@@ -1,50 +1,88 @@
 error: use of a blacklisted/placeholder name `foo`
- --> $DIR/blacklisted_name.rs:9:9
-  |
-9 | fn test(foo: ()) {} //~ERROR use of a blacklisted/placeholder name `foo`
-  |         ^^^
-  |
-note: lint level defined here
- --> $DIR/blacklisted_name.rs:7:9
-  |
-7 | #![deny(blacklisted_name)]
-  |         ^^^^^^^^^^^^^^^^
-
-error: use of a blacklisted/placeholder name `foo`
-  --> $DIR/blacklisted_name.rs:12:9
+  --> $DIR/blacklisted_name.rs:11:9
    |
-12 |     let foo = 42; //~ERROR use of a blacklisted/placeholder name `foo`
+LL | fn test(foo: ()) {}
    |         ^^^
+   |
+   = note: `-D clippy::blacklisted-name` implied by `-D warnings`
 
-error: use of a blacklisted/placeholder name `bar`
-  --> $DIR/blacklisted_name.rs:13:9
+error: use of a blacklisted/placeholder name `foo`
+  --> $DIR/blacklisted_name.rs:14:9
    |
-13 |     let bar = 42; //~ERROR use of a blacklisted/placeholder name `bar`
+LL |     let foo = 42;
    |         ^^^
 
 error: use of a blacklisted/placeholder name `baz`
-  --> $DIR/blacklisted_name.rs:14:9
+  --> $DIR/blacklisted_name.rs:15:9
    |
-14 |     let baz = 42; //~ERROR use of a blacklisted/placeholder name `baz`
+LL |     let baz = 42;
    |         ^^^
 
+error: use of a blacklisted/placeholder name `quux`
+  --> $DIR/blacklisted_name.rs:16:9
+   |
+LL |     let quux = 42;
+   |         ^^^^
+
 error: use of a blacklisted/placeholder name `foo`
-  --> $DIR/blacklisted_name.rs:20:10
+  --> $DIR/blacklisted_name.rs:27:10
    |
-20 |         (foo, Some(bar), baz @ Some(_)) => (),
+LL |         (foo, Some(baz), quux @ Some(_)) => (),
    |          ^^^
 
-error: use of a blacklisted/placeholder name `bar`
-  --> $DIR/blacklisted_name.rs:20:20
+error: use of a blacklisted/placeholder name `baz`
+  --> $DIR/blacklisted_name.rs:27:20
    |
-20 |         (foo, Some(bar), baz @ Some(_)) => (),
+LL |         (foo, Some(baz), quux @ Some(_)) => (),
    |                    ^^^
 
+error: use of a blacklisted/placeholder name `quux`
+  --> $DIR/blacklisted_name.rs:27:26
+   |
+LL |         (foo, Some(baz), quux @ Some(_)) => (),
+   |                          ^^^^
+
+error: use of a blacklisted/placeholder name `foo`
+  --> $DIR/blacklisted_name.rs:32:19
+   |
+LL | fn issue_1647(mut foo: u8) {
+   |                   ^^^
+
 error: use of a blacklisted/placeholder name `baz`
-  --> $DIR/blacklisted_name.rs:20:26
+  --> $DIR/blacklisted_name.rs:33:13
+   |
+LL |     let mut baz = 0;
+   |             ^^^
+
+error: use of a blacklisted/placeholder name `quux`
+  --> $DIR/blacklisted_name.rs:34:21
+   |
+LL |     if let Some(mut quux) = Some(42) {}
+   |                     ^^^^
+
+error: use of a blacklisted/placeholder name `baz`
+  --> $DIR/blacklisted_name.rs:38:13
+   |
+LL |     let ref baz = 0;
+   |             ^^^
+
+error: use of a blacklisted/placeholder name `quux`
+  --> $DIR/blacklisted_name.rs:39:21
+   |
+LL |     if let Some(ref quux) = Some(42) {}
+   |                     ^^^^
+
+error: use of a blacklisted/placeholder name `baz`
+  --> $DIR/blacklisted_name.rs:43:17
+   |
+LL |     let ref mut baz = 0;
+   |                 ^^^
+
+error: use of a blacklisted/placeholder name `quux`
+  --> $DIR/blacklisted_name.rs:44:25
    |
-20 |         (foo, Some(bar), baz @ Some(_)) => (),
-   |                          ^^^^^^^^^^^^^
+LL |     if let Some(ref mut quux) = Some(42) {}
+   |                         ^^^^
 
-error: aborting due to 7 previous errors
+error: aborting due to 14 previous errors