11error: none of the predicates in this `cfg_select` evaluated to true
2- --> $DIR/cfg_select.rs:159 :1
2+ --> $DIR/cfg_select.rs:161 :1
33 |
44LL | / cfg_select! {
55LL | |
@@ -8,49 +8,49 @@ LL | | }
88 | |_^
99
1010error: none of the predicates in this `cfg_select` evaluated to true
11- --> $DIR/cfg_select.rs:164 :1
11+ --> $DIR/cfg_select.rs:166 :1
1212 |
1313LL | cfg_select! {}
1414 | ^^^^^^^^^^^^^^
1515
1616error: expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found `=>`
17- --> $DIR/cfg_select.rs:168 :5
17+ --> $DIR/cfg_select.rs:170 :5
1818 |
1919LL | => {}
2020 | ^^
2121
2222error: expected a literal (`1u8`, `1.0f32`, `"string"`, etc.) here, found expression
23- --> $DIR/cfg_select.rs:173 :5
23+ --> $DIR/cfg_select.rs:175 :5
2424 |
2525LL | () => {}
2626 | ^^ expressions are not allowed here
2727
2828error[E0539]: malformed `cfg_select` macro input
29- --> $DIR/cfg_select.rs:178 :5
29+ --> $DIR/cfg_select.rs:180 :5
3030 |
3131LL | "str" => {}
3232 | ^^^^^ expected a valid identifier here
3333
3434error[E0539]: malformed `cfg_select` macro input
35- --> $DIR/cfg_select.rs:183 :5
35+ --> $DIR/cfg_select.rs:185 :5
3636 |
3737LL | a::b => {}
3838 | ^^^^ expected a valid identifier here
3939
4040error[E0537]: invalid predicate `a`
41- --> $DIR/cfg_select.rs:188 :5
41+ --> $DIR/cfg_select.rs:190 :5
4242 |
4343LL | a() => {}
4444 | ^^^
4545
4646error: expected one of `(`, `::`, `=>`, or `=`, found `+`
47- --> $DIR/cfg_select.rs:193 :7
47+ --> $DIR/cfg_select.rs:195 :7
4848 |
4949LL | a + 1 => {}
5050 | ^ expected one of `(`, `::`, `=>`, or `=`
5151
5252error: expected one of `(`, `::`, `=>`, or `=`, found `!`
53- --> $DIR/cfg_select.rs:199 :8
53+ --> $DIR/cfg_select.rs:201 :8
5454 |
5555LL | cfg!() => {}
5656 | ^ expected one of `(`, `::`, `=>`, or `=`
@@ -86,11 +86,17 @@ LL | _ => {}
8686warning: unreachable configuration predicate
8787 --> $DIR/cfg_select.rs:155:5
8888 |
89- LL | unix => {}
89+ LL | test => {}
9090 | ^^^^ this configuration predicate is never reached
9191
92+ warning: unreachable configuration predicate
93+ --> $DIR/cfg_select.rs:157:5
94+ |
95+ LL | _ => {}
96+ | ^ this configuration predicate is never reached
97+
9298warning: unexpected `cfg` condition name: `a`
93- --> $DIR/cfg_select.rs:193 :5
99+ --> $DIR/cfg_select.rs:195 :5
94100 |
95101LL | a + 1 => {}
96102 | ^ help: found config with similar value: `target_feature = "a"`
@@ -101,15 +107,15 @@ LL | a + 1 => {}
101107 = note: `#[warn(unexpected_cfgs)]` on by default
102108
103109warning: unexpected `cfg` condition name: `cfg`
104- --> $DIR/cfg_select.rs:199 :5
110+ --> $DIR/cfg_select.rs:201 :5
105111 |
106112LL | cfg!() => {}
107113 | ^^^
108114 |
109115 = help: to expect this configuration use `--check-cfg=cfg(cfg)`
110116 = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg.html> for more information about checking conditional configuration
111117
112- error: aborting due to 9 previous errors; 6 warnings emitted
118+ error: aborting due to 9 previous errors; 7 warnings emitted
113119
114120Some errors have detailed explanations: E0537, E0539.
115121For more information about an error, try `rustc --explain E0537`.
0 commit comments