rust/compiler/rustc_session/src
Michael Goulet bb92131dab
Rollup merge of #133159 - Zalathar:unstable-options-no-value, r=jieyouxu
Don't allow `-Zunstable-options` to take a value

Passing an explicit boolean value (`-Zunstable-options=on`, `off` etc.) sometimes appears to work, but actually puts the compiler into an unintended state where unstable _options_ are still forbidden, but unstable values of _some_ stable options are allowed.

This is a result of `-Zunstable-options` being checked in multiple different places, in slightly different ways. Fixing the checks in `config::nightly_options` to understand boolean values would be non-trivial, so for now it's easier to make things consistent by forbidding values in the `-Z` parser.

---

There were a few uses of this in tests, which happened to work because they were tests of unstable values.
2024-11-22 21:07:40 -05:00
..
config Overhaul the -l option parser (for linking to native libs) 2024-11-18 15:55:12 +11:00
code_stats.rs compiler: Add rustc_abi dependence to the compiler 2024-10-27 21:10:58 -07:00
config.rs Rollup merge of #130236 - yaahc:unstable-feature-usage, r=estebank 2024-11-21 11:58:36 +01:00
cstore.rs Rollup merge of #130586 - dpaoliello:fixrawdylib, r=wesleywiser 2024-11-07 18:48:20 -08:00
errors.rs Rename target triple to target tuple in many places in the compiler 2024-11-02 21:29:59 +01:00
filesearch.rs rustc_metadata: Preprocess search paths for better performance 2024-11-15 10:35:33 +01:00
lib.rs Rollup merge of #129087 - slanterns:option_get_or_insert_default, r=dtolnay 2024-09-27 19:07:58 +02:00
options.rs Rollup merge of #133159 - Zalathar:unstable-options-no-value, r=jieyouxu 2024-11-22 21:07:40 -05:00
output.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
parse.rs give a hint which feature is missing 2024-11-09 23:32:06 +01:00
search_paths.rs rustc_metadata: Preprocess search paths for better performance 2024-11-15 10:35:33 +01:00
session.rs rustc_metadata: Preprocess search paths for better performance 2024-11-15 10:35:33 +01:00
utils.rs remove a couple of redundant String to String conversion 2024-10-12 22:07:46 +02:00
version.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00