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