@@ -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.)
@@ -129,8 +128,8 @@ fn run_tests(mode: Mode, path: &str, target: &str, with_dependencies: bool) -> R
129128
130129macro_rules! regexes {
131130 ( $name: ident: $( $regex: expr => $replacement: expr, ) * ) => { lazy_static:: lazy_static! {
132- static ref $name: Vec <( Regex , & ' static [ u8 ] ) > = vec![
133- $( ( Regex :: new( $regex) . unwrap( ) , $replacement. as_bytes( ) ) , ) *
131+ static ref $name: Vec <( Match , & ' static [ u8 ] ) > = vec![
132+ $( ( Regex :: new( $regex) . unwrap( ) . into ( ) , $replacement. as_bytes( ) ) , ) *
134133 ] ;
135134 } } ;
136135}
0 commit comments