@@ -17,8 +17,10 @@ use ui_test::{status_emitter, CommandBuilder, Config, Format, Match, OutputConfl
17
17
#[ derive( Copy , Clone , Debug ) ]
18
18
enum Mode {
19
19
Pass ,
20
+ /// Requires annotations
20
21
Fail ,
21
- Yolo ,
22
+ /// Not used for tests, but for `miri run --dep`
23
+ RunDep ,
22
24
Panic ,
23
25
}
24
26
@@ -98,7 +100,7 @@ fn miri_config(target: &str, path: &str, mode: Mode, with_dependencies: bool) ->
98
100
config. comment_defaults . base ( ) . exit_status = match mode {
99
101
Mode :: Pass => Some ( 0_i32 ) ,
100
102
Mode :: Fail => Some ( 1 ) ,
101
- Mode :: Yolo => None ,
103
+ Mode :: RunDep => None ,
102
104
Mode :: Panic => Some ( 101 ) ,
103
105
}
104
106
. map ( Spanned :: dummy)
@@ -107,7 +109,7 @@ fn miri_config(target: &str, path: &str, mode: Mode, with_dependencies: bool) ->
107
109
config. comment_defaults . base ( ) . require_annotations = Spanned :: dummy ( match mode {
108
110
Mode :: Pass => false ,
109
111
Mode :: Fail => true ,
110
- Mode :: Yolo => false ,
112
+ Mode :: RunDep => false ,
111
113
Mode :: Panic => false ,
112
114
} )
113
115
. into ( ) ;
@@ -330,7 +332,7 @@ fn main() -> Result<()> {
330
332
}
331
333
332
334
fn run_dep_mode ( target : String , args : impl Iterator < Item = OsString > ) -> Result < ( ) > {
333
- let mut config = miri_config ( & target, "" , Mode :: Yolo , /* with dependencies */ true ) ;
335
+ let mut config = miri_config ( & target, "" , Mode :: RunDep , /* with dependencies */ true ) ;
334
336
config. comment_defaults . base ( ) . custom . remove ( "edition" ) ;
335
337
config. fill_host_and_target ( ) ?;
336
338
config. program . args = args. collect ( ) ;
0 commit comments