Skip to content

Commit 673c1b6

Browse files
committed
Remove unnecessary argument
1 parent c752ee5 commit 673c1b6

File tree

1 file changed

+1
-4
lines changed
  • compiler/rustc_driver/src

1 file changed

+1
-4
lines changed

compiler/rustc_driver/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,6 @@ fn run_compiler(
308308
RustcDefaultCalls::list_metadata(
309309
sess,
310310
&*compiler.codegen_backend().metadata_loader(),
311-
&matches,
312311
compiler.input(),
313312
)
314313
})
@@ -626,11 +625,9 @@ impl RustcDefaultCalls {
626625
pub fn list_metadata(
627626
sess: &Session,
628627
metadata_loader: &dyn MetadataLoader,
629-
matches: &getopts::Matches,
630628
input: &Input,
631629
) -> Compilation {
632-
let r = matches.opt_strs("Z");
633-
if r.iter().any(|s| *s == "ls") {
630+
if sess.opts.debugging_opts.ls {
634631
match *input {
635632
Input::File(ref ifile) => {
636633
let path = &(*ifile);

0 commit comments

Comments
 (0)