std.builtin: give some enums integer types

This commit is contained in:
Andrew Kelley 2023-05-01 20:14:17 -07:00
parent 9aec2758cc
commit cac60a05a7

View File

@ -190,7 +190,7 @@ pub const CallingConvention = enum {
/// This data structure is used by the Zig language code generation and /// This data structure is used by the Zig language code generation and
/// therefore must be kept in sync with the compiler implementation. /// therefore must be kept in sync with the compiler implementation.
pub const AddressSpace = enum { pub const AddressSpace = enum(u4) {
generic, generic,
gs, gs,
fs, fs,
@ -283,7 +283,7 @@ pub const Type = union(enum) {
/// This data structure is used by the Zig language code generation and /// This data structure is used by the Zig language code generation and
/// therefore must be kept in sync with the compiler implementation. /// therefore must be kept in sync with the compiler implementation.
pub const Size = enum { pub const Size = enum(u2) {
One, One,
Many, Many,
Slice, Slice,