X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tests%2Fui%2Fshadow.stderr;h=0eb5e5b2a2b30d49a42810abd9d1c51675778318;hb=4f21b5b11207166dbd8210a0ec7510fc09734fb7;hp=212192a28da658c5299518a3c847770957d9b472;hpb=1f2c97a291133596c7f150d299896fedc7b918b7;p=rust.git diff --git a/tests/ui/shadow.stderr b/tests/ui/shadow.stderr index 212192a28da..0eb5e5b2a2b 100644 --- a/tests/ui/shadow.stderr +++ b/tests/ui/shadow.stderr @@ -1,15 +1,10 @@ error: `x` is shadowed by itself in `&mut x` - --> $DIR/shadow.rs:13:9 + --> $DIR/shadow.rs:13:5 | 13 | let x = &mut x; - | ^^^^^^^^^^ - | - = note: #[deny(shadow_same)] implied by #[deny(clippy_pedantic)] -note: lint level defined here - --> $DIR/shadow.rs:4:17 + | ^^^^^^^^^^^^^^^ | -4 | #![deny(clippy, clippy_pedantic)] - | ^^^^^^^^^^^^^^^ + = note: `-D shadow-same` implied by `-D warnings` note: previous binding is here --> $DIR/shadow.rs:12:13 | @@ -17,12 +12,11 @@ note: previous binding is here | ^ error: `x` is shadowed by itself in `{ x }` - --> $DIR/shadow.rs:14:9 + --> $DIR/shadow.rs:14:5 | 14 | let x = { x }; - | ^^^^^^^^^ + | ^^^^^^^^^^^^^^ | - = note: #[deny(shadow_same)] implied by #[deny(clippy_pedantic)] note: previous binding is here --> $DIR/shadow.rs:13:9 | @@ -30,12 +24,11 @@ note: previous binding is here | ^ error: `x` is shadowed by itself in `(&*x)` - --> $DIR/shadow.rs:15:9 + --> $DIR/shadow.rs:15:5 | 15 | let x = (&*x); - | ^^^^^^^^^ + | ^^^^^^^^^^^^^^ | - = note: #[deny(shadow_same)] implied by #[deny(clippy_pedantic)] note: previous binding is here --> $DIR/shadow.rs:14:9 | @@ -48,12 +41,7 @@ error: `x` is shadowed by `{ *x + 1 }` which reuses the original value 16 | let x = { *x + 1 }; | ^ | - = note: #[deny(shadow_reuse)] implied by #[deny(clippy_pedantic)] -note: lint level defined here - --> $DIR/shadow.rs:4:17 - | -4 | #![deny(clippy, clippy_pedantic)] - | ^^^^^^^^^^^^^^^ + = note: `-D shadow-reuse` implied by `-D warnings` note: initialization happens here --> $DIR/shadow.rs:16:13 | @@ -71,7 +59,6 @@ error: `x` is shadowed by `id(x)` which reuses the original value 17 | let x = id(x); | ^ | - = note: #[deny(shadow_reuse)] implied by #[deny(clippy_pedantic)] note: initialization happens here --> $DIR/shadow.rs:17:13 | @@ -89,7 +76,6 @@ error: `x` is shadowed by `(1, x)` which reuses the original value 18 | let x = (1, x); | ^ | - = note: #[deny(shadow_reuse)] implied by #[deny(clippy_pedantic)] note: initialization happens here --> $DIR/shadow.rs:18:13 | @@ -107,7 +93,6 @@ error: `x` is shadowed by `first(x)` which reuses the original value 19 | let x = first(x); | ^ | - = note: #[deny(shadow_reuse)] implied by #[deny(clippy_pedantic)] note: initialization happens here --> $DIR/shadow.rs:19:13 | @@ -125,12 +110,7 @@ error: `x` is shadowed by `y` 21 | let x = y; | ^ | - = note: #[deny(shadow_unrelated)] implied by #[deny(clippy_pedantic)] -note: lint level defined here - --> $DIR/shadow.rs:4:17 - | -4 | #![deny(clippy, clippy_pedantic)] - | ^^^^^^^^^^^^^^^ + = note: `-D shadow-unrelated` implied by `-D warnings` note: initialization happens here --> $DIR/shadow.rs:21:13 | @@ -143,12 +123,11 @@ note: previous binding is here | ^ error: `x` shadows a previous declaration - --> $DIR/shadow.rs:23:9 + --> $DIR/shadow.rs:23:5 | 23 | let x; - | ^ + | ^^^^^^ | - = note: #[deny(shadow_unrelated)] implied by #[deny(clippy_pedantic)] note: previous binding is here --> $DIR/shadow.rs:21:9 |