Closed
Description
List meta items are not allowed in cfg
specs because the compiler reserves them for built-in predicates like any
.
So for example you can't write
foo.rs:1:7: 1:16 error: invalid predicate `foo`
foo.rs:1 #[cfg(foo(bar))]
^~~~~~~~~
You can though write `rustc --cfg "foo(bar))". This should be similarly rejected.
cc #31278