You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= note: the linker's behavior with multiple libraries exporting duplicate symbol names is undefined and Rust cannot provide guarantees when you manually override them
13
+
14
+
error: declaration of a `no_mangle` static
15
+
--> $DIR/lint-unsafe-code.rs:32:1
16
+
|
17
+
LL | #[no_mangle] static FOO: u32 = 5;
18
+
| ^^^^^^^^^^^^
19
+
|
20
+
= note: the linker's behavior with multiple libraries exporting duplicate symbol names is undefined and Rust cannot provide guarantees when you manually override them
21
+
22
+
error: declaration of a function with `export_name`
23
+
--> $DIR/lint-unsafe-code.rs:34:1
24
+
|
25
+
LL | #[export_name = "bar"] fn bar() {}
26
+
| ^^^^^^^^^^^^^^^^^^^^^^
27
+
|
28
+
= note: the linker's behavior with multiple libraries exporting duplicate symbol names is undefined and Rust cannot provide guarantees when you manually override them
29
+
30
+
error: declaration of a static with `export_name`
31
+
--> $DIR/lint-unsafe-code.rs:35:1
32
+
|
33
+
LL | #[export_name = "BAR"] static BAR: u32 = 5;
34
+
| ^^^^^^^^^^^^^^^^^^^^^^
35
+
|
36
+
= note: the linker's behavior with multiple libraries exporting duplicate symbol names is undefined and Rust cannot provide guarantees when you manually override them
37
+
38
+
error: declaration of an `unsafe` function
39
+
--> $DIR/lint-unsafe-code.rs:37:1
40
+
|
41
+
LL | unsafe fn baz() {}
42
+
| ^^^^^^^^^^^^^^^^^^
12
43
13
44
error: declaration of an `unsafe` trait
14
-
--> $DIR/lint-unsafe-code.rs:24:1
45
+
--> $DIR/lint-unsafe-code.rs:38:1
15
46
|
16
47
LL | unsafe trait Foo {}
17
48
| ^^^^^^^^^^^^^^^^^^^
18
49
19
50
error: implementation of an `unsafe` trait
20
-
--> $DIR/lint-unsafe-code.rs:25:1
51
+
--> $DIR/lint-unsafe-code.rs:39:1
21
52
|
22
53
LL | unsafe impl Foo for Bar {}
23
54
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
24
55
25
56
error: declaration of an `unsafe` method
26
-
--> $DIR/lint-unsafe-code.rs:28:5
57
+
--> $DIR/lint-unsafe-code.rs:42:5
27
58
|
28
59
LL | unsafe fn baz(&self);
29
60
| ^^^^^^^^^^^^^^^^^^^^^
30
61
31
62
error: implementation of an `unsafe` method
32
-
--> $DIR/lint-unsafe-code.rs:29:5
63
+
--> $DIR/lint-unsafe-code.rs:43:5
33
64
|
34
65
LL | unsafe fn provided(&self) {}
35
66
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
67
37
68
error: implementation of an `unsafe` method
38
-
--> $DIR/lint-unsafe-code.rs:30:5
69
+
--> $DIR/lint-unsafe-code.rs:44:5
39
70
|
40
71
LL | unsafe fn provided_override(&self) {}
41
72
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
73
43
74
error: implementation of an `unsafe` method
44
-
--> $DIR/lint-unsafe-code.rs:34:5
75
+
--> $DIR/lint-unsafe-code.rs:48:5
45
76
|
46
77
LL | unsafe fn baz(&self) {}
47
78
| ^^^^^^^^^^^^^^^^^^^^^^^
48
79
49
80
error: implementation of an `unsafe` method
50
-
--> $DIR/lint-unsafe-code.rs:35:5
81
+
--> $DIR/lint-unsafe-code.rs:49:5
51
82
|
52
83
LL | unsafe fn provided_override(&self) {}
53
84
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54
85
55
86
error: implementation of an `unsafe` method
56
-
--> $DIR/lint-unsafe-code.rs:54:5
87
+
--> $DIR/lint-unsafe-code.rs:68:5
57
88
|
58
89
LL | unsafe fn provided_override(&self) {}
59
90
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60
91
61
92
error: implementation of an `unsafe` method
62
-
--> $DIR/lint-unsafe-code.rs:65:5
93
+
--> $DIR/lint-unsafe-code.rs:79:5
63
94
|
64
95
LL | unsafe fn provided(&self) {}
65
96
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
97
67
98
error: implementation of an `unsafe` method
68
-
--> $DIR/lint-unsafe-code.rs:71:5
99
+
--> $DIR/lint-unsafe-code.rs:85:5
69
100
|
70
101
LL | unsafe fn provided(&self) {}
71
102
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72
103
73
104
error: implementation of an `unsafe` method
74
-
--> $DIR/lint-unsafe-code.rs:75:5
105
+
--> $DIR/lint-unsafe-code.rs:89:5
75
106
|
76
107
LL | unsafe fn baz(&self) {}
77
108
| ^^^^^^^^^^^^^^^^^^^^^^^
78
109
79
110
error: usage of an `unsafe` block
80
-
--> $DIR/lint-unsafe-code.rs:86:5
111
+
--> $DIR/lint-unsafe-code.rs:100:5
81
112
|
82
113
LL | unsafe {}
83
114
| ^^^^^^^^^
84
115
116
+
error: declaration of a `no_mangle` function
117
+
--> $DIR/lint-unsafe-code.rs:21:9
118
+
|
119
+
LL | #[no_mangle] fn foo() {}
120
+
| ^^^^^^^^^^^^
121
+
...
122
+
LL | unsafe_in_macro!()
123
+
| ------------------ in this macro invocation
124
+
|
125
+
= note: the linker's behavior with multiple libraries exporting duplicate symbol names is undefined and Rust cannot provide guarantees when you manually override them
126
+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
127
+
128
+
error: declaration of a `no_mangle` static
129
+
--> $DIR/lint-unsafe-code.rs:22:9
130
+
|
131
+
LL | #[no_mangle] static FOO: u32 = 5;
132
+
| ^^^^^^^^^^^^
133
+
...
134
+
LL | unsafe_in_macro!()
135
+
| ------------------ in this macro invocation
136
+
|
137
+
= note: the linker's behavior with multiple libraries exporting duplicate symbol names is undefined and Rust cannot provide guarantees when you manually override them
138
+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
139
+
140
+
error: declaration of a function with `export_name`
141
+
--> $DIR/lint-unsafe-code.rs:23:9
142
+
|
143
+
LL | #[export_name = "bar"] fn bar() {}
144
+
| ^^^^^^^^^^^^^^^^^^^^^^
145
+
...
146
+
LL | unsafe_in_macro!()
147
+
| ------------------ in this macro invocation
148
+
|
149
+
= note: the linker's behavior with multiple libraries exporting duplicate symbol names is undefined and Rust cannot provide guarantees when you manually override them
150
+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
151
+
152
+
error: declaration of a static with `export_name`
153
+
--> $DIR/lint-unsafe-code.rs:25:9
154
+
|
155
+
LL | #[export_name = "BAR"] static BAR: u32 = 5;
156
+
| ^^^^^^^^^^^^^^^^^^^^^^
157
+
...
158
+
LL | unsafe_in_macro!()
159
+
| ------------------ in this macro invocation
160
+
|
161
+
= note: the linker's behavior with multiple libraries exporting duplicate symbol names is undefined and Rust cannot provide guarantees when you manually override them
162
+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
163
+
85
164
error: usage of an `unsafe` block
86
-
--> $DIR/lint-unsafe-code.rs:19:9
165
+
--> $DIR/lint-unsafe-code.rs:27:9
87
166
|
88
167
LL | unsafe {}
89
168
| ^^^^^^^^^
@@ -93,5 +172,5 @@ LL | unsafe_in_macro!()
93
172
|
94
173
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments