2018-08-08 12:28:26 +00:00
|
|
|
error: declaration of an `unsafe` function
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-unsafe-code.rs:23:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | unsafe fn baz() {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-unsafe-code.rs:3:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(unsafe_code)]
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: declaration of an `unsafe` trait
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-unsafe-code.rs:24:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | unsafe trait Foo {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: implementation of an `unsafe` trait
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-unsafe-code.rs:25:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | unsafe impl Foo for Bar {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: declaration of an `unsafe` method
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-unsafe-code.rs:28:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | unsafe fn baz(&self);
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: implementation of an `unsafe` method
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-unsafe-code.rs:29:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | unsafe fn provided(&self) {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: implementation of an `unsafe` method
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-unsafe-code.rs:30:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | unsafe fn provided_override(&self) {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: implementation of an `unsafe` method
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-unsafe-code.rs:34:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | unsafe fn baz(&self) {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: implementation of an `unsafe` method
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-unsafe-code.rs:35:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | unsafe fn provided_override(&self) {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: implementation of an `unsafe` method
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-unsafe-code.rs:54:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | unsafe fn provided_override(&self) {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: implementation of an `unsafe` method
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-unsafe-code.rs:65:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | unsafe fn provided(&self) {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: implementation of an `unsafe` method
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-unsafe-code.rs:71:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | unsafe fn provided(&self) {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: implementation of an `unsafe` method
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-unsafe-code.rs:75:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | unsafe fn baz(&self) {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: usage of an `unsafe` block
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-unsafe-code.rs:86:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | unsafe {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: usage of an `unsafe` block
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-unsafe-code.rs:19:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | unsafe {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | unsafe_in_macro!()
|
|
|
|
| ------------------ in this macro invocation
|
|
|
|
|
|
|
|
error: aborting due to 14 previous errors
|
|
|
|
|