Skip to content

Commit ab90877

Browse files
committed
Rename Yolo mode to RunDep
1 parent 870f781 commit ab90877

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/ui.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ use ui_test::{status_emitter, CommandBuilder, Config, Format, Match, OutputConfl
1717
#[derive(Copy, Clone, Debug)]
1818
enum Mode {
1919
Pass,
20+
/// Requires annotations
2021
Fail,
21-
Yolo,
22+
/// Not used for tests, but for `miri run --dep`
23+
RunDep,
2224
Panic,
2325
}
2426

@@ -98,7 +100,7 @@ fn miri_config(target: &str, path: &str, mode: Mode, with_dependencies: bool) ->
98100
config.comment_defaults.base().exit_status = match mode {
99101
Mode::Pass => Some(0_i32),
100102
Mode::Fail => Some(1),
101-
Mode::Yolo => None,
103+
Mode::RunDep => None,
102104
Mode::Panic => Some(101),
103105
}
104106
.map(Spanned::dummy)
@@ -107,7 +109,7 @@ fn miri_config(target: &str, path: &str, mode: Mode, with_dependencies: bool) ->
107109
config.comment_defaults.base().require_annotations = Spanned::dummy(match mode {
108110
Mode::Pass => false,
109111
Mode::Fail => true,
110-
Mode::Yolo => false,
112+
Mode::RunDep => false,
111113
Mode::Panic => false,
112114
})
113115
.into();
@@ -330,7 +332,7 @@ fn main() -> Result<()> {
330332
}
331333

332334
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);
334336
config.comment_defaults.base().custom.remove("edition");
335337
config.fill_host_and_target()?;
336338
config.program.args = args.collect();

0 commit comments

Comments
 (0)