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