@@ -2,7 +2,7 @@ use colored::*;
22use regex:: bytes:: Regex ;
33use std:: path:: { Path , PathBuf } ;
44use std:: { env, process:: Command } ;
5- use ui_test:: { color_eyre:: Result , Config , Mode , OutputConflictHandling } ;
5+ use ui_test:: { color_eyre:: Result , Config , Match , Mode , OutputConflictHandling } ;
66
77fn miri_path ( ) -> PathBuf {
88 PathBuf :: from ( option_env ! ( "MIRI" ) . unwrap_or ( env ! ( "CARGO_BIN_EXE_miri" ) ) )
@@ -52,14 +52,13 @@ fn run_tests(mode: Mode, path: &str, target: &str, with_dependencies: bool) -> R
5252 mode,
5353 program : miri_path ( ) ,
5454 quiet : false ,
55+ edition : Some ( "2018" . into ( ) ) ,
5556 ..Config :: default ( )
5657 } ;
5758
5859 let in_rustc_test_suite = option_env ! ( "RUSTC_STAGE" ) . is_some ( ) ;
5960
6061 // Add some flags we always want.
61- config. args . push ( "--edition" . into ( ) ) ;
62- config. args . push ( "2018" . into ( ) ) ;
6362 if in_rustc_test_suite {
6463 // Less aggressive warnings to make the rustc toolstate management less painful.
6564 // (We often get warnings when e.g. a feature gets stabilized or some lint gets added/improved.)
@@ -141,8 +140,8 @@ fn run_tests(mode: Mode, path: &str, target: &str, with_dependencies: bool) -> R
141140
142141macro_rules! regexes {
143142 ( $name: ident: $( $regex: expr => $replacement: expr, ) * ) => { lazy_static:: lazy_static! {
144- static ref $name: Vec <( Regex , & ' static [ u8 ] ) > = vec![
145- $( ( Regex :: new( $regex) . unwrap( ) , $replacement. as_bytes( ) ) , ) *
143+ static ref $name: Vec <( Match , & ' static [ u8 ] ) > = vec![
144+ $( ( Regex :: new( $regex) . unwrap( ) . into ( ) , $replacement. as_bytes( ) ) , ) *
146145 ] ;
147146 } } ;
148147}
0 commit comments