]> git.lizzy.rs Git - rust.git/commitdiff
Rustup to *rustc 1.13.0-nightly (cbe4de78e 2016-09-05)*
authormcarton <cartonmartin+git@gmail.com>
Tue, 6 Sep 2016 17:04:38 +0000 (19:04 +0200)
committermcarton <cartonmartin+git@gmail.com>
Tue, 6 Sep 2016 17:04:38 +0000 (19:04 +0200)
src/main.rs

index efe6459f5877b405d2dce0386ee2a5e7a0bf87bb..120fa247ba7dd1077a24c59b4f0965b91d0adb31 100644 (file)
@@ -72,7 +72,7 @@ fn build_controller(&mut self, sess: &Session, matches: &getopts::Matches) -> dr
             let old = std::mem::replace(&mut control.after_parse.callback, box |_| {});
             control.after_parse.callback = Box::new(move |state| {
                 {
-                    let mut registry = rustc_plugin::registry::Registry::new(state.session, state.krate.as_ref().expect("at this compilation stage the krate must be parsed"));
+                    let mut registry = rustc_plugin::registry::Registry::new(state.session, state.krate.as_ref().expect("at this compilation stage the krate must be parsed").span);
                     registry.args_hidden = Some(Vec::new());
                     clippy_lints::register_plugins(&mut registry);