@@ -160,63 +160,20 @@ error: suffixes on string literals are invalid
160160LL | #[link(name = "string"suffix)]
161161 | ^^^^^^^^^^^^^^ invalid suffix `suffix`
162162
163- error[E0539]: malformed `link` attribute input
164- --> $DIR/bad-lit-suffixes.rs:39:1
165- |
166- LL | #[link(name = "string"suffix)]
167- | ^^^^^^^---------------------^^
168- | |
169- | expected this to be of the form `name = "..."`
170- |
171- = note: for more information, visit <https://doc.rust-lang.org/reference/items/external-blocks.html#the-link-attribute>
172- help: try changing it to one of the following valid forms of the attribute
173- |
174- LL - #[link(name = "string"suffix)]
175- LL + #[link(name = "...")]
176- |
177- LL - #[link(name = "string"suffix)]
178- LL + #[link(name = "...", import_name_type = "decorated|noprefix|undecorated")]
179- |
180- LL - #[link(name = "string"suffix)]
181- LL + #[link(name = "...", kind = "dylib|static|...")]
182- |
183- LL - #[link(name = "string"suffix)]
184- LL + #[link(name = "...", kind = "dylib|static|...", wasm_import_module = "...", import_name_type = "decorated|noprefix|undecorated")]
185- |
186- = and 1 other candidate
187-
188163error: invalid suffix `suffix` for number literal
189- --> $DIR/bad-lit-suffixes.rs:44 :41
164+ --> $DIR/bad-lit-suffixes.rs:43 :41
190165 |
191166LL | #[rustc_layout_scalar_valid_range_start(0suffix)]
192167 | ^^^^^^^ invalid suffix `suffix`
193168 |
194169 = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.)
195170
196- error[E0539]: malformed `rustc_layout_scalar_valid_range_start` attribute input
197- --> $DIR/bad-lit-suffixes.rs:44:1
198- |
199- LL | #[rustc_layout_scalar_valid_range_start(0suffix)]
200- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------^^
201- | | |
202- | | expected an integer literal here
203- | help: must be of the form: `#[rustc_layout_scalar_valid_range_start(start)]`
204-
205171error: suffixes on string literals are invalid
206- --> $DIR/bad-lit-suffixes.rs:50 :25
172+ --> $DIR/bad-lit-suffixes.rs:48 :25
207173 |
208174LL | #[rustc_confusables("blah"suffix)]
209175 | ^^^^^^^^^^^^ invalid suffix `suffix`
210176
211- error[E0539]: malformed `rustc_confusables` attribute input
212- --> $DIR/bad-lit-suffixes.rs:50:5
213- |
214- LL | #[rustc_confusables("blah"suffix)]
215- | ^^^^^^^^^^^^^^^^^^^^------------^^
216- | | |
217- | | expected a string literal here
218- | help: must be of the form: `#[rustc_confusables("name1", "name2", ...)]`
219-
220- error: aborting due to 25 previous errors; 2 warnings emitted
177+ error: aborting due to 22 previous errors; 2 warnings emitted
221178
222179For more information about this error, try `rustc --explain E0539`.
0 commit comments