-
-
Notifications
You must be signed in to change notification settings - Fork 15k
--cfg accepts invalid cfgs #31495
Copy link
Copy link
Closed
Labels
A-driverArea: rustc_driver that ties everything together into the `rustc` compilerArea: rustc_driver that ties everything together into the `rustc` compilerE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Metadata
Metadata
Assignees
Labels
A-driverArea: rustc_driver that ties everything together into the `rustc` compilerArea: rustc_driver that ties everything together into the `rustc` compilerE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
List meta items are not allowed in
cfgspecs because the compiler reserves them for built-in predicates likeany.So for example you can't write
You can though write `rustc --cfg "foo(bar))". This should be similarly rejected.
cc #31278