compiletest: we should not allow revision names that collide with builtin cfg names #128964
Labels
A-compiletest
Area: The compiletest test runner
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Example: https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/error.3A.20unexpected.20.60--cfg.20windows.60.20flag/near/459869068
compiletest will try to set a
--cfg <revision_name>
that matches the revision name, but this goes poorly if the<revision_name>
collides with a builtin cfg. Builtin cfgs can be found atrust/compiler/rustc_session/src/config/cfg.rs
Line 90 in c9bd03c
test
revision name because it has special meaningcfg(test)
.The text was updated successfully, but these errors were encountered: