diff options
| author | Ralf Jung <post@ralfj.de> | 2025-06-30 21:29:57 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-07-01 07:08:11 +0200 |
| commit | 1fcd632be3b3e10f2fe3401f29af1250f496c52f (patch) | |
| tree | 6231e4daa75e3688d351b717a441a83e968489df | |
| parent | 936baca0cd41e140d0351208657c1d52cdba86b1 (diff) | |
| download | rust-1fcd632be3b3e10f2fe3401f29af1250f496c52f.tar.gz rust-1fcd632be3b3e10f2fe3401f29af1250f496c52f.zip | |
bump ui_test to 0.30.1
| -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(); } |
