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