1
1
error: declaration of a `no_mangle` function
2
- --> $DIR/lint-unsafe-code.rs:31:14
2
+ --> $DIR/lint-unsafe-code.rs:31:17
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
@@ -11,22 +11,22 @@ LL | #![deny(unsafe_code)]
11
11
| ^^^^^^^^^^^
12
12
13
13
error: declaration of a `no_mangle` static
14
- --> $DIR/lint-unsafe-code.rs:32:14
14
+ --> $DIR/lint-unsafe-code.rs:32:21
15
15
|
16
16
LL | #[no_mangle] static FOO: u32 = 5;
17
- | ^^^^^^^^^^^^^^^^^ ^^^
17
+ | ^^^
18
18
19
19
error: declaration of a function with `export_name`
20
- --> $DIR/lint-unsafe-code.rs:34:24
20
+ --> $DIR/lint-unsafe-code.rs:34:27
21
21
|
22
22
LL | #[export_name = "bar"] fn bar() {}
23
- | ^^^^^^^^ ^^^
23
+ | ^^^
24
24
25
25
error: declaration of a static with `export_name`
26
- --> $DIR/lint-unsafe-code.rs:35:24
26
+ --> $DIR/lint-unsafe-code.rs:35:31
27
27
|
28
28
LL | #[export_name = "BAR"] static BAR: u32 = 5;
29
- | ^^^^^^^^^^^^^^^^^ ^^^
29
+ | ^^^
30
30
31
31
error: declaration of an `unsafe` function
32
32
--> $DIR/lint-unsafe-code.rs:37:1
@@ -107,43 +107,43 @@ LL | unsafe {}
107
107
| ^^^^^^^^^
108
108
109
109
error: declaration of a `no_mangle` function
110
- --> $DIR/lint-unsafe-code.rs:21:22
110
+ --> $DIR/lint-unsafe-code.rs:21:25
111
111
|
112
112
LL | #[no_mangle] fn foo() {}
113
- | ^^^^^^^^ ^^^
113
+ | ^^^
114
114
...
115
115
LL | unsafe_in_macro!()
116
116
| ------------------ in this macro invocation
117
117
|
118
118
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
119
119
120
120
error: declaration of a `no_mangle` static
121
- --> $DIR/lint-unsafe-code.rs:22:22
121
+ --> $DIR/lint-unsafe-code.rs:22:29
122
122
|
123
123
LL | #[no_mangle] static FOO: u32 = 5;
124
- | ^^^^^^^^^^^^^^^^^ ^^^
124
+ | ^^^
125
125
...
126
126
LL | unsafe_in_macro!()
127
127
| ------------------ in this macro invocation
128
128
|
129
129
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
130
130
131
131
error: declaration of a function with `export_name`
132
- --> $DIR/lint-unsafe-code.rs:23:32
132
+ --> $DIR/lint-unsafe-code.rs:23:35
133
133
|
134
134
LL | #[export_name = "bar"] fn bar() {}
135
- | ^^^^^^^^ ^^^
135
+ | ^^^
136
136
...
137
137
LL | unsafe_in_macro!()
138
138
| ------------------ in this macro invocation
139
139
|
140
140
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
141
141
142
142
error: declaration of a static with `export_name`
143
- --> $DIR/lint-unsafe-code.rs:25:32
143
+ --> $DIR/lint-unsafe-code.rs:25:39
144
144
|
145
145
LL | #[export_name = "BAR"] static BAR: u32 = 5;
146
- | ^^^^^^^^^^^^^^^^^ ^^^
146
+ | ^^^
147
147
...
148
148
LL | unsafe_in_macro!()
149
149
| ------------------ in this macro invocation
0 commit comments