Skip to content

Commit 096edd4

Browse files
committed
Remove unnecessary argument
1 parent 4dca297 commit 096edd4

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

+1-4
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ fn run_compiler(
301301
RustcDefaultCalls::list_metadata(
302302
sess,
303303
&*compiler.codegen_backend().metadata_loader(),
304-
&matches,
305304
compiler.input(),
306305
)
307306
})
@@ -619,11 +618,9 @@ impl RustcDefaultCalls {
619618
pub fn list_metadata(
620619
sess: &Session,
621620
metadata_loader: &dyn MetadataLoader,
622-
matches: &getopts::Matches,
623621
input: &Input,
624622
) -> Compilation {
625-
let r = matches.opt_strs("Z");
626-
if r.iter().any(|s| *s == "ls") {
623+
if sess.opts.debugging_opts.ls {
627624
match *input {
628625
Input::File(ref ifile) => {
629626
let path = &(*ifile);

0 commit comments

Comments
 (0)