std: update std.builtin.Type fields to follow naming conventions
The compiler actually doesn't need any functional changes for this: Sema does reification based on the tag indices of `std.builtin.Type` already! So, no zig1.wasm update is necessary. This change is necessary to disallow name clashes between fields and decls on a type, which is a prerequisite of #9938.
This commit is contained in:
@@ -53,7 +53,7 @@ pub const CpuModel = union(enum) {
|
||||
explicit: *const Target.Cpu.Model,
|
||||
|
||||
pub fn eql(a: CpuModel, b: CpuModel) bool {
|
||||
const Tag = @typeInfo(CpuModel).Union.tag_type.?;
|
||||
const Tag = @typeInfo(CpuModel).@"union".tag_type.?;
|
||||
const a_tag: Tag = a;
|
||||
const b_tag: Tag = b;
|
||||
if (a_tag != b_tag) return false;
|
||||
@@ -70,7 +70,7 @@ pub const OsVersion = union(enum) {
|
||||
windows: Target.Os.WindowsVersion,
|
||||
|
||||
pub fn eql(a: OsVersion, b: OsVersion) bool {
|
||||
const Tag = @typeInfo(OsVersion).Union.tag_type.?;
|
||||
const Tag = @typeInfo(OsVersion).@"union".tag_type.?;
|
||||
const a_tag: Tag = a;
|
||||
const b_tag: Tag = b;
|
||||
if (a_tag != b_tag) return false;
|
||||
|
||||
Reference in New Issue
Block a user