about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2024-07-26 11:40:03 +0200
committerPhilipp Krones <hello@philkrones.com>2024-07-26 11:40:27 +0200
commit82b44345a5bd6a337eccc36b37535b4c046976f2 (patch)
treeb7b1a10a98e9f89466ad7ea1eeedf781040085b3
parent345c94c98fd3fd39e07bfcd7e0e30261649c41fd (diff)
downloadrust-82b44345a5bd6a337eccc36b37535b4c046976f2.tar.gz
rust-82b44345a5bd6a337eccc36b37535b4c046976f2.zip
Bump ui_test version -> 0.25
-rw-r--r--Cargo.toml2
-rw-r--r--tests/compile-test.rs5
2 files changed, 4 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index bb4dc97e748..9b8f5c4b6cb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -30,7 +30,7 @@ color-print = "0.3.4"
 anstream = "0.6.0"
 
 [dev-dependencies]
-ui_test = "0.24"
+ui_test = "0.25"
 regex = "1.5.5"
 toml = "0.7.3"
 walkdir = "2.3"
diff --git a/tests/compile-test.rs b/tests/compile-test.rs
index ea3a0a93ecc..5d480adc735 100644
--- a/tests/compile-test.rs
+++ b/tests/compile-test.rs
@@ -209,7 +209,8 @@ fn run_ui_toml() {
     ui_test::run_tests_generic(
         vec![config],
         ui_test::default_file_filter,
-        |config, path, _file_contents| {
+        |config, file_contents| {
+            let path = file_contents.span().file;
             config
                 .program
                 .envs
@@ -261,7 +262,7 @@ fn run_ui_cargo() {
             path.ends_with("Cargo.toml")
                 .then(|| ui_test::default_any_file_filter(path, config) && !ignored_32bit(path))
         },
-        |_config, _path, _file_contents| {},
+        |_config, _file_contents| {},
         status_emitter::Text::from(args.format),
     )
     .unwrap();