mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
remove unwanted stage0 line, fix style
This commit is contained in:
parent
64a17a0e59
commit
6ddd2cdc5b
@ -686,7 +686,7 @@ declare_features! (
|
||||
(accepted, repr_packed, "1.33.0", Some(33158), None),
|
||||
// Allows calling `const unsafe fn` inside `unsafe` blocks in `const fn` functions.
|
||||
(accepted, min_const_unsafe_fn, "1.33.0", Some(55607), None),
|
||||
// `#[cfg_attr(predicate, multiple, attributes, here)]`
|
||||
// `#[cfg_attr(predicate, multiple, attributes, here)]`
|
||||
(accepted, cfg_attr_multi, "1.33.0", Some(54881), None),
|
||||
);
|
||||
|
||||
|
@ -1,7 +1,5 @@
|
||||
// Parse `cfg_attr` with varying numbers of attributes and trailing commas
|
||||
|
||||
#![cfg_attr(stage0, feature(cfg_attr_multi))]
|
||||
|
||||
// Completely empty `cfg_attr` input
|
||||
#[cfg_attr()] //~ error: expected identifier, found `)`
|
||||
struct NoConfigurationPredicate;
|
||||
|
@ -1,29 +1,29 @@
|
||||
error: expected identifier, found `)`
|
||||
--> $DIR/cfg-attr-parse.rs:6:12
|
||||
--> $DIR/cfg-attr-parse.rs:4:12
|
||||
|
|
||||
LL | #[cfg_attr()] //~ error: expected identifier, found `)`
|
||||
| ^ expected identifier
|
||||
|
||||
error: expected `,`, found `)`
|
||||
--> $DIR/cfg-attr-parse.rs:10:17
|
||||
--> $DIR/cfg-attr-parse.rs:8:17
|
||||
|
|
||||
LL | #[cfg_attr(all())] //~ error: expected `,`, found `)`
|
||||
| ^ expected `,`
|
||||
|
||||
error: expected identifier, found `,`
|
||||
--> $DIR/cfg-attr-parse.rs:18:18
|
||||
--> $DIR/cfg-attr-parse.rs:16:18
|
||||
|
|
||||
LL | #[cfg_attr(all(),,)] //~ ERROR expected identifier
|
||||
| ^ expected identifier
|
||||
|
||||
error: expected identifier, found `,`
|
||||
--> $DIR/cfg-attr-parse.rs:30:28
|
||||
--> $DIR/cfg-attr-parse.rs:28:28
|
||||
|
|
||||
LL | #[cfg_attr(all(), must_use,,)] //~ ERROR expected identifier
|
||||
| ^ expected identifier
|
||||
|
||||
error: expected identifier, found `,`
|
||||
--> $DIR/cfg-attr-parse.rs:42:40
|
||||
--> $DIR/cfg-attr-parse.rs:40:40
|
||||
|
|
||||
LL | #[cfg_attr(all(), must_use, deprecated,,)] //~ ERROR expected identifier
|
||||
| ^ expected identifier
|
||||
|
Loading…
Reference in New Issue
Block a user