]> git.lizzy.rs Git - rust.git/commitdiff
Fixup #27046 with pattern bindings
authorManish Goregaokar <manishsmail@gmail.com>
Thu, 16 Jul 2015 09:51:59 +0000 (15:21 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Thu, 16 Jul 2015 11:07:40 +0000 (16:37 +0530)
src/librustc_driver/lib.rs

index a8856e42da4328a19797c6bfb043fc509dfab10e..873950b0be893a9f93c835af860cf7413266a6e9 100644 (file)
@@ -202,8 +202,8 @@ pub trait CompilerCalls<'a> {
     // be called straight after options have been parsed but before anything
     // else (e.g., selecting input and output).
     fn early_callback(&mut self,
-                      &getopts::Matches,
-                      &diagnostics::registry::Registry)
+                      _: &getopts::Matches,
+                      _: &diagnostics::registry::Registry)
                       -> Compilation {
         Compilation::Continue
     }
@@ -212,11 +212,11 @@ fn early_callback(&mut self,
     // be called just before actual compilation starts (and before build_controller
     // is called), after all arguments etc. have been completely handled.
     fn late_callback(&mut self,
-                     &getopts::Matches,
-                     &Session,
-                     &Input,
-                     &Option<PathBuf>,
-                     &Option<PathBuf>)
+                     _: &getopts::Matches,
+                     _: &Session,
+                     _: &Input,
+                     _: &Option<PathBuf>,
+                     _: &Option<PathBuf>)
                      -> Compilation {
         Compilation::Continue
     }
@@ -235,11 +235,11 @@ fn some_input(&mut self, input: Input, input_path: Option<PathBuf>)
     // emitting error messages. Returning None will cause compilation to stop
     // at this point.
     fn no_input(&mut self,
-                &getopts::Matches,
-                &config::Options,
-                &Option<PathBuf>,
-                &Option<PathBuf>,
-                &diagnostics::registry::Registry)
+                _: &getopts::Matches,
+                _: &config::Options,
+                _: &Option<PathBuf>,
+                _: &Option<PathBuf>,
+                _: &diagnostics::registry::Registry)
                 -> Option<(Input, Option<PathBuf>)> {
         None
     }