Rust upgrade to rustc 1.9.0-nightly (74b886ab1 2016-03-13), update compiletest
This commit is contained in:
parent
4fa6f49f74
commit
6c7a2ffdb5
|
@ -5,6 +5,7 @@ sudo: false
|
|||
script:
|
||||
- python util/update_lints.py -c
|
||||
- cargo build --features debugging
|
||||
- rm -rf target/ Cargo.lock
|
||||
- cargo test --features debugging
|
||||
|
||||
# only test regex_macros if it compiles
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "clippy"
|
||||
version = "0.0.51"
|
||||
version = "0.0.52"
|
||||
authors = [
|
||||
"Manish Goregaokar <manishsmail@gmail.com>",
|
||||
"Andre Bogus <bogusandre@gmail.com>",
|
||||
|
@ -18,16 +18,16 @@ name = "clippy"
|
|||
plugin = true
|
||||
|
||||
[dependencies]
|
||||
regex-syntax = "0.2.2"
|
||||
regex-syntax = "0.3.0"
|
||||
regex_macros = { version = "0.1.28", optional = true }
|
||||
semver = "0.2.1"
|
||||
toml = "0.1"
|
||||
unicode-normalization = "0.1"
|
||||
|
||||
[dev-dependencies]
|
||||
compiletest_rs = "0.0.11"
|
||||
compiletest_rs = "0.1.0"
|
||||
lazy_static = "0.1.15"
|
||||
regex = "0.1.47"
|
||||
regex = "0.1.56"
|
||||
rustc-serialize = "0.3"
|
||||
|
||||
[features]
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
extern crate compiletest_rs as compiletest;
|
||||
#![feature(test)]
|
||||
|
||||
extern crate compiletest_rs as compiletest;
|
||||
extern crate test;
|
||||
|
||||
use std::path::Path;
|
||||
use std::env::var;
|
||||
use std::path::PathBuf;
|
||||
use test::TestPaths;
|
||||
|
||||
#[test]
|
||||
fn dogfood() {
|
||||
|
@ -20,5 +24,10 @@ fn dogfood() {
|
|||
|
||||
config.mode = cfg_mode;
|
||||
|
||||
compiletest::runtest::run(config, &Path::new("src/lib.rs"));
|
||||
let paths = TestPaths {
|
||||
base: PathBuf::new(),
|
||||
file: PathBuf::from("src/lib.rs"),
|
||||
relative_dir: PathBuf::new(),
|
||||
};
|
||||
compiletest::runtest::run(config, &paths);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue