Skip to content

Commit 46a6d50

Browse files
committed
Sema: make @src().line comptime-known
Reverts 89cef9f. Closes #13315
1 parent a07f288 commit 46a6d50

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

src/Sema.zig

+1-4
Original file line numberDiff line numberDiff line change
@@ -16883,10 +16883,7 @@ fn zirBuiltinSrc(
1688316883
// fn_name: [:0]const u8,
1688416884
func_name_val,
1688516885
// line: u32,
16886-
try mod.intern(.{ .runtime_value = .{
16887-
.ty = .u32_type,
16888-
.val = (try mod.intValue(Type.u32, extra.line + 1)).toIntern(),
16889-
} }),
16886+
(try mod.intValue(Type.u32, extra.line + 1)).toIntern(),
1689016887
// column: u32,
1689116888
(try mod.intValue(Type.u32, extra.column + 1)).toIntern(),
1689216889
};

test/cases/compile_errors/src_fields_runtime.zig

-17
This file was deleted.

0 commit comments

Comments
 (0)