11error: declaration of a `no_mangle` function
2- --> $DIR/lint-unsafe-code.rs:31:14
2+ --> $DIR/lint-unsafe-code.rs:31:17
33 |
44LL | #[no_mangle] fn foo() {}
5- | ^^^^^^^^ ^^^
5+ | ^^^
66 |
77note: the lint level is defined here
88 --> $DIR/lint-unsafe-code.rs:3:9
@@ -11,22 +11,22 @@ LL | #![deny(unsafe_code)]
1111 | ^^^^^^^^^^^
1212
1313error: declaration of a `no_mangle` static
14- --> $DIR/lint-unsafe-code.rs:32:14
14+ --> $DIR/lint-unsafe-code.rs:32:21
1515 |
1616LL | #[no_mangle] static FOO: u32 = 5;
17- | ^^^^^^^^^^^^^^^^^ ^^^
17+ | ^^^
1818
1919error: declaration of a function with `export_name`
20- --> $DIR/lint-unsafe-code.rs:34:24
20+ --> $DIR/lint-unsafe-code.rs:34:27
2121 |
2222LL | #[export_name = "bar"] fn bar() {}
23- | ^^^^^^^^ ^^^
23+ | ^^^
2424
2525error: declaration of a static with `export_name`
26- --> $DIR/lint-unsafe-code.rs:35:24
26+ --> $DIR/lint-unsafe-code.rs:35:31
2727 |
2828LL | #[export_name = "BAR"] static BAR: u32 = 5;
29- | ^^^^^^^^^^^^^^^^^ ^^^
29+ | ^^^
3030
3131error: declaration of an `unsafe` function
3232 --> $DIR/lint-unsafe-code.rs:37:1
@@ -107,43 +107,43 @@ LL | unsafe {}
107107 | ^^^^^^^^^
108108
109109error: declaration of a `no_mangle` function
110- --> $DIR/lint-unsafe-code.rs:21:22
110+ --> $DIR/lint-unsafe-code.rs:21:25
111111 |
112112LL | #[no_mangle] fn foo() {}
113- | ^^^^^^^^ ^^^
113+ | ^^^
114114...
115115LL | unsafe_in_macro!()
116116 | ------------------ in this macro invocation
117117 |
118118 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
119119
120120error: declaration of a `no_mangle` static
121- --> $DIR/lint-unsafe-code.rs:22:22
121+ --> $DIR/lint-unsafe-code.rs:22:29
122122 |
123123LL | #[no_mangle] static FOO: u32 = 5;
124- | ^^^^^^^^^^^^^^^^^ ^^^
124+ | ^^^
125125...
126126LL | unsafe_in_macro!()
127127 | ------------------ in this macro invocation
128128 |
129129 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
130130
131131error: declaration of a function with `export_name`
132- --> $DIR/lint-unsafe-code.rs:23:32
132+ --> $DIR/lint-unsafe-code.rs:23:35
133133 |
134134LL | #[export_name = "bar"] fn bar() {}
135- | ^^^^^^^^ ^^^
135+ | ^^^
136136...
137137LL | unsafe_in_macro!()
138138 | ------------------ in this macro invocation
139139 |
140140 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
141141
142142error: declaration of a static with `export_name`
143- --> $DIR/lint-unsafe-code.rs:25:32
143+ --> $DIR/lint-unsafe-code.rs:25:39
144144 |
145145LL | #[export_name = "BAR"] static BAR: u32 = 5;
146- | ^^^^^^^^^^^^^^^^^ ^^^
146+ | ^^^
147147...
148148LL | unsafe_in_macro!()
149149 | ------------------ in this macro invocation
0 commit comments