How to switch compile options between stable/nightly in config.toml?

Having both stable and nightly Rust toolchain installed. And use config.toml rustflags to specify (-C... for stable) / (-Z... for nightly) compiling arguments; but after adding -Z flags the stable rust stop working due to unrecognized -Z options.

Q: How to config nightly features only when using nightly toolchain in config.toml file? Is there a way or conditional directive to help it ..

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.