Skip to content

Commit 6ddd2cd

Browse files
committed
remove unwanted stage0 line, fix style
1 parent 64a17a0 commit 6ddd2cd

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/libsyntax/feature_gate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ declare_features! (
686686
(accepted, repr_packed, "1.33.0", Some(33158), None),
687687
// Allows calling `const unsafe fn` inside `unsafe` blocks in `const fn` functions.
688688
(accepted, min_const_unsafe_fn, "1.33.0", Some(55607), None),
689-
// `#[cfg_attr(predicate, multiple, attributes, here)]`
689+
// `#[cfg_attr(predicate, multiple, attributes, here)]`
690690
(accepted, cfg_attr_multi, "1.33.0", Some(54881), None),
691691
);
692692

src/test/ui/conditional-compilation/cfg-attr-parse.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Parse `cfg_attr` with varying numbers of attributes and trailing commas
22

3-
#![cfg_attr(stage0, feature(cfg_attr_multi))]
4-
53
// Completely empty `cfg_attr` input
64
#[cfg_attr()] //~ error: expected identifier, found `)`
75
struct NoConfigurationPredicate;

src/test/ui/conditional-compilation/cfg-attr-parse.stderr

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
error: expected identifier, found `)`
2-
--> $DIR/cfg-attr-parse.rs:6:12
2+
--> $DIR/cfg-attr-parse.rs:4:12
33
|
44
LL | #[cfg_attr()] //~ error: expected identifier, found `)`
55
| ^ expected identifier
66

77
error: expected `,`, found `)`
8-
--> $DIR/cfg-attr-parse.rs:10:17
8+
--> $DIR/cfg-attr-parse.rs:8:17
99
|
1010
LL | #[cfg_attr(all())] //~ error: expected `,`, found `)`
1111
| ^ expected `,`
1212

1313
error: expected identifier, found `,`
14-
--> $DIR/cfg-attr-parse.rs:18:18
14+
--> $DIR/cfg-attr-parse.rs:16:18
1515
|
1616
LL | #[cfg_attr(all(),,)] //~ ERROR expected identifier
1717
| ^ expected identifier
1818

1919
error: expected identifier, found `,`
20-
--> $DIR/cfg-attr-parse.rs:30:28
20+
--> $DIR/cfg-attr-parse.rs:28:28
2121
|
2222
LL | #[cfg_attr(all(), must_use,,)] //~ ERROR expected identifier
2323
| ^ expected identifier
2424

2525
error: expected identifier, found `,`
26-
--> $DIR/cfg-attr-parse.rs:42:40
26+
--> $DIR/cfg-attr-parse.rs:40:40
2727
|
2828
LL | #[cfg_attr(all(), must_use, deprecated,,)] //~ ERROR expected identifier
2929
| ^ expected identifier

0 commit comments

Comments
 (0)