summary refs log tree commit diff
path: root/src/test/ui/lint/lint-unsafe-code.stderr
blob: ee2aba066ecacc56bbc9dc546d8924a4fbef5d7a (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:33:1
   |
LL | unsafe fn baz() {} //~ ERROR: declaration of an `unsafe` function
   | ^^^^^^^^^^^^^^^^^^
   |
note: lint level defined here
  --> $DIR/lint-unsafe-code.rs:13:9
   |
LL | #![deny(unsafe_code)]
   |         ^^^^^^^^^^^

error: declaration of an `unsafe` trait
  --> $DIR/lint-unsafe-code.rs:34:1
   |
LL | unsafe trait Foo {} //~ ERROR: declaration of an `unsafe` trait
   | ^^^^^^^^^^^^^^^^^^^

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

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

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

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

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

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

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

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

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

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

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

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

error: aborting due to 14 previous errors