diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-12-04 17:21:55 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-12-04 17:21:55 -0700 |
| commit | 2ed1ed9b32ae588f6a8997248d69817b5d89a133 (patch) | |
| tree | 795a5929a71352c469fcd6018bb57ca5a3ebb20c /lib/std/priority_queue.zig | |
| parent | 1c5606af9fdbfa18fb312a35a73c68515967c94d (diff) | |
| download | zig-2ed1ed9b32ae588f6a8997248d69817b5d89a133.tar.gz zig-2ed1ed9b32ae588f6a8997248d69817b5d89a133.zip | |
stage2: introduce Module.failed_root_source_file
Use case:
zig build-exe non_existent_file.zig
Previous behavior:
error.FileNotFound, followed by an error return trace
Behavior after this commit:
error: unable to read non_existent_file.zig: FileNotFound
(end of stderr, exit code 1)
This turns AllErrors.Message into a tagged union which now has the
capability to represent both "plain" errors as well as source-based
errors (with file, line, column, byte offset). The "no entry point found"
error has moved to be a plain error message.
Diffstat (limited to 'lib/std/priority_queue.zig')
0 files changed, 0 insertions, 0 deletions
