diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-11-29 06:05:56 +1100 | 
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-11-29 06:10:15 +1100 | 
| commit | 76adf05cfbffd78fc3f9e123634e992a70798e8f (patch) | |
| tree | 4b336dfb181acee20f72f418175b9c37cb5f83bd /compiler/rustc_interface/src/tests.rs | |
| parent | 6b6a867ae9eac4e78d041ac4ee84be1072a48cf7 (diff) | |
| download | rust-76adf05cfbffd78fc3f9e123634e992a70798e8f.tar.gz rust-76adf05cfbffd78fc3f9e123634e992a70798e8f.zip | |
Rename `-Zparse-only`.
I was surprised to find that running with `-Zparse-only` only parses the crate root file. Other files aren't parsed because that happens later during expansion. This commit renames the option and updates the help message to make this clearer.
Diffstat (limited to 'compiler/rustc_interface/src/tests.rs')
| -rw-r--r-- | compiler/rustc_interface/src/tests.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs index 6beae14100d..c1b2d856252 100644 --- a/compiler/rustc_interface/src/tests.rs +++ b/compiler/rustc_interface/src/tests.rs @@ -712,7 +712,7 @@ fn test_unstable_options_tracking_hash() { untracked!(no_analysis, true); untracked!(no_leak_check, true); untracked!(no_parallel_backend, true); - untracked!(parse_only, true); + untracked!(parse_crate_root_only, true); // `pre_link_arg` is omitted because it just forwards to `pre_link_args`. untracked!(pre_link_args, vec![String::from("abc"), String::from("def")]); untracked!(print_codegen_stats, true); | 
