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