diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-07-07 11:38:15 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-07-07 13:39:16 -0700 |
| commit | aa52bb83271edc626cd931cf9e8dfbcfc90d4cf2 (patch) | |
| tree | 4ddab249d8aabafb74221d2d96812b554eedfd39 /lib/std | |
| parent | a59c35cbf86e0266d5074ce219feef8436e45268 (diff) | |
| download | zig-aa52bb83271edc626cd931cf9e8dfbcfc90d4cf2.tar.gz zig-aa52bb83271edc626cd931cf9e8dfbcfc90d4cf2.zip | |
zig fmt
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/Build/Module.zig | 2 | ||||
| -rw-r--r-- | lib/std/Target.zig | 2 | ||||
| -rw-r--r-- | lib/std/builtin.zig | 4 | ||||
| -rw-r--r-- | lib/std/zig/llvm/Builder.zig | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/lib/std/Build/Module.zig b/lib/std/Build/Module.zig index d9c098113f..cc57aeb521 100644 --- a/lib/std/Build/Module.zig +++ b/lib/std/Build/Module.zig @@ -572,7 +572,7 @@ pub fn appendZigProcessFlags( try zig_args.append(switch (unwind_tables) { .none => "-fno-unwind-tables", .sync => "-funwind-tables", - .@"async" => "-fasync-unwind-tables", + .async => "-fasync-unwind-tables", }); } diff --git a/lib/std/Target.zig b/lib/std/Target.zig index 18d37e6bf6..c3b37abb7e 100644 --- a/lib/std/Target.zig +++ b/lib/std/Target.zig @@ -1691,7 +1691,7 @@ pub const Cpu = struct { pub fn fromCallingConvention(cc: std.builtin.CallingConvention.Tag) []const Arch { return switch (cc) { .auto, - .@"async", + .async, .naked, .@"inline", => unreachable, diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index 527fc141c6..548b308cad 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -246,7 +246,7 @@ pub const CallingConvention = union(enum(u8)) { /// The calling convention of a function that can be called with `async` syntax. An `async` call /// of a runtime-known function must target a function with this calling convention. /// Comptime-known functions with other calling conventions may be coerced to this one. - @"async", + async, /// Functions with this calling convention have no prologue or epilogue, making the function /// uncallable in regular Zig code. This can be useful when integrating with assembly. @@ -849,7 +849,7 @@ pub const LinkMode = enum { pub const UnwindTables = enum { none, sync, - @"async", + async, }; /// This data structure is used by the Zig language code generation and diff --git a/lib/std/zig/llvm/Builder.zig b/lib/std/zig/llvm/Builder.zig index ff661aa1c7..0e25af08c6 100644 --- a/lib/std/zig/llvm/Builder.zig +++ b/lib/std/zig/llvm/Builder.zig @@ -1521,9 +1521,9 @@ pub const Attribute = union(Kind) { pub const UwTable = enum(u32) { none, sync, - @"async", + async, - pub const default = UwTable.@"async"; + pub const default = UwTable.async; }; pub const VScaleRange = packed struct(u32) { |
