Skip to content

Commit

Permalink
Don't print unsupported split-debuginfo modes with -Zunstable-options
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexendoo committed Jun 13, 2023
1 parent caeea3f commit fda3c9f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions compiler/rustc_driver_impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
}
}
Expand Down

0 comments on commit fda3c9f

Please sign in to comment.