Skip to content

Commit 30ac7e7

Browse files
committed
Fixup #27046 with pattern bindings
1 parent 2a74fa3 commit 30ac7e7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/librustc_driver/lib.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ pub trait CompilerCalls<'a> {
202202
// be called straight after options have been parsed but before anything
203203
// else (e.g., selecting input and output).
204204
fn early_callback(&mut self,
205-
&getopts::Matches,
206-
&diagnostics::registry::Registry)
205+
_: &getopts::Matches,
206+
_: &diagnostics::registry::Registry)
207207
-> Compilation {
208208
Compilation::Continue
209209
}
@@ -212,11 +212,11 @@ pub trait CompilerCalls<'a> {
212212
// be called just before actual compilation starts (and before build_controller
213213
// is called), after all arguments etc. have been completely handled.
214214
fn late_callback(&mut self,
215-
&getopts::Matches,
216-
&Session,
217-
&Input,
218-
&Option<PathBuf>,
219-
&Option<PathBuf>)
215+
_: &getopts::Matches,
216+
_: &Session,
217+
_: &Input,
218+
_: &Option<PathBuf>,
219+
_: &Option<PathBuf>)
220220
-> Compilation {
221221
Compilation::Continue
222222
}
@@ -235,11 +235,11 @@ pub trait CompilerCalls<'a> {
235235
// emitting error messages. Returning None will cause compilation to stop
236236
// at this point.
237237
fn no_input(&mut self,
238-
&getopts::Matches,
239-
&config::Options,
240-
&Option<PathBuf>,
241-
&Option<PathBuf>,
242-
&diagnostics::registry::Registry)
238+
_: &getopts::Matches,
239+
_: &config::Options,
240+
_: &Option<PathBuf>,
241+
_: &Option<PathBuf>,
242+
_: &diagnostics::registry::Registry)
243243
-> Option<(Input, Option<PathBuf>)> {
244244
None
245245
}

0 commit comments

Comments
 (0)