diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-07-01 05:17:42 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-01 05:17:42 +0000 |
| commit | 4c9980966ba2990cca7cdf22b06525548993f36d (patch) | |
| tree | f1486ad1608aa7a0c2b95707cb463d64cb11fc94 | |
| parent | bca8931bbbc2599f2882cf21c11fb091f661fb07 (diff) | |
| parent | 1fcd632be3b3e10f2fe3401f29af1250f496c52f (diff) | |
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
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | tests/compile-test.rs | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/Cargo.toml b/Cargo.toml index 8cbdcf45693..0f85d040f08 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/tests/compile-test.rs b/tests/compile-test.rs index cefe654fef6..c9718161c4c 100644 --- a/tests/compile-test.rs +++ b/tests/compile-test.rs @@ -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(); } |
