@@ -12,9 +12,7 @@ use crate::core::build_steps::clippy::get_clippy_rules_in_order;
12
12
use crate :: core:: config:: { LldMode , Target , TargetSelection , TomlConfig } ;
13
13
14
14
fn parse ( config : & str ) -> Config {
15
- Config :: parse_inner ( & [ "check" . to_string ( ) , "--config=/does/not/exist" . to_string ( ) ] , |& _| {
16
- toml:: from_str ( & config) . unwrap ( )
17
- } )
15
+ Config :: parse_inner ( & [ "check" . to_string ( ) ] , |& _| toml:: from_str ( & config) . unwrap ( ) )
18
16
}
19
17
20
18
#[ test]
@@ -110,7 +108,6 @@ fn override_toml() {
110
108
let config = Config :: parse_inner (
111
109
& [
112
110
"check" . to_owned ( ) ,
113
- "--config=/does/not/exist" . to_owned ( ) ,
114
111
"--set=change-id=1" . to_owned ( ) ,
115
112
"--set=rust.lto=fat" . to_owned ( ) ,
116
113
"--set=rust.deny-warnings=false" . to_owned ( ) ,
@@ -201,12 +198,7 @@ runner = "x86_64-runner"
201
198
#[ should_panic]
202
199
fn override_toml_duplicate ( ) {
203
200
Config :: parse_inner (
204
- & [
205
- "check" . to_owned ( ) ,
206
- "--config=/does/not/exist" . to_string ( ) ,
207
- "--set=change-id=1" . to_owned ( ) ,
208
- "--set=change-id=2" . to_owned ( ) ,
209
- ] ,
201
+ & [ "check" . to_owned ( ) , "--set=change-id=1" . to_owned ( ) , "--set=change-id=2" . to_owned ( ) ] ,
210
202
|& _| toml:: from_str ( "change-id = 0" ) . unwrap ( ) ,
211
203
) ;
212
204
}
0 commit comments