rust/tests/ui/unsafe/unsafe-around-compiler-generated-unsafe.mir.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
567 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error: unnecessary `unsafe` block
--> $DIR/unsafe-around-compiler-generated-unsafe.rs:9:9
2018-08-08 12:28:26 +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
--> $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