diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-03-28 19:23:21 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-05-02 18:00:20 +0200 |
| commit | 673c1b6e496432e68bca148fcfdae647ad21befb (patch) | |
| tree | 2738761991aa909d981c2746f10846a497f3b6fb | |
| parent | c752ee53ae52dcb552f964e30cf57aa5f48a62f8 (diff) | |
| download | rust-673c1b6e496432e68bca148fcfdae647ad21befb.tar.gz rust-673c1b6e496432e68bca148fcfdae647ad21befb.zip | |
Remove unnecessary argument
| -rw-r--r-- | compiler/rustc_driver/src/lib.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs index 198589a1090..97ba1aad0f3 100644 --- a/compiler/rustc_driver/src/lib.rs +++ b/compiler/rustc_driver/src/lib.rs @@ -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); |
