diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-11-27 11:57:29 +0100 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-11-27 11:57:29 +0100 |
| commit | dc65c6317a601dbc254d75df4fdf54aee6fbb01f (patch) | |
| tree | 5b6795435507c32fa17c9eb0ac9a1c62182a6450 /compiler | |
| parent | 159ba4ceabbb453bc77263f73f59887b5dfe7d72 (diff) | |
| download | rust-dc65c6317a601dbc254d75df4fdf54aee6fbb01f.tar.gz rust-dc65c6317a601dbc254d75df4fdf54aee6fbb01f.zip | |
Fix review comment
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_driver_impl/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs index 425dda5a1e1..0e6e4467288 100644 --- a/compiler/rustc_driver_impl/src/lib.rs +++ b/compiler/rustc_driver_impl/src/lib.rs @@ -511,9 +511,9 @@ fn make_input( Ok(Some(Input::Str { name, input })) } [ifile] => Ok(Some(Input::File(PathBuf::from(ifile)))), - _ => early_dcx.early_fatal(format!( + [ifile1, ifile2, ..] => early_dcx.early_fatal(format!( "multiple input filenames provided (first two filenames are `{}` and `{}`)", - free_matches[0], free_matches[1], + ifile1, ifile2 )), } } |
