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
Copy file name to clipboardExpand all lines: src/test/ui/lint/lint-unsafe-code.stderr
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,24 +9,31 @@ note: the lint level is defined here
9
9
|
10
10
LL | #![deny(unsafe_code)]
11
11
| ^^^^^^^^^^^
12
+
= note: the linker's behavior with multiple libraries exporting duplicate symbol names is undefined and Rust cannot provide guarantees when you manually override them
12
13
13
14
error: declaration of a `no_mangle` static
14
15
--> $DIR/lint-unsafe-code.rs:32:21
15
16
|
16
17
LL | #[no_mangle] static FOO: u32 = 5;
17
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
18
21
19
22
error: declaration of a function with `export_name`
20
23
--> $DIR/lint-unsafe-code.rs:34:27
21
24
|
22
25
LL | #[export_name = "bar"] fn bar() {}
23
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
24
29
25
30
error: declaration of a static with `export_name`
26
31
--> $DIR/lint-unsafe-code.rs:35:31
27
32
|
28
33
LL | #[export_name = "BAR"] static BAR: u32 = 5;
29
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
30
37
31
38
error: declaration of an `unsafe` function
32
39
--> $DIR/lint-unsafe-code.rs:37:1
@@ -115,6 +122,7 @@ LL | #[no_mangle] fn foo() {}
115
122
LL | unsafe_in_macro!()
116
123
| ------------------ in this macro invocation
117
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
118
126
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: the linker's behavior with multiple libraries exporting duplicate symbol names is undefined and Rust cannot provide guarantees when you manually override them
129
138
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
130
139
131
140
error: declaration of a function with `export_name`
= note: the linker's behavior with multiple libraries exporting duplicate symbol names is undefined and Rust cannot provide guarantees when you manually override them
140
150
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
= note: the linker's behavior with multiple libraries exporting duplicate symbol names is undefined and Rust cannot provide guarantees when you manually override them
151
162
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments