diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-02-02 23:45:23 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-02-03 00:06:11 -0700 |
| commit | 81c27c74bc8ccc8087b75c5d4eb1b350ad907cd0 (patch) | |
| tree | 9dc79bfecab52e844714bd81150368b40202f4c0 /src/Compilation.zig | |
| parent | 873bb29c984b976021fb9ca95ad3298e03a8b3ff (diff) | |
| download | zig-81c27c74bc8ccc8087b75c5d4eb1b350ad907cd0.tar.gz zig-81c27c74bc8ccc8087b75c5d4eb1b350ad907cd0.zip | |
use build.zig.zon instead of build.zig.ini for the manifest file
* improve error message when build manifest file is missing
* update std.zig.Ast to support ZON
* Compilation.AllErrors.Message: make the notes field a const slice
* move build manifest parsing logic into src/Manifest.zig and add more
checks, and make the checks integrate into the standard error
reporting code so that reported errors look sexy
closes #14290
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 7d42d3b610..e09b8f18ab 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -385,7 +385,7 @@ pub const AllErrors = struct { count: u32 = 1, /// Does not include the trailing newline. source_line: ?[]const u8, - notes: []Message = &.{}, + notes: []const Message = &.{}, reference_trace: []Message = &.{}, /// Splits the error message up into lines to properly indent them |
