about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-11-29 10:19:00 +0100
committerGitHub <noreply@github.com>2024-11-29 10:19:00 +0100
commitce52b7b3d82eef4aca24d4f0cc9e22057fe3f755 (patch)
tree783ea0784cd55c9270f8707c0fb9b7a795f157a7 /compiler/rustc_driver_impl
parent72cf40d9edd4d8172f5e1ff58f6cafe9734b2e2a (diff)
parentaccdfa1e526af99c4c60412a12a9a8253eab5984 (diff)
downloadrust-ce52b7b3d82eef4aca24d4f0cc9e22057fe3f755.tar.gz
rust-ce52b7b3d82eef4aca24d4f0cc9e22057fe3f755.zip
Rollup merge of #133590 - nnethercote:rename-parse-only, r=estebank
Rename `-Zparse-only`

It's a misleading name.

r? ````@estebank````
Diffstat (limited to 'compiler/rustc_driver_impl')
-rw-r--r--compiler/rustc_driver_impl/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs
index 005053e4508..85eaae8a104 100644
--- a/compiler/rustc_driver_impl/src/lib.rs
+++ b/compiler/rustc_driver_impl/src/lib.rs
@@ -418,7 +418,9 @@ fn run_compiler(
                 return early_exit();
             }
 
-            if sess.opts.unstable_opts.parse_only || sess.opts.unstable_opts.show_span.is_some() {
+            if sess.opts.unstable_opts.parse_crate_root_only
+                || sess.opts.unstable_opts.show_span.is_some()
+            {
                 return early_exit();
             }