mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
982b49494e
This is to make the diff when stabilizing it easier to review.
20 lines
567 B
Text
20 lines
567 B
Text
error: unnecessary `unsafe` block
|
|
--> $DIR/unsafe-around-compiler-generated-unsafe.rs:7:9
|
|
|
|
|
LL | unsafe { async {}.await; }
|
|
| ^^^^^^ unnecessary `unsafe` block
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/unsafe-around-compiler-generated-unsafe.rs:3:9
|
|
|
|
|
LL | #![deny(unused_unsafe)]
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: unnecessary `unsafe` block
|
|
--> $DIR/unsafe-around-compiler-generated-unsafe.rs:11:5
|
|
|
|
|
LL | unsafe { println!("foo"); }
|
|
| ^^^^^^ unnecessary `unsafe` block
|
|
|
|
error: aborting due to 2 previous errors
|
|
|