File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ sudo: false
5
5
script :
6
6
- python util/update_lints.py -c
7
7
- cargo build --features debugging
8
+ - rm -rf target/ Cargo.lock
8
9
- cargo test --features debugging
9
10
10
11
# only test regex_macros if it compiles
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " clippy"
3
- version = " 0.0.51 "
3
+ version = " 0.0.52 "
4
4
authors = [
5
5
" Manish Goregaokar <[email protected] >" ,
6
6
" Andre Bogus <[email protected] >" ,
@@ -18,16 +18,16 @@ name = "clippy"
18
18
plugin = true
19
19
20
20
[dependencies ]
21
- regex-syntax = " 0.2.2 "
21
+ regex-syntax = " 0.3.0 "
22
22
regex_macros = { version = " 0.1.28" , optional = true }
23
23
semver = " 0.2.1"
24
24
toml = " 0.1"
25
25
unicode-normalization = " 0.1"
26
26
27
27
[dev-dependencies ]
28
- compiletest_rs = " 0.0.11 "
28
+ compiletest_rs = " 0.1.0 "
29
29
lazy_static = " 0.1.15"
30
- regex = " 0.1.47 "
30
+ regex = " 0.1.56 "
31
31
rustc-serialize = " 0.3"
32
32
33
33
[features ]
Original file line number Diff line number Diff line change
1
+ #![ feature( test) ]
2
+
1
3
extern crate compiletest_rs as compiletest;
4
+ extern crate test;
2
5
3
- use std:: path:: Path ;
4
6
use std:: env:: var;
7
+ use std:: path:: PathBuf ;
8
+ use test:: TestPaths ;
5
9
6
10
#[ test]
7
11
fn dogfood ( ) {
@@ -20,5 +24,10 @@ fn dogfood() {
20
24
21
25
config. mode = cfg_mode;
22
26
23
- compiletest:: runtest:: run ( config, & Path :: new ( "src/lib.rs" ) ) ;
27
+ let paths = TestPaths {
28
+ base : PathBuf :: new ( ) ,
29
+ file : PathBuf :: from ( "src/lib.rs" ) ,
30
+ relative_dir : PathBuf :: new ( ) ,
31
+ } ;
32
+ compiletest:: runtest:: run ( config, & paths) ;
24
33
}
You can’t perform that action at this time.
0 commit comments