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