about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJane Losare-Lusby <jlusby42@gmail.com>2024-11-20 12:11:40 -0800
committerGitHub <noreply@github.com>2024-11-20 12:11:40 -0800
commit0a14f712d7a2cf42e2e5705b2f5a8f1b8e67c7c2 (patch)
treeb46f61a6268401696853d30b788222a33f48af46
parentdc97db105ac3ebefe0ab51b88a26f87ef4fec207 (diff)
downloadrust-0a14f712d7a2cf42e2e5705b2f5a8f1b8e67c7c2.tar.gz
rust-0a14f712d7a2cf42e2e5705b2f5a8f1b8e67c7c2.zip
Update tests/run-make/unstable-feature-usage-metrics/rmake.rs
Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
-rw-r--r--tests/run-make/unstable-feature-usage-metrics/rmake.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/run-make/unstable-feature-usage-metrics/rmake.rs b/tests/run-make/unstable-feature-usage-metrics/rmake.rs
index 7e122def6b7..1397548a6fc 100644
--- a/tests/run-make/unstable-feature-usage-metrics/rmake.rs
+++ b/tests/run-make/unstable-feature-usage-metrics/rmake.rs
@@ -51,9 +51,9 @@ fn test_metrics_dump() {
         let json_path =
             metrics.pop().expect("there should be one metrics file in the output directory");
 
-        assert_eq!(
-            0,
-            metrics.len(),
+        // After the `pop` above, there should be no files left.
+        assert!(
+            metrics.is_empty(),
             "there should be no more than one metrics file in the output directory"
         );