Remove unnecessary argument
This commit is contained in:
parent
c752ee53ae
commit
673c1b6e49
1 changed files with 1 additions and 4 deletions
|
@ -308,7 +308,6 @@ fn run_compiler(
|
|||
RustcDefaultCalls::list_metadata(
|
||||
sess,
|
||||
&*compiler.codegen_backend().metadata_loader(),
|
||||
&matches,
|
||||
compiler.input(),
|
||||
)
|
||||
})
|
||||
|
@ -626,11 +625,9 @@ impl RustcDefaultCalls {
|
|||
pub fn list_metadata(
|
||||
sess: &Session,
|
||||
metadata_loader: &dyn MetadataLoader,
|
||||
matches: &getopts::Matches,
|
||||
input: &Input,
|
||||
) -> Compilation {
|
||||
let r = matches.opt_strs("Z");
|
||||
if r.iter().any(|s| *s == "ls") {
|
||||
if sess.opts.debugging_opts.ls {
|
||||
match *input {
|
||||
Input::File(ref ifile) => {
|
||||
let path = &(*ifile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue