if multiple -Z allow-features
are passed, only the last is used
#139947
Labels
A-CLI
Area: Command-line interface (CLI) to the compiler
C-bug
Category: This is a bug.
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: A hard error. It does not make sense to combine allow-features; should they be OR-d or AND-ed?
Instead, this happened: Neither an OR nor an AND. Instead the first flag was ignored altogether.
Meta
rustc --version --verbose
: rustc 1.88.0-nightly (78f2104 2025-04-16)The text was updated successfully, but these errors were encountered: