2018-08-08 12:28:26 +00:00
|
|
|
error: unnecessary `unsafe` block
|
2021-04-30 01:54:22 +00:00
|
|
|
--> $DIR/unsafe-around-compiler-generated-unsafe.rs:9:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2021-04-30 01:54:22 +00:00
|
|
|
LL | unsafe { async {}.await; }
|
|
|
|
| ^^^^^^ unnecessary `unsafe` block
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2021-04-30 01:54:22 +00:00
|
|
|
--> $DIR/unsafe-around-compiler-generated-unsafe.rs:5:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_unsafe)]
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2021-06-07 22:43:35 +00: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 12:28:26 +00:00
|
|
|
|