authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-02-25 23:59:48-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-02-26 14:41:33-05:00
logf74a856d84af4c43057febc0a871caa0e69bbfc8
tree2d8085b7ee73aaabdce3a5f5fba5525de034e75f
parentc5aa680c88f7c03718460ff38e7cb1f7c5482cf2

reword deprecated error slightly

"found" -> "reached" to match "reached unreachable code"

3 files changed, 3 insertions(+), 3 deletions(-)

src/Sema.zig+1-1
......@@ -1409,7 +1409,7 @@ fn analyzeBodyInner(
14091409 if (!mod.allow_deprecated) {
14101410 const src_node: i32 = @bitCast(extended.operand);
14111411 const src = block.nodeOffset(src_node);
1412 return sema.fail(block, src, "found deprecated code", .{});
1412 return sema.fail(block, src, "reached deprecated code", .{});
14131413 }
14141414
14151415 i += 1;
test/cases/compile_errors/deprecated.zig+1-1
......@@ -6,4 +6,4 @@ pub export fn foo() usize {
66
77// error
88//
9// :1:13: error: found deprecated code
9// :1:13: error: reached deprecated code
test/tests.zig+1-1
......@@ -1180,7 +1180,7 @@ pub fn addCliTests(b: *std.Build) *Step {
11801180 // Test `zig build -fallow-deprecated`.
11811181
11821182 const deprecated_check: std.Build.Step.Run.StdIo.Check = .{
1183 .expect_stderr_match = "found deprecated code",
1183 .expect_stderr_match = "reached deprecated code",
11841184 };
11851185
11861186 const tmp_path = b.makeTempPath();