aboutsummaryrefslogtreecommitdiff
path: root/lib/std/pdb.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-04-22 18:07:46 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-04-22 18:07:46 -0700
commit507a8096d2f9624bafaf963c3e189a477ef6b7bf (patch)
treec21e3d54e1389fe44ecc7d5f230e792e26ab322d /lib/std/pdb.zig
parent7c453b91b85bab6800d24feb57c4f35b8ce48d57 (diff)
downloadzig-507a8096d2f9624bafaf963c3e189a477ef6b7bf.tar.gz
zig-507a8096d2f9624bafaf963c3e189a477ef6b7bf.zip
std: fix compile errors caught by stage2 AstGen
* `comptime const` is redundant * don't use `extern enum`; specify a tag type. `extern enum` is only when you need tags to alias. But aliasing tags is a smell. I will be making a proposal shortly to remove `extern enum` from the language. * there is no such thing as `packed enum`. * instead of `catch |_|`, omit the capture entirely. * unused function definition with missing parameter name * using `try` outside of a function or test
Diffstat (limited to 'lib/std/pdb.zig')
-rw-r--r--lib/std/pdb.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/pdb.zig b/lib/std/pdb.zig
index de0b8f3ec0..2b953aa5ac 100644
--- a/lib/std/pdb.zig
+++ b/lib/std/pdb.zig
@@ -115,7 +115,7 @@ pub const StreamType = enum(u16) {
/// Duplicate copy of SymbolRecordKind, but using the official CV names. Useful
/// for reference purposes and when dealing with unknown record types.
-pub const SymbolKind = packed enum(u16) {
+pub const SymbolKind = enum(u16) {
S_COMPILE = 1,
S_REGISTER_16t = 2,
S_CONSTANT_16t = 3,
@@ -426,7 +426,7 @@ pub const FileChecksumEntryHeader = packed struct {
ChecksumKind: u8,
};
-pub const DebugSubsectionKind = packed enum(u32) {
+pub const DebugSubsectionKind = enum(u32) {
None = 0,
Symbols = 0xf1,
Lines = 0xf2,