From fda3c9f4a8bd8daf9f5b3c7e4f45079f347a0ba5 Mon Sep 17 00:00:00 2001 From: Alex Macleod Date: Tue, 13 Jun 2023 11:57:58 +0000 Subject: [PATCH] Don't print unsupported split-debuginfo modes with -Zunstable-options --- compiler/rustc_driver_impl/src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs index 5b75205442ba1..87b58c4c71eb0 100644 --- a/compiler/rustc_driver_impl/src/lib.rs +++ b/compiler/rustc_driver_impl/src/lib.rs @@ -764,9 +764,7 @@ fn print_crate_info( use rustc_target::spec::SplitDebuginfo::{Off, Packed, Unpacked}; for split in &[Off, Packed, Unpacked] { - let stable = sess.target.options.supported_split_debuginfo.contains(split); - let unstable_ok = sess.unstable_options(); - if stable || unstable_ok { + if sess.target.options.supported_split_debuginfo.contains(split) { safe_println!("{split}"); } }