@@ -2,7 +2,7 @@ use colored::*;
2
2
use regex:: bytes:: Regex ;
3
3
use std:: path:: { Path , PathBuf } ;
4
4
use 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 } ;
6
6
7
7
fn miri_path ( ) -> PathBuf {
8
8
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
52
52
mode,
53
53
program : miri_path ( ) ,
54
54
quiet : false ,
55
+ edition : Some ( "2018" . into ( ) ) ,
55
56
..Config :: default ( )
56
57
} ;
57
58
58
59
let in_rustc_test_suite = option_env ! ( "RUSTC_STAGE" ) . is_some ( ) ;
59
60
60
61
// Add some flags we always want.
61
- config. args . push ( "--edition" . into ( ) ) ;
62
- config. args . push ( "2018" . into ( ) ) ;
63
62
if in_rustc_test_suite {
64
63
// Less aggressive warnings to make the rustc toolstate management less painful.
65
64
// (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
129
128
130
129
macro_rules! regexes {
131
130
( $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( ) ) , ) *
134
133
] ;
135
134
} } ;
136
135
}
0 commit comments