std: @import("builtin").StackTrace -> std.builtin.StackTrace

This commit is contained in:
Andrew Kelley 2021-05-17 14:36:51 -07:00
parent 84fdeb47a3
commit f41892f736
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ fn testGodboltApi(zig_exe: []const u8, dir_path: []const u8) anyerror!void {
\\ return num * num;
\\}
\\extern fn zig_panic() noreturn;
\\pub fn panic(msg: []const u8, error_return_trace: ?*@import("builtin").StackTrace) noreturn {
\\pub fn panic(msg: []const u8, error_return_trace: ?*@import("std").builtin.StackTrace) noreturn {
\\ zig_panic();
\\}
);

View File

@ -1,4 +1,4 @@
const StackTrace = @import("builtin").StackTrace;
const StackTrace = @import("std").builtin.StackTrace;
pub fn panic(msg: []const u8, stack_trace: ?*StackTrace) noreturn {
@breakpoint();
while (true) {}