File tree Expand file tree Collapse file tree 7 files changed +23
-0
lines changed Expand file tree Collapse file tree 7 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 11#![ feature( test) ] // compiletest_rs requires this attribute
22#![ feature( once_cell) ]
3+ #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
4+ #![ warn( rust_2018_idioms, unused_lifetimes) ]
35
46use compiletest_rs as compiletest;
57use compiletest_rs:: common:: Mode as TestMode ;
@@ -31,11 +33,17 @@ static TEST_DEPENDENCIES: &[&str] = &[
3133
3234// Test dependencies may need an `extern crate` here to ensure that they show up
3335// in the depinfo file (otherwise cargo thinks they are unused)
36+ #[ allow( unused_extern_crates) ]
3437extern crate clippy_utils;
38+ #[ allow( unused_extern_crates) ]
3539extern crate derive_new;
40+ #[ allow( unused_extern_crates) ]
3641extern crate if_chain;
42+ #[ allow( unused_extern_crates) ]
3743extern crate itertools;
44+ #[ allow( unused_extern_crates) ]
3845extern crate quote;
46+ #[ allow( unused_extern_crates) ]
3947extern crate syn;
4048
4149fn host_lib ( ) -> PathBuf {
Original file line number Diff line number Diff line change 66// Dogfood cannot run on Windows
77#![ cfg( not( windows) ) ]
88#![ feature( once_cell) ]
9+ #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
10+ #![ warn( rust_2018_idioms, unused_lifetimes) ]
911
1012use std:: lazy:: SyncLazy ;
1113use 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+
14use std:: path:: PathBuf ;
25use std:: process:: Command ;
36
Original file line number Diff line number Diff line change 11#![ cfg( feature = "integration" ) ]
2+ #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
3+ #![ warn( rust_2018_idioms, unused_lifetimes) ]
24
35use std:: env;
46use 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+
14use std:: ffi:: OsStr ;
25use std:: path:: PathBuf ;
36
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) ]
13#![ allow( clippy:: assertions_on_constants) ]
24
35use 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) ]
13#![ allow( clippy:: single_match_else) ]
4+
25use rustc_tools_util:: VersionInfo ;
36
47#[ test]
You can’t perform that action at this time.
0 commit comments