Commit 22925636f7

Andrew Kelley <andrew@ziglang.org>
2024-08-05 00:26:18
std.debug.Coverage: use extern structs
helps the serialization use case
1 parent b9fd0ee
Changed files (1)
lib
std
lib/std/debug/Coverage.zig
@@ -65,7 +65,7 @@ pub const String = enum(u32) {
     };
 };
 
-pub const SourceLocation = struct {
+pub const SourceLocation = extern struct {
     file: File.Index,
     line: u32,
     column: u32,
@@ -77,7 +77,7 @@ pub const SourceLocation = struct {
     };
 };
 
-pub const File = struct {
+pub const File = extern struct {
     directory_index: u32,
     basename: String,