@@ -15,16 +15,16 @@ macro_rules! x {
1515 $what, '(' , $( $who, ) * ')' , "'" , "[..]" )
1616 }
1717 } } ;
18- ( $tool: tt => $what: tt of $who: tt with $first_value: tt $( $other_values: tt) * ) => { {
18+ ( $tool: tt => $what: tt of $who: tt with $( $ first_value: tt $( $other_values: tt) * ) ? ) => { {
1919 #[ cfg( windows) ]
2020 {
2121 concat!( "[RUNNING] [..]" , $tool, "[..] --check-cfg \" " ,
22- $what, '(' , $who, ", values(" , "/\" " , $first_value, "/\" " , $( ", " , "/\" " , $other_values, "/\" " , ) * "))" , '"' , "[..]" )
22+ $what, '(' , $who, ", values(" , $ ( "/\" " , $first_value, "/\" " , $( ", " , "/\" " , $other_values, "/\" " , ) * ) * "))" , '"' , "[..]" )
2323 }
2424 #[ cfg( not( windows) ) ]
2525 {
2626 concat!( "[RUNNING] [..]" , $tool, "[..] --check-cfg '" ,
27- $what, '(' , $who, ", values(" , "\" " , $first_value, "\" " , $( ", " , "\" " , $other_values, "\" " , ) * "))" , "'" , "[..]" )
27+ $what, '(' , $who, ", values(" , $ ( "\" " , $first_value, "\" " , $( ", " , "\" " , $other_values, "\" " , ) * ) * "))" , "'" , "[..]" )
2828 }
2929 } } ;
3030}
@@ -221,7 +221,7 @@ fn well_known_names_values() {
221221
222222 p. cargo ( "check -v -Zcheck-cfg" )
223223 . masquerade_as_nightly_cargo ( & [ "check-cfg" ] )
224- . with_stderr_contains ( x ! ( "rustc" => "cfg" ) )
224+ . with_stderr_contains ( x ! ( "rustc" => "cfg" of "feature" with ) )
225225 . run ( ) ;
226226}
227227
@@ -284,7 +284,7 @@ fn well_known_names_values_test() {
284284
285285 p. cargo ( "test -v -Zcheck-cfg" )
286286 . masquerade_as_nightly_cargo ( & [ "check-cfg" ] )
287- . with_stderr_contains ( x ! ( "rustc" => "cfg" ) )
287+ . with_stderr_contains ( x ! ( "rustc" => "cfg" of "feature" with ) )
288288 . run ( ) ;
289289}
290290
@@ -297,8 +297,8 @@ fn well_known_names_values_doctest() {
297297
298298 p. cargo ( "test -v --doc -Zcheck-cfg" )
299299 . masquerade_as_nightly_cargo ( & [ "check-cfg" ] )
300- . with_stderr_contains ( x ! ( "rustc" => "cfg" ) )
301- . with_stderr_contains ( x ! ( "rustdoc" => "cfg" ) )
300+ . with_stderr_contains ( x ! ( "rustc" => "cfg" of "feature" with ) )
301+ . with_stderr_contains ( x ! ( "rustdoc" => "cfg" of "feature" with ) )
302302 . run ( ) ;
303303}
304304
0 commit comments