|
| 1 | +warning: value assigned to `last` is never read |
| 2 | + --> $DIR/liveness-upvars.rs:9:9 |
| 3 | + | |
| 4 | +LL | last = Some(s); |
| 5 | + | ^^^^ |
| 6 | + | |
| 7 | +note: the lint level is defined here |
| 8 | + --> $DIR/liveness-upvars.rs:3:9 |
| 9 | + | |
| 10 | +LL | #![warn(unused)] |
| 11 | + | ^^^^^^ |
| 12 | + = note: `#[warn(unused_assignments)]` implied by `#[warn(unused)]` |
| 13 | + = help: maybe it is overwritten before being read? |
| 14 | + |
| 15 | +warning: unused variable: `last` |
| 16 | + --> $DIR/liveness-upvars.rs:9:9 |
| 17 | + | |
| 18 | +LL | last = Some(s); |
| 19 | + | ^^^^ |
| 20 | + | |
| 21 | +note: the lint level is defined here |
| 22 | + --> $DIR/liveness-upvars.rs:3:9 |
| 23 | + | |
| 24 | +LL | #![warn(unused)] |
| 25 | + | ^^^^^^ |
| 26 | + = note: `#[warn(unused_variables)]` implied by `#[warn(unused)]` |
| 27 | + = help: did you mean to capture by reference instead? |
| 28 | + |
| 29 | +warning: unused variable: `sum` |
| 30 | + --> $DIR/liveness-upvars.rs:21:9 |
| 31 | + | |
| 32 | +LL | sum += x; |
| 33 | + | ^^^ |
| 34 | + | |
| 35 | + = help: did you mean to capture by reference instead? |
| 36 | + |
| 37 | +warning: value captured by `c` is never read |
| 38 | + --> $DIR/liveness-upvars.rs:31:9 |
| 39 | + | |
| 40 | +LL | c = 1; |
| 41 | + | ^ |
| 42 | + | |
| 43 | + = help: did you mean to capture by reference instead? |
| 44 | + |
| 45 | +warning: value captured by `c` is never read |
| 46 | + --> $DIR/liveness-upvars.rs:35:9 |
| 47 | + | |
| 48 | +LL | c = 1; |
| 49 | + | ^ |
| 50 | + | |
| 51 | + = help: did you mean to capture by reference instead? |
| 52 | + |
| 53 | +warning: unused variable: `c` |
| 54 | + --> $DIR/liveness-upvars.rs:41:9 |
| 55 | + | |
| 56 | +LL | c += 1; |
| 57 | + | ^ |
| 58 | + | |
| 59 | + = help: did you mean to capture by reference instead? |
| 60 | + |
| 61 | +warning: value assigned to `c` is never read |
| 62 | + --> $DIR/liveness-upvars.rs:44:9 |
| 63 | + | |
| 64 | +LL | c += 1; |
| 65 | + | ^ |
| 66 | + | |
| 67 | + = help: maybe it is overwritten before being read? |
| 68 | + |
| 69 | +warning: unused variable: `c` |
| 70 | + --> $DIR/liveness-upvars.rs:44:9 |
| 71 | + | |
| 72 | +LL | c += 1; |
| 73 | + | ^ |
| 74 | + | |
| 75 | + = help: did you mean to capture by reference instead? |
| 76 | + |
| 77 | +warning: value assigned to `c` is never read |
| 78 | + --> $DIR/liveness-upvars.rs:57:9 |
| 79 | + | |
| 80 | +LL | c += 1; |
| 81 | + | ^ |
| 82 | + | |
| 83 | + = help: maybe it is overwritten before being read? |
| 84 | + |
| 85 | +warning: value assigned to `c` is never read |
| 86 | + --> $DIR/liveness-upvars.rs:63:9 |
| 87 | + | |
| 88 | +LL | c += 1; |
| 89 | + | ^ |
| 90 | + | |
| 91 | + = help: maybe it is overwritten before being read? |
| 92 | + |
| 93 | +warning: value assigned to `d` is never read |
| 94 | + --> $DIR/liveness-upvars.rs:72:13 |
| 95 | + | |
| 96 | +LL | d = Some("d1"); |
| 97 | + | ^ |
| 98 | + | |
| 99 | + = help: maybe it is overwritten before being read? |
| 100 | + |
| 101 | +warning: value assigned to `e` is never read |
| 102 | + --> $DIR/liveness-upvars.rs:76:13 |
| 103 | + | |
| 104 | +LL | e = Some("e1"); |
| 105 | + | ^ |
| 106 | + | |
| 107 | + = help: maybe it is overwritten before being read? |
| 108 | + |
| 109 | +warning: value assigned to `e` is never read |
| 110 | + --> $DIR/liveness-upvars.rs:78:13 |
| 111 | + | |
| 112 | +LL | e = Some("e2"); |
| 113 | + | ^ |
| 114 | + | |
| 115 | + = help: maybe it is overwritten before being read? |
| 116 | + |
| 117 | +warning: unused variable: `e` |
| 118 | + --> $DIR/liveness-upvars.rs:76:13 |
| 119 | + | |
| 120 | +LL | e = Some("e1"); |
| 121 | + | ^ |
| 122 | + | |
| 123 | + = help: did you mean to capture by reference instead? |
| 124 | + |
| 125 | +warning: value assigned to `v` is never read |
| 126 | + --> $DIR/liveness-upvars.rs:86:13 |
| 127 | + | |
| 128 | +LL | v = T::default(); |
| 129 | + | ^ |
| 130 | + | |
| 131 | + = help: maybe it is overwritten before being read? |
| 132 | + |
| 133 | +warning: value assigned to `z` is never read |
| 134 | + --> $DIR/liveness-upvars.rs:98:17 |
| 135 | + | |
| 136 | +LL | z = T::default(); |
| 137 | + | ^ |
| 138 | + | |
| 139 | + = help: maybe it is overwritten before being read? |
| 140 | + |
| 141 | +warning: unused variable: `z` |
| 142 | + --> $DIR/liveness-upvars.rs:98:17 |
| 143 | + | |
| 144 | +LL | z = T::default(); |
| 145 | + | ^ |
| 146 | + | |
| 147 | + = help: did you mean to capture by reference instead? |
| 148 | + |
| 149 | +warning: 17 warnings emitted |
| 150 | + |
0 commit comments