mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-16 17:58:14 +00:00
Merge pull request #1167 from Manishearth/rustup
Rustup to rustc 1.12.0-nightly (197be89f3 2016-08-15)
This commit is contained in:
commit
3cf82da1ea
4 changed files with 14 additions and 7 deletions
|
@ -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`]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "clippy"
|
||||
version = "0.0.81"
|
||||
version = "0.0.82"
|
||||
authors = [
|
||||
"Manish Goregaokar <manishsmail@gmail.com>",
|
||||
"Andre Bogus <bogusandre@gmail.com>",
|
||||
|
@ -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"
|
||||
|
|
|
@ -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 <manishsmail@gmail.com>",
|
||||
|
|
10
src/main.rs
10
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<PathBuf>,
|
||||
ofile: &Option<PathBuf>,
|
||||
descriptions: &rustc_errors::registry::Registry)
|
||||
-> Option<(Input, Option<PathBuf>)> {
|
||||
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<PathBuf>,
|
||||
ofile: &Option<PathBuf>)
|
||||
-> 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);
|
||||
|
|
Loading…
Reference in a new issue