Skip to content

Commit b6d0493

Browse files
committed
Inline and remove select_debuginfo_compression.
It's trivial and has a single callsite.
1 parent 20046ce commit b6d0493

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

compiler/rustc_session/src/config.rs

+1-9
Original file line numberDiff line numberDiff line change
@@ -2294,13 +2294,6 @@ fn select_debuginfo(matches: &getopts::Matches, cg: &CodegenOptions) -> DebugInf
22942294
if max_g > max_c { DebugInfo::Full } else { cg.debuginfo }
22952295
}
22962296

2297-
fn select_debuginfo_compression(
2298-
_handler: &EarlyErrorHandler,
2299-
unstable_opts: &UnstableOptions,
2300-
) -> DebugInfoCompression {
2301-
unstable_opts.debuginfo_compression
2302-
}
2303-
23042297
pub(crate) fn parse_assert_incr_state(
23052298
handler: &EarlyErrorHandler,
23062299
opt_assertion: &Option<String>,
@@ -2799,8 +2792,7 @@ pub fn build_session_options(
27992792
// for more details.
28002793
let debug_assertions = cg.debug_assertions.unwrap_or(opt_level == OptLevel::No);
28012794
let debuginfo = select_debuginfo(matches, &cg);
2802-
let debuginfo_compression: DebugInfoCompression =
2803-
select_debuginfo_compression(handler, &unstable_opts);
2795+
let debuginfo_compression = unstable_opts.debuginfo_compression;
28042796

28052797
let mut search_paths = vec![];
28062798
for s in &matches.opt_strs("L") {

0 commit comments

Comments
 (0)