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
+16-16
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
error: declaration of a `no_mangle` function
2
-
--> $DIR/lint-unsafe-code.rs:31:17
2
+
--> $DIR/lint-unsafe-code.rs:31:1
3
3
|
4
4
LL | #[no_mangle] fn foo() {}
5
-
| ^^^
5
+
| ^^^^^^^^^^^^
6
6
|
7
7
note: the lint level is defined here
8
8
--> $DIR/lint-unsafe-code.rs:3:9
@@ -12,26 +12,26 @@ LL | #![deny(unsafe_code)]
12
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
13
13
14
14
error: declaration of a `no_mangle` static
15
-
--> $DIR/lint-unsafe-code.rs:32:21
15
+
--> $DIR/lint-unsafe-code.rs:32:1
16
16
|
17
17
LL | #[no_mangle] static FOO: u32 = 5;
18
-
| ^^^
18
+
| ^^^^^^^^^^^^
19
19
|
20
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
21
22
22
error: declaration of a function with `export_name`
23
-
--> $DIR/lint-unsafe-code.rs:34:27
23
+
--> $DIR/lint-unsafe-code.rs:34:1
24
24
|
25
25
LL | #[export_name = "bar"] fn bar() {}
26
-
| ^^^
26
+
| ^^^^^^^^^^^^^^^^^^^^^^
27
27
|
28
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
29
30
30
error: declaration of a static with `export_name`
31
-
--> $DIR/lint-unsafe-code.rs:35:31
31
+
--> $DIR/lint-unsafe-code.rs:35:1
32
32
|
33
33
LL | #[export_name = "BAR"] static BAR: u32 = 5;
34
-
| ^^^
34
+
| ^^^^^^^^^^^^^^^^^^^^^^
35
35
|
36
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
37
@@ -114,10 +114,10 @@ LL | unsafe {}
114
114
| ^^^^^^^^^
115
115
116
116
error: declaration of a `no_mangle` function
117
-
--> $DIR/lint-unsafe-code.rs:21:25
117
+
--> $DIR/lint-unsafe-code.rs:21:9
118
118
|
119
119
LL | #[no_mangle] fn foo() {}
120
-
| ^^^
120
+
| ^^^^^^^^^^^^
121
121
...
122
122
LL | unsafe_in_macro!()
123
123
| ------------------ in this macro invocation
@@ -126,10 +126,10 @@ LL | unsafe_in_macro!()
126
126
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
127
127
128
128
error: declaration of a `no_mangle` static
129
-
--> $DIR/lint-unsafe-code.rs:22:29
129
+
--> $DIR/lint-unsafe-code.rs:22:9
130
130
|
131
131
LL | #[no_mangle] static FOO: u32 = 5;
132
-
| ^^^
132
+
| ^^^^^^^^^^^^
133
133
...
134
134
LL | unsafe_in_macro!()
135
135
| ------------------ in this macro invocation
@@ -138,10 +138,10 @@ LL | unsafe_in_macro!()
138
138
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
139
139
140
140
error: declaration of a function with `export_name`
141
-
--> $DIR/lint-unsafe-code.rs:23:35
141
+
--> $DIR/lint-unsafe-code.rs:23:9
142
142
|
143
143
LL | #[export_name = "bar"] fn bar() {}
144
-
| ^^^
144
+
| ^^^^^^^^^^^^^^^^^^^^^^
145
145
...
146
146
LL | unsafe_in_macro!()
147
147
| ------------------ in this macro invocation
@@ -150,10 +150,10 @@ LL | unsafe_in_macro!()
150
150
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments