aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-02-25 23:59:48 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-02-26 14:41:33 -0500
commitf74a856d84af4c43057febc0a871caa0e69bbfc8 (patch)
tree2d8085b7ee73aaabdce3a5f5fba5525de034e75f /test
parentc5aa680c88f7c03718460ff38e7cb1f7c5482cf2 (diff)
downloadzig-f74a856d84af4c43057febc0a871caa0e69bbfc8.tar.gz
zig-f74a856d84af4c43057febc0a871caa0e69bbfc8.zip
reword deprecated error slightly
"found" -> "reached" to match "reached unreachable code"
Diffstat (limited to 'test')
-rw-r--r--test/cases/compile_errors/deprecated.zig2
-rw-r--r--test/tests.zig2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/cases/compile_errors/deprecated.zig b/test/cases/compile_errors/deprecated.zig
index fdfabc1a5b..98921a0742 100644
--- a/test/cases/compile_errors/deprecated.zig
+++ b/test/cases/compile_errors/deprecated.zig
@@ -6,4 +6,4 @@ pub export fn foo() usize {
// error
//
-// :1:13: error: found deprecated code
+// :1:13: error: reached deprecated code
diff --git a/test/tests.zig b/test/tests.zig
index e8bbca2963..694b0002f4 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -1180,7 +1180,7 @@ pub fn addCliTests(b: *std.Build) *Step {
// Test `zig build -fallow-deprecated`.
const deprecated_check: std.Build.Step.Run.StdIo.Check = .{
- .expect_stderr_match = "found deprecated code",
+ .expect_stderr_match = "reached deprecated code",
};
const tmp_path = b.makeTempPath();