-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
[ 101s] ---- src/cfg.rs - if_cfg (line 54) stdout ----
[ 101s] error: unexpected end of macro invocation
[ 101s] --> src/cfg.rs:59:2
[ 101s] |
[ 101s] 6 | })
[ 101s] | ^ missing tokens in macro arguments
[ 101s]
[ 101s] error: aborting due to previous error
[ 101s]
[ 101s] Couldn't compile the test.
[ 101s]
[ 101s] failures:
[ 101s] src/cfg.rs - if_cfg (line 54)
Activity
cuviper commentedon Feb 18, 2020
I believe this is a consequence of a change to
meta
parsing that became stable in Rust 1.40.rust-lang/rust#63674
rust-mac/src/cfg.rs
Lines 56 to 59 in 66afc66
So the whole
test { ... }
now gets consumed by the$cfg:meta
matcher, and then the macro thinks it's missing the$t:block
.There was a crater run for that Rust change which showed 0 regressions. However, the
mac
crate was masked because of existing errors fromdeny(warnings)
:I'll note this upstream for posterity, but I'm sure it's too late to fix this.
If you care to change syntax, maybe you can use a separator like
$cfg:meta => $t:block
.meta
matcher rust-lang/rust#63674