2018-08-08 07:28:26 -05:00
|
|
|
error: unnecessary `unsafe` block
|
2021-04-29 20:54:22 -05:00
|
|
|
--> $DIR/unsafe-around-compiler-generated-unsafe.rs:9:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-04-29 20:54:22 -05:00
|
|
|
LL | unsafe { async {}.await; }
|
|
|
|
| ^^^^^^ unnecessary `unsafe` block
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2021-04-29 20:54:22 -05:00
|
|
|
--> $DIR/unsafe-around-compiler-generated-unsafe.rs:5:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_unsafe)]
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2021-06-07 17:43:35 -05:00
|
|
|
error: unnecessary `unsafe` block
|
|
|
|
--> $DIR/unsafe-around-compiler-generated-unsafe.rs:13:5
|
|
|
|
|
|
|
|
|
LL | unsafe { println!("foo"); }
|
|
|
|
| ^^^^^^ unnecessary `unsafe` block
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|