diff --git a/CHANGELOG.md b/CHANGELOG.md index 725cdcc10b8a..9e4097c09964 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Change Log All notable changes to this project will be documented in this file. +## 0.0.82 — 2016-08-17 +* Rustup to *rustc 1.12.0-nightly (197be89f3 2016-08-15)* + ## 0.0.81 - 2016-08-14 * Rustup to *rustc 1.12.0-nightly (1deb02ea6 2016-08-12)* * New lints: [`eval_order_dependence`], [`mixed_case_hex_literals`], [`unseparated_literal_suffix`] diff --git a/Cargo.toml b/Cargo.toml index 2f1d9571e46a..61d2e8bec6cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clippy" -version = "0.0.81" +version = "0.0.82" authors = [ "Manish Goregaokar ", "Andre Bogus ", @@ -25,11 +25,11 @@ test = false [dependencies] # begin automatic update -clippy_lints = { version = "0.0.81", path = "clippy_lints" } +clippy_lints = { version = "0.0.82", path = "clippy_lints" } # end automatic update [dev-dependencies] -compiletest_rs = "0.2.0" +compiletest_rs = "0.2.1" lazy_static = "0.1.15" regex = "0.1.71" rustc-serialize = "0.3" diff --git a/clippy_lints/Cargo.toml b/clippy_lints/Cargo.toml index dd2bcc7cd71b..896f4a6fb926 100644 --- a/clippy_lints/Cargo.toml +++ b/clippy_lints/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "clippy_lints" # begin automatic update -version = "0.0.81" +version = "0.0.82" # end automatic update authors = [ "Manish Goregaokar ", diff --git a/src/main.rs b/src/main.rs index 9541e70ecc0b..e5043c927bb8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,6 +15,7 @@ use rustc::session::{config, Session}; use rustc::session::config::{Input, ErrorOutputType}; use std::path::PathBuf; use std::process::Command; +use syntax::ast; use clippy_lints::utils::cargo; @@ -36,28 +37,31 @@ impl<'a> CompilerCalls<'a> for ClippyCompilerCalls { fn early_callback(&mut self, matches: &getopts::Matches, sopts: &config::Options, + cfg: &ast::CrateConfig, descriptions: &rustc_errors::registry::Registry, output: ErrorOutputType) -> Compilation { - self.default.early_callback(matches, sopts, descriptions, output) + self.default.early_callback(matches, sopts, cfg, descriptions, output) } fn no_input(&mut self, matches: &getopts::Matches, sopts: &config::Options, + cfg: &ast::CrateConfig, odir: &Option, ofile: &Option, descriptions: &rustc_errors::registry::Registry) -> Option<(Input, Option)> { - self.default.no_input(matches, sopts, odir, ofile, descriptions) + self.default.no_input(matches, sopts, cfg, odir, ofile, descriptions) } fn late_callback(&mut self, matches: &getopts::Matches, sess: &Session, + cfg: &ast::CrateConfig, input: &Input, odir: &Option, ofile: &Option) -> Compilation { - self.default.late_callback(matches, sess, input, odir, ofile) + self.default.late_callback(matches, sess, cfg, input, odir, ofile) } fn build_controller(&mut self, sess: &Session, matches: &getopts::Matches) -> driver::CompileController<'a> { let mut control = self.default.build_controller(sess, matches);