summaryrefslogtreecommitdiffstats
path: root/tests/ui/liveness/liveness-consts.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /tests/ui/liveness/liveness-consts.stderr
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/liveness/liveness-consts.stderr')
-rw-r--r--tests/ui/liveness/liveness-consts.stderr53
1 files changed, 27 insertions, 26 deletions
diff --git a/tests/ui/liveness/liveness-consts.stderr b/tests/ui/liveness/liveness-consts.stderr
index 6199ea96c..016debdd3 100644
--- a/tests/ui/liveness/liveness-consts.stderr
+++ b/tests/ui/liveness/liveness-consts.stderr
@@ -1,10 +1,9 @@
-warning: variable `a` is assigned to, but never used
- --> $DIR/liveness-consts.rs:7:13
+warning: unused variable: `e`
+ --> $DIR/liveness-consts.rs:24:13
|
-LL | let mut a = 0;
- | ^
+LL | let e = 1;
+ | ^ help: if this is intentional, prefix it with an underscore: `_e`
|
- = note: consider using `_a` instead
note: the lint level is defined here
--> $DIR/liveness-consts.rs:2:9
|
@@ -12,21 +11,6 @@ LL | #![warn(unused)]
| ^^^^^^
= note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
-warning: value assigned to `b` is never read
- --> $DIR/liveness-consts.rs:17:5
- |
-LL | b += 1;
- | ^
- |
- = help: maybe it is overwritten before being read?
- = note: `#[warn(unused_assignments)]` implied by `#[warn(unused)]`
-
-warning: unused variable: `e`
- --> $DIR/liveness-consts.rs:24:13
- |
-LL | let e = 1;
- | ^ help: if this is intentional, prefix it with an underscore: `_e`
-
warning: unused variable: `s`
--> $DIR/liveness-consts.rs:33:24
|
@@ -39,6 +23,29 @@ warning: unused variable: `z`
LL | pub fn f(x: [u8; { let s = 17; 100 }]) -> [u8; { let z = 18; 100 }] {
| ^ help: if this is intentional, prefix it with an underscore: `_z`
+warning: unused variable: `z`
+ --> $DIR/liveness-consts.rs:60:13
+ |
+LL | let z = 42;
+ | ^ help: if this is intentional, prefix it with an underscore: `_z`
+
+warning: variable `a` is assigned to, but never used
+ --> $DIR/liveness-consts.rs:7:13
+ |
+LL | let mut a = 0;
+ | ^
+ |
+ = note: consider using `_a` instead
+
+warning: value assigned to `b` is never read
+ --> $DIR/liveness-consts.rs:17:5
+ |
+LL | b += 1;
+ | ^
+ |
+ = help: maybe it is overwritten before being read?
+ = note: `#[warn(unused_assignments)]` implied by `#[warn(unused)]`
+
warning: value assigned to `t` is never read
--> $DIR/liveness-consts.rs:42:9
|
@@ -53,11 +60,5 @@ warning: unused variable: `w`
LL | let w = 10;
| ^ help: if this is intentional, prefix it with an underscore: `_w`
-warning: unused variable: `z`
- --> $DIR/liveness-consts.rs:60:13
- |
-LL | let z = 42;
- | ^ help: if this is intentional, prefix it with an underscore: `_z`
-
warning: 8 warnings emitted