96 lines
2.3 KiB
Plaintext
96 lines
2.3 KiB
Plaintext
error: declaration of an `unsafe` function
|
|
--> $DIR/lint-unsafe-code.rs:23:1
|
|
|
|
|
LL | unsafe fn baz() {}
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/lint-unsafe-code.rs:3:9
|
|
|
|
|
LL | #![deny(unsafe_code)]
|
|
| ^^^^^^^^^^^
|
|
|
|
error: declaration of an `unsafe` trait
|
|
--> $DIR/lint-unsafe-code.rs:24:1
|
|
|
|
|
LL | unsafe trait Foo {}
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: implementation of an `unsafe` trait
|
|
--> $DIR/lint-unsafe-code.rs:25:1
|
|
|
|
|
LL | unsafe impl Foo for Bar {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: declaration of an `unsafe` method
|
|
--> $DIR/lint-unsafe-code.rs:28:5
|
|
|
|
|
LL | unsafe fn baz(&self);
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: implementation of an `unsafe` method
|
|
--> $DIR/lint-unsafe-code.rs:29:5
|
|
|
|
|
LL | unsafe fn provided(&self) {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: implementation of an `unsafe` method
|
|
--> $DIR/lint-unsafe-code.rs:30:5
|
|
|
|
|
LL | unsafe fn provided_override(&self) {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: implementation of an `unsafe` method
|
|
--> $DIR/lint-unsafe-code.rs:34:5
|
|
|
|
|
LL | unsafe fn baz(&self) {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: implementation of an `unsafe` method
|
|
--> $DIR/lint-unsafe-code.rs:35:5
|
|
|
|
|
LL | unsafe fn provided_override(&self) {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: implementation of an `unsafe` method
|
|
--> $DIR/lint-unsafe-code.rs:54:5
|
|
|
|
|
LL | unsafe fn provided_override(&self) {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: implementation of an `unsafe` method
|
|
--> $DIR/lint-unsafe-code.rs:65:5
|
|
|
|
|
LL | unsafe fn provided(&self) {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: implementation of an `unsafe` method
|
|
--> $DIR/lint-unsafe-code.rs:71:5
|
|
|
|
|
LL | unsafe fn provided(&self) {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: implementation of an `unsafe` method
|
|
--> $DIR/lint-unsafe-code.rs:75:5
|
|
|
|
|
LL | unsafe fn baz(&self) {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: usage of an `unsafe` block
|
|
--> $DIR/lint-unsafe-code.rs:86:5
|
|
|
|
|
LL | unsafe {}
|
|
| ^^^^^^^^^
|
|
|
|
error: usage of an `unsafe` block
|
|
--> $DIR/lint-unsafe-code.rs:19:9
|
|
|
|
|
LL | unsafe {}
|
|
| ^^^^^^^^^
|
|
...
|
|
LL | unsafe_in_macro!()
|
|
| ------------------ in this macro invocation
|
|
|
|
error: aborting due to 14 previous errors
|
|
|