File tree 7 files changed +23
-0
lines changed
7 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1
1
#![ feature( test) ] // compiletest_rs requires this attribute
2
2
#![ feature( once_cell) ]
3
+ #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
4
+ #![ warn( rust_2018_idioms, unused_lifetimes) ]
3
5
4
6
use compiletest_rs as compiletest;
5
7
use compiletest_rs:: common:: Mode as TestMode ;
@@ -31,11 +33,17 @@ static TEST_DEPENDENCIES: &[&str] = &[
31
33
32
34
// Test dependencies may need an `extern crate` here to ensure that they show up
33
35
// in the depinfo file (otherwise cargo thinks they are unused)
36
+ #[ allow( unused_extern_crates) ]
34
37
extern crate clippy_utils;
38
+ #[ allow( unused_extern_crates) ]
35
39
extern crate derive_new;
40
+ #[ allow( unused_extern_crates) ]
36
41
extern crate if_chain;
42
+ #[ allow( unused_extern_crates) ]
37
43
extern crate itertools;
44
+ #[ allow( unused_extern_crates) ]
38
45
extern crate quote;
46
+ #[ allow( unused_extern_crates) ]
39
47
extern crate syn;
40
48
41
49
fn host_lib ( ) -> PathBuf {
Original file line number Diff line number Diff line change 6
6
// Dogfood cannot run on Windows
7
7
#![ cfg( not( windows) ) ]
8
8
#![ feature( once_cell) ]
9
+ #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
10
+ #![ warn( rust_2018_idioms, unused_lifetimes) ]
9
11
10
12
use std:: lazy:: SyncLazy ;
11
13
use std:: path:: PathBuf ;
Original file line number Diff line number Diff line change
1
+ #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
2
+ #![ warn( rust_2018_idioms, unused_lifetimes) ]
3
+
1
4
use std:: path:: PathBuf ;
2
5
use std:: process:: Command ;
3
6
Original file line number Diff line number Diff line change 1
1
#![ cfg( feature = "integration" ) ]
2
+ #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
3
+ #![ warn( rust_2018_idioms, unused_lifetimes) ]
2
4
3
5
use std:: env;
4
6
use std:: ffi:: OsStr ;
Original file line number Diff line number Diff line change
1
+ #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
2
+ #![ warn( rust_2018_idioms, unused_lifetimes) ]
3
+
1
4
use std:: ffi:: OsStr ;
2
5
use std:: path:: PathBuf ;
3
6
Original file line number Diff line number Diff line change
1
+ #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
2
+ #![ warn( rust_2018_idioms, unused_lifetimes) ]
1
3
#![ allow( clippy:: assertions_on_constants) ]
2
4
3
5
use std:: fs:: { self , DirEntry } ;
Original file line number Diff line number Diff line change
1
+ #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
2
+ #![ warn( rust_2018_idioms, unused_lifetimes) ]
1
3
#![ allow( clippy:: single_match_else) ]
4
+
2
5
use rustc_tools_util:: VersionInfo ;
3
6
4
7
#[ test]
You can’t perform that action at this time.
0 commit comments