@@ -12,9 +12,7 @@ use crate::core::build_steps::clippy::get_clippy_rules_in_order;
1212use crate :: core:: config:: { LldMode , Target , TargetSelection , TomlConfig } ;
1313
1414fn 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 ( ) )
1816}
1917
2018#[ test]
@@ -110,7 +108,6 @@ fn override_toml() {
110108 let config = Config :: parse_inner (
111109 & [
112110 "check" . to_owned ( ) ,
113- "--config=/does/not/exist" . to_owned ( ) ,
114111 "--set=change-id=1" . to_owned ( ) ,
115112 "--set=rust.lto=fat" . to_owned ( ) ,
116113 "--set=rust.deny-warnings=false" . to_owned ( ) ,
@@ -201,12 +198,7 @@ runner = "x86_64-runner"
201198#[ should_panic]
202199fn override_toml_duplicate ( ) {
203200 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 ( ) ] ,
210202 |& _| toml:: from_str ( "change-id = 0" ) . unwrap ( ) ,
211203 ) ;
212204}
0 commit comments