mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
reword deprecated error slightly
"found" -> "reached" to match "reached unreachable code"
This commit is contained in:
parent
c5aa680c88
commit
f74a856d84
@ -1409,7 +1409,7 @@ fn analyzeBodyInner(
|
||||
if (!mod.allow_deprecated) {
|
||||
const src_node: i32 = @bitCast(extended.operand);
|
||||
const src = block.nodeOffset(src_node);
|
||||
return sema.fail(block, src, "found deprecated code", .{});
|
||||
return sema.fail(block, src, "reached deprecated code", .{});
|
||||
}
|
||||
|
||||
i += 1;
|
||||
|
||||
@ -6,4 +6,4 @@ pub export fn foo() usize {
|
||||
|
||||
// error
|
||||
//
|
||||
// :1:13: error: found deprecated code
|
||||
// :1:13: error: reached deprecated code
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user