1
Fork 0

don't elide shared parts of types in diagnostics when --verbose is passed

this also changes some parts of lifetime printing, which previously were not gated behind `-Z verbose`
This commit is contained in:
jyn 2023-12-19 13:24:05 -05:00 committed by jyn
parent b5d8361909
commit cb6d033316
8 changed files with 72 additions and 21 deletions

View file

@ -1116,6 +1116,7 @@ impl Default for Options {
working_dir: RealFileName::LocalPath(std::env::current_dir().unwrap()),
color: ColorConfig::Auto,
logical_env: FxIndexMap::default(),
verbose: false,
}
}
}
@ -2916,6 +2917,8 @@ pub fn build_session_options(early_dcx: &mut EarlyDiagCtxt, matches: &getopts::M
RealFileName::LocalPath(path.into_owned())
};
let verbose = matches.opt_present("verbose") || unstable_opts.verbose_internals;
Options {
assert_incr_state,
crate_types,
@ -2957,6 +2960,7 @@ pub fn build_session_options(early_dcx: &mut EarlyDiagCtxt, matches: &getopts::M
working_dir,
color,
logical_env,
verbose,
}
}

View file

@ -223,6 +223,8 @@ top_level_options!(
/// The (potentially remapped) working directory
working_dir: RealFileName [TRACKED],
color: ColorConfig [UNTRACKED],
verbose: bool [UNTRACKED],
}
);