summary refs log tree commit diff
path: root/src/test/ui/lint/lint-unsafe-code.stderr
blob: e2dd45e2c8a31a3e1c5e828c03c22aa9930a3729 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
error: declaration of an `unsafe` function
  --> $DIR/lint-unsafe-code.rs:23:1
   |
LL | unsafe fn baz() {} //~ ERROR: declaration of an `unsafe` function
   | ^^^^^^^^^^^^^^^^^^
   |
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: declaration of an `unsafe` trait
   | ^^^^^^^^^^^^^^^^^^^

error: implementation of an `unsafe` trait
  --> $DIR/lint-unsafe-code.rs:25:1
   |
LL | unsafe impl Foo for Bar {} //~ ERROR: implementation of an `unsafe` trait
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: declaration of an `unsafe` method
  --> $DIR/lint-unsafe-code.rs:28:5
   |
LL |     unsafe fn baz(&self); //~ ERROR: declaration of an `unsafe` method
   |     ^^^^^^^^^^^^^^^^^^^^^

error: implementation of an `unsafe` method
  --> $DIR/lint-unsafe-code.rs:29:5
   |
LL |     unsafe fn provided(&self) {} //~ ERROR: implementation of an `unsafe` method
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: implementation of an `unsafe` method
  --> $DIR/lint-unsafe-code.rs:34:5
   |
LL |     unsafe fn baz(&self) {} //~ ERROR: implementation of an `unsafe` method
   |     ^^^^^^^^^^^^^^^^^^^^^^^

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
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: implementation of an `unsafe` method
  --> $DIR/lint-unsafe-code.rs:65:5
   |
LL |     unsafe fn provided(&self) {} //~ ERROR: implementation of an `unsafe` method
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: implementation of an `unsafe` method
  --> $DIR/lint-unsafe-code.rs:71:5
   |
LL |     unsafe fn provided(&self) {} //~ ERROR: implementation of an `unsafe` method
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: implementation of an `unsafe` method
  --> $DIR/lint-unsafe-code.rs:75:5
   |
LL |     unsafe fn baz(&self) {} //~ ERROR: implementation of an `unsafe` method
   |     ^^^^^^^^^^^^^^^^^^^^^^^

error: usage of an `unsafe` block
  --> $DIR/lint-unsafe-code.rs:86:5
   |
LL |     unsafe {} //~ ERROR: usage of an `unsafe` block
   |     ^^^^^^^^^

error: usage of an `unsafe` block
  --> $DIR/lint-unsafe-code.rs:19:9
   |
LL |         unsafe {} //~ ERROR: usage of an `unsafe` block
   |         ^^^^^^^^^
...
LL |     unsafe_in_macro!()
   |     ------------------ in this macro invocation

error: aborting due to 14 previous errors