fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error: declaration of an `unsafe` function 2 --> $DIR/lint-unsafe-code.rs:23:1 3 | 4LL | unsafe fn baz() {} 5 | ^^^^^^^^^^^^^^^^^^ 6 | 7note: the lint level is defined here 8 --> $DIR/lint-unsafe-code.rs:3:9 9 | 10LL | #![deny(unsafe_code)] 11 | ^^^^^^^^^^^ 12 13error: declaration of an `unsafe` trait 14 --> $DIR/lint-unsafe-code.rs:24:1 15 | 16LL | unsafe trait Foo {} 17 | ^^^^^^^^^^^^^^^^^^^ 18 19error: implementation of an `unsafe` trait 20 --> $DIR/lint-unsafe-code.rs:25:1 21 | 22LL | unsafe impl Foo for Bar {} 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 24 25error: declaration of an `unsafe` method 26 --> $DIR/lint-unsafe-code.rs:28:5 27 | 28LL | unsafe fn baz(&self); 29 | ^^^^^^^^^^^^^^^^^^^^^ 30 31error: implementation of an `unsafe` method 32 --> $DIR/lint-unsafe-code.rs:29:5 33 | 34LL | unsafe fn provided(&self) {} 35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 36 37error: implementation of an `unsafe` method 38 --> $DIR/lint-unsafe-code.rs:30:5 39 | 40LL | unsafe fn provided_override(&self) {} 41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 42 43error: implementation of an `unsafe` method 44 --> $DIR/lint-unsafe-code.rs:34:5 45 | 46LL | unsafe fn baz(&self) {} 47 | ^^^^^^^^^^^^^^^^^^^^^^^ 48 49error: implementation of an `unsafe` method 50 --> $DIR/lint-unsafe-code.rs:35:5 51 | 52LL | unsafe fn provided_override(&self) {} 53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 54 55error: implementation of an `unsafe` method 56 --> $DIR/lint-unsafe-code.rs:54:5 57 | 58LL | unsafe fn provided_override(&self) {} 59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 60 61error: implementation of an `unsafe` method 62 --> $DIR/lint-unsafe-code.rs:65:5 63 | 64LL | unsafe fn provided(&self) {} 65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 66 67error: implementation of an `unsafe` method 68 --> $DIR/lint-unsafe-code.rs:71:5 69 | 70LL | unsafe fn provided(&self) {} 71 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 72 73error: implementation of an `unsafe` method 74 --> $DIR/lint-unsafe-code.rs:75:5 75 | 76LL | unsafe fn baz(&self) {} 77 | ^^^^^^^^^^^^^^^^^^^^^^^ 78 79error: usage of an `unsafe` block 80 --> $DIR/lint-unsafe-code.rs:86:5 81 | 82LL | unsafe {} 83 | ^^^^^^^^^ 84 85error: usage of an `unsafe` block 86 --> $DIR/lint-unsafe-code.rs:19:9 87 | 88LL | unsafe {} 89 | ^^^^^^^^^ 90... 91LL | unsafe_in_macro!() 92 | ------------------ in this macro invocation 93 | 94 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) 95 96error: aborting due to 14 previous errors 97