`RUSTFLAGS="--edition=2021" rustc src/main.rs` will still warn ``` `--edition` is unspecified, defaulting to `2015` while the latest is `2024`; it must be one of: <2015|2018|2021|2024|future> ``` obviously the message is nonsense in this context cc https://github.com/rust-lang/rust/pull/158102 https://github.com/rust-lang/rust/issues/160243
Activity
hanna-kruppe commentedon Oct 10, 2026
I don’t think
rustcknows or cares aboutRUSTFLAGS, that’s a Cargo-ism, isn’t it?matthiaskrgr commentedon Oct 10, 2026
aah yes I think you're right. closing then :)