about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-12-04 19:20:01 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-12-04 19:20:01 +1100
commite52f5bf16dea36f302ad33af92518dcc8083012f (patch)
tree77ba38af1c60fd95cb794fbf021089ec8e43948d /compiler/rustc_driver_impl/src
parente93e096cc88728337fb41ff74431ebe71a1b4663 (diff)
downloadrust-e52f5bf16dea36f302ad33af92518dcc8083012f.tar.gz
rust-e52f5bf16dea36f302ad33af92518dcc8083012f.zip
Remove `-Zshow-span`.
It's very old (added in #12087). It's strange, and it's not clear what
its use cases are. It only works with the crate root file because it
runs before expansion. I suspect it won't be missed.
Diffstat (limited to 'compiler/rustc_driver_impl/src')
-rw-r--r--compiler/rustc_driver_impl/src/lib.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs
index 85eaae8a104..550a97c2c79 100644
--- a/compiler/rustc_driver_impl/src/lib.rs
+++ b/compiler/rustc_driver_impl/src/lib.rs
@@ -418,9 +418,7 @@ fn run_compiler(
                 return early_exit();
             }
 
-            if sess.opts.unstable_opts.parse_crate_root_only
-                || sess.opts.unstable_opts.show_span.is_some()
-            {
+            if sess.opts.unstable_opts.parse_crate_root_only {
                 return early_exit();
             }