`RUSTFLAGS="-Znext-solver"` doesn't take effect when cross-compiling

54 · Users Rust Lang · May 30, 2026, 2:23 p.m.
Summary
The blog post discusses an issue faced when cross-compiling a Rust crate, specifically the inability to enable the `-Znext-solver` flag via `RUSTFLAGS`, which results in compilation errors related to generic constant arguments. The author shares their troubleshooting experience and seeks clarification on how to properly apply the flag in their `cargo rustc` command.