Skip to content

Commit 39c7971

Browse files
committed
bump ui_test
1 parent cf24ad6 commit 39c7971

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

Cargo.lock

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ipc-channel = { version = "0.20.0", optional = true }
4949
capstone = { version = "0.13", optional = true }
5050

5151
[dev-dependencies]
52-
ui_test = "0.29.1"
52+
ui_test = "0.30.2"
5353
colored = "3"
5454
rustc_version = "0.4"
5555
regex = "1.5.5"

tests/ui.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ use ui_test::custom_flags::edition::Edition;
1313
use ui_test::dependencies::DependencyBuilder;
1414
use ui_test::per_test_config::TestConfig;
1515
use ui_test::spanned::Spanned;
16-
use ui_test::{CommandBuilder, Config, Format, Match, ignore_output_conflict, status_emitter};
16+
use ui_test::status_emitter::StatusEmitter;
17+
use ui_test::{CommandBuilder, Config, Match, ignore_output_conflict};
1718

1819
#[derive(Copy, Clone, Debug)]
1920
enum Mode {
@@ -216,10 +217,7 @@ fn run_tests(
216217
// This could be used to overwrite the `Config` on a per-test basis.
217218
|_, _| {},
218219
// No GHA output as that would also show in the main rustc repo.
219-
match args.format {
220-
Format::Terse => status_emitter::Text::quiet(),
221-
Format::Pretty => status_emitter::Text::verbose(),
222-
},
220+
Box::<dyn StatusEmitter>::from(args.format),
223221
)
224222
}
225223

0 commit comments

Comments
 (0)