2017-02-07 14:05:30 -06:00
|
|
|
error: local variable doesn't need to be boxed here
|
|
|
|
--> $DIR/escape_analysis.rs:33:9
|
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
33 | let x = box A;
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/escape_analysis.rs:5:9
|
|
|
|
|
|
|
|
|
5 | #![deny(boxed_local)]
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: local variable doesn't need to be boxed here
|
|
|
|
--> $DIR/escape_analysis.rs:37:13
|
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
37 | fn warn_arg(x: Box<A>) {
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: local variable doesn't need to be boxed here
|
|
|
|
--> $DIR/escape_analysis.rs:49:9
|
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
49 | let y = x;
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: local variable doesn't need to be boxed here
|
|
|
|
--> $DIR/escape_analysis.rs:54:9
|
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
54 | let bz = box A;
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: local variable doesn't need to be boxed here
|
|
|
|
--> $DIR/escape_analysis.rs:58:9
|
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
58 | let bz = box A;
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: local variable doesn't need to be boxed here
|
|
|
|
--> $DIR/escape_analysis.rs:88:9
|
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
88 | let x = box A;
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: local variable doesn't need to be boxed here
|
|
|
|
--> $DIR/escape_analysis.rs:101:9
|
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
101 | let x = box A;
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: local variable doesn't need to be boxed here
|
|
|
|
--> $DIR/escape_analysis.rs:130:12
|
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
130 | pub fn new(_needs_name: Box<PeekableSeekable<&()>>) -> () {
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|