diff options
| author | Ralf Jung <post@ralfj.de> | 2025-07-19 13:53:42 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-07-19 13:58:09 +0200 |
| commit | 0b8f558cc9e79c5a4847cf3326cc9c62cfccc3bb (patch) | |
| tree | bbdd53e05318072d24e88930a59fdf437efe9573 | |
| parent | 4bd80887d8025353971c7724b8e526c1e7a66fb9 (diff) | |
| download | rust-0b8f558cc9e79c5a4847cf3326cc9c62cfccc3bb.tar.gz rust-0b8f558cc9e79c5a4847cf3326cc9c62cfccc3bb.zip | |
bump ui_test
| -rw-r--r-- | src/tools/miri/Cargo.lock | 9 | ||||
| -rw-r--r-- | src/tools/miri/Cargo.toml | 2 | ||||
| -rw-r--r-- | src/tools/miri/tests/ui.rs | 8 |
3 files changed, 9 insertions, 10 deletions
diff --git a/src/tools/miri/Cargo.lock b/src/tools/miri/Cargo.lock index 6aeb5276f61..0af4181dc15 100644 --- a/src/tools/miri/Cargo.lock +++ b/src/tools/miri/Cargo.lock @@ -1016,10 +1016,11 @@ checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" [[package]] name = "spanned" -version = "0.3.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86af297923fbcfd107c20a189a6e9c872160df71a7190ae4a7a6c5dce4b2feb6" +checksum = "c92d4b0c055fde758f086eb4a6e73410247df8a3837fd606d2caeeaf72aa566d" dependencies = [ + "anyhow", "bstr", "color-eyre", ] @@ -1156,9 +1157,9 @@ checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f" [[package]] name = "ui_test" -version = "0.29.2" +version = "0.30.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1211b1111c752c73b33073d2958072be08825fd97c9ab4d83444da361a06634b" +checksum = "b56a6897cc4bb6f8daf1939b0b39cd9645856997f46f4d0b3e3cb7122dfe9251" dependencies = [ "annotate-snippets", "anyhow", diff --git a/src/tools/miri/Cargo.toml b/src/tools/miri/Cargo.toml index 6031ea03bbe..d293af5cea2 100644 --- a/src/tools/miri/Cargo.toml +++ b/src/tools/miri/Cargo.toml @@ -49,7 +49,7 @@ ipc-channel = { version = "0.20.0", optional = true } capstone = { version = "0.13", optional = true } [dev-dependencies] -ui_test = "0.29.1" +ui_test = "0.30.2" colored = "3" rustc_version = "0.4" regex = "1.5.5" diff --git a/src/tools/miri/tests/ui.rs b/src/tools/miri/tests/ui.rs index e521269586d..a4463d69341 100644 --- a/src/tools/miri/tests/ui.rs +++ b/src/tools/miri/tests/ui.rs @@ -13,7 +13,8 @@ use ui_test::custom_flags::edition::Edition; use ui_test::dependencies::DependencyBuilder; use ui_test::per_test_config::TestConfig; use ui_test::spanned::Spanned; -use ui_test::{CommandBuilder, Config, Format, Match, ignore_output_conflict, status_emitter}; +use ui_test::status_emitter::StatusEmitter; +use ui_test::{CommandBuilder, Config, Match, ignore_output_conflict}; #[derive(Copy, Clone, Debug)] enum Mode { @@ -216,10 +217,7 @@ fn run_tests( // This could be used to overwrite the `Config` on a per-test basis. |_, _| {}, // No GHA output as that would also show in the main rustc repo. - match args.format { - Format::Terse => status_emitter::Text::quiet(), - Format::Pretty => status_emitter::Text::verbose(), - }, + Box::<dyn StatusEmitter>::from(args.format), ) } |
