`RUSTFLAGS="-Znext-solver"` doesn't take effect when cross-compiling
⚓ Rust 📅 2026-05-30 👤 surdeus 👁️ 1I'm building a crate with cargo rustc like this:
And it worked well so far. Now I needed to add -Znext-solver to RUSTFLAGS, but it doesn't have effect, I'm still getting this from dependencies:
error: `generic_const_args` requires -Znext-solver=globally to be enabled
--> crates/shared/ab-merkle-tree/src/lib.rs:36:5
|
36 | generic_const_args,
| ^^^^^^^^^^^^^^^^^^
|
= help: enable all of these features
I'm quite confused by this since --cfg flags definitely work, but -Znext-solver clearly doesn't.
What am I missing?
2 posts - 2 participants
🏷️ Rust_feed