38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
error: local variable doesn't need to be boxed here
|
|
--> $DIR/escape_analysis.rs:40:13
|
|
|
|
|
LL | fn warn_arg(x: Box<A>) {
|
|
| ^
|
|
|
|
|
= note: `-D clippy::boxed-local` implied by `-D warnings`
|
|
|
|
error: local variable doesn't need to be boxed here
|
|
--> $DIR/escape_analysis.rs:131:12
|
|
|
|
|
LL | pub fn new(_needs_name: Box<PeekableSeekable<&()>>) -> () {}
|
|
| ^^^^^^^^^^^
|
|
|
|
error: non-binding let on a type that implements `Drop`
|
|
--> $DIR/escape_analysis.rs:166:9
|
|
|
|
|
LL | / let _ = move || {
|
|
LL | | consume(x);
|
|
LL | | };
|
|
| |__________^
|
|
|
|
|
= note: `#[deny(clippy::let_underscore_drop)]` on by default
|
|
= help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
|
|
|
|
error: non-binding let on a type that implements `Drop`
|
|
--> $DIR/escape_analysis.rs:172:9
|
|
|
|
|
LL | / let _ = || {
|
|
LL | | borrow(&x);
|
|
LL | | };
|
|
| |__________^
|
|
|
|
|
= help: consider using an underscore-prefixed named binding or dropping explicitly with `std::mem::drop`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|