bump ui_test to 0.30.1 (#15184)

@oli-obk I am not entirely sure whether this is the intended port, the
types look a bit gnarly and the changelog doesn't say anything about
this breakage... but https://github.com/oli-obk/ui_test/pull/316 does
something similar.

*Please write a short comment explaining your change (or "none" for
internal only changes)*

changelog: none
This commit is contained in:
Samuel Tardieu 2025-07-01 05:17:42 +00:00 committed by GitHub
commit 4c9980966b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 6 deletions

View file

@ -34,7 +34,7 @@ anstream = "0.6.18"
[dev-dependencies]
cargo_metadata = "0.18.1"
ui_test = "0.29.2"
ui_test = "0.30.1"
regex = "1.5.5"
serde = { version = "1.0.145", features = ["derive"] }
serde_json = "1.0.122"

View file

@ -17,7 +17,8 @@ use ui_test::custom_flags::Flag;
use ui_test::custom_flags::edition::Edition;
use ui_test::custom_flags::rustfix::RustfixMode;
use ui_test::spanned::Spanned;
use ui_test::{Args, CommandBuilder, Config, Match, error_on_output_conflict, status_emitter};
use ui_test::status_emitter::StatusEmitter;
use ui_test::{Args, CommandBuilder, Config, Match, error_on_output_conflict};
use std::collections::{BTreeMap, HashMap};
use std::env::{self, set_var, var_os};
@ -217,7 +218,7 @@ fn run_ui(cx: &TestContext) {
vec![config],
ui_test::default_file_filter,
ui_test::default_per_file_config,
status_emitter::Text::from(cx.args.format),
Box::<dyn StatusEmitter>::from(cx.args.format),
)
.unwrap();
}
@ -233,7 +234,7 @@ fn run_internal_tests(cx: &TestContext) {
vec![config],
ui_test::default_file_filter,
ui_test::default_per_file_config,
status_emitter::Text::from(cx.args.format),
Box::<dyn StatusEmitter>::from(cx.args.format),
)
.unwrap();
}
@ -257,7 +258,7 @@ fn run_ui_toml(cx: &TestContext) {
.envs
.push(("CLIPPY_CONF_DIR".into(), Some(path.parent().unwrap().into())));
},
status_emitter::Text::from(cx.args.format),
Box::<dyn StatusEmitter>::from(cx.args.format),
)
.unwrap();
}
@ -304,7 +305,7 @@ fn run_ui_cargo(cx: &TestContext) {
.then(|| ui_test::default_any_file_filter(path, config) && !ignored_32bit(path))
},
|_config, _file_contents| {},
status_emitter::Text::from(cx.args.format),
Box::<dyn StatusEmitter>::from(cx.args.format),
)
.unwrap();
}