authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-05-24 21:27:44-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-05-24 21:27:44-04:00
log43085417bec447ab31f3454e180213f102885cc8
tree63f07e0cbb7014de96cf969cf20b6f8d80af9336
parentaf7073b7790ad055825ea2805cfd00b69f82f2fe

update github.com/zig-lang to github.com/ziglang


19 files changed, 37 insertions(+), 37 deletions(-)

README.md+2-2
...@@ -114,7 +114,7 @@ libc. Create demo games using Zig....@@ -114,7 +114,7 @@ libc. Create demo games using Zig.
114114
115## Building115## Building
116116
117[![Build Status](https://travis-ci.org/zig-lang/zig.svg?branch=master)](https://travis-ci.org/zig-lang/zig)117[![Build Status](https://travis-ci.org/ziglang/zig.svg?branch=master)](https://travis-ci.org/ziglang/zig)
118[![Build status](https://ci.appveyor.com/api/projects/status/4t80mk2dmucrc38i/branch/master?svg=true)](https://ci.appveyor.com/project/andrewrk/zig-d3l86/branch/master)118[![Build status](https://ci.appveyor.com/api/projects/status/4t80mk2dmucrc38i/branch/master?svg=true)](https://ci.appveyor.com/project/andrewrk/zig-d3l86/branch/master)
119119
120### Stage 1: Build Zig from C++ Source Code120### Stage 1: Build Zig from C++ Source Code
...@@ -161,7 +161,7 @@ bin/zig build --build-file ../build.zig test...@@ -161,7 +161,7 @@ bin/zig build --build-file ../build.zig test
161161
162##### Windows162##### Windows
163163
164See https://github.com/zig-lang/zig/wiki/Building-Zig-on-Windows164See https://github.com/ziglang/zig/wiki/Building-Zig-on-Windows
165165
166### Stage 2: Build Self-Hosted Zig from Zig Source Code166### Stage 2: Build Self-Hosted Zig from Zig Source Code
167167
doc/langref.html.in+4-4
...@@ -96,7 +96,7 @@...@@ -96,7 +96,7 @@
96 </p>96 </p>
97 <p>97 <p>
98 If you search for something specific in this documentation and do not find it,98 If you search for something specific in this documentation and do not find it,
99 please <a href="https://github.com/zig-lang/www.ziglang.org/issues/new?title=I%20searched%20for%20___%20in%20the%20docs%20and%20didn%27t%20find%20it">file an issue</a> or <a href="https://webchat.freenode.net/?channels=%23zig">say something on IRC</a>.99 please <a href="https://github.com/ziglang/www.ziglang.org/issues/new?title=I%20searched%20for%20___%20in%20the%20docs%20and%20didn%27t%20find%20it">file an issue</a> or <a href="https://webchat.freenode.net/?channels=%23zig">say something on IRC</a>.
100 </p>100 </p>
101 <p>101 <p>
102 The code samples in this document are compiled and tested as part of the main test suite of Zig.102 The code samples in this document are compiled and tested as part of the main test suite of Zig.
...@@ -2827,7 +2827,7 @@ test "fn reflection" {...@@ -2827,7 +2827,7 @@ test "fn reflection" {
2827 </p>2827 </p>
2828 <p>2828 <p>
2829 The number of unique error values across the entire compilation should determine the size of the error set type.2829 The number of unique error values across the entire compilation should determine the size of the error set type.
2830 However right now it is hard coded to be a <code>u16</code>. See <a href="https://github.com/zig-lang/zig/issues/786">#768</a>.2830 However right now it is hard coded to be a <code>u16</code>. See <a href="https://github.com/ziglang/zig/issues/786">#768</a>.
2831 </p>2831 </p>
2832 <p>2832 <p>
2833 You can implicitly cast an error from a subset to its superset:2833 You can implicitly cast an error from a subset to its superset:
...@@ -5958,7 +5958,7 @@ pub fn main() void {...@@ -5958,7 +5958,7 @@ pub fn main() void {
5958 {#code_begin|exe#}5958 {#code_begin|exe#}
5959 {#link_libc#}5959 {#link_libc#}
5960const c = @cImport({5960const c = @cImport({
5961 // See https://github.com/zig-lang/zig/issues/5155961 // See https://github.com/ziglang/zig/issues/515
5962 @cDefine("_NO_CRT_STDIO_INLINE", "1");5962 @cDefine("_NO_CRT_STDIO_INLINE", "1");
5963 @cInclude("stdio.h");5963 @cInclude("stdio.h");
5964});5964});
...@@ -6301,7 +6301,7 @@ fn readU32Be() u32 {}...@@ -6301,7 +6301,7 @@ fn readU32Be() u32 {}
6301 <li>Non-Ascii Unicode line endings: U+0085 (NEL), U+2028 (LS), U+2029 (PS).</li>6301 <li>Non-Ascii Unicode line endings: U+0085 (NEL), U+2028 (LS), U+2029 (PS).</li>
6302 </ul>6302 </ul>
6303 <p>The codepoint U+000a (LF) (which is encoded as the single-byte value 0x0a) is the line terminator character. This character always terminates a line of zig source code (except possbly the last line of the file).</p>6303 <p>The codepoint U+000a (LF) (which is encoded as the single-byte value 0x0a) is the line terminator character. This character always terminates a line of zig source code (except possbly the last line of the file).</p>
6304 <p>For some discussion on the rationale behind these design decisions, see <a href="https://github.com/zig-lang/zig/issues/663">issue #663</a></p>6304 <p>For some discussion on the rationale behind these design decisions, see <a href="https://github.com/ziglang/zig/issues/663">issue #663</a></p>
6305 {#header_close#}6305 {#header_close#}
6306 {#header_open|Grammar#}6306 {#header_open|Grammar#}
6307 <pre><code class="nohighlight">Root = many(TopLevelItem) EOF6307 <pre><code class="nohighlight">Root = many(TopLevelItem) EOF
example/hello_world/hello_libc.zig+1-1
...@@ -1,5 +1,5 @@...@@ -1,5 +1,5 @@
1const c = @cImport({1const c = @cImport({
2 // See https://github.com/zig-lang/zig/issues/5152 // See https://github.com/ziglang/zig/issues/515
3 @cDefine("_NO_CRT_STDIO_INLINE", "1");3 @cDefine("_NO_CRT_STDIO_INLINE", "1");
4 @cInclude("stdio.h");4 @cInclude("stdio.h");
5 @cInclude("string.h");5 @cInclude("string.h");
src/analyze.cpp+2-2
...@@ -1007,7 +1007,7 @@ TypeTableEntry *get_fn_type(CodeGen *g, FnTypeId *fn_type_id) {...@@ -1007,7 +1007,7 @@ TypeTableEntry *get_fn_type(CodeGen *g, FnTypeId *fn_type_id) {
1007 if (fn_type_id->return_type != nullptr) {1007 if (fn_type_id->return_type != nullptr) {
1008 ensure_complete_type(g, fn_type_id->return_type);1008 ensure_complete_type(g, fn_type_id->return_type);
1009 } else {1009 } else {
1010 zig_panic("TODO implement inferred return types https://github.com/zig-lang/zig/issues/447");1010 zig_panic("TODO implement inferred return types https://github.com/ziglang/zig/issues/447");
1011 }1011 }
10121012
1013 TypeTableEntry *fn_type = new_type_table_entry(TypeTableEntryIdFn);1013 TypeTableEntry *fn_type = new_type_table_entry(TypeTableEntryIdFn);
...@@ -1556,7 +1556,7 @@ static TypeTableEntry *analyze_fn_type(CodeGen *g, AstNode *proto_node, Scope *c...@@ -1556,7 +1556,7 @@ static TypeTableEntry *analyze_fn_type(CodeGen *g, AstNode *proto_node, Scope *c
1556 return g->builtin_types.entry_invalid;1556 return g->builtin_types.entry_invalid;
1557 }1557 }
1558 add_node_error(g, proto_node,1558 add_node_error(g, proto_node,
1559 buf_sprintf("TODO implement inferred return types https://github.com/zig-lang/zig/issues/447"));1559 buf_sprintf("TODO implement inferred return types https://github.com/ziglang/zig/issues/447"));
1560 return g->builtin_types.entry_invalid;1560 return g->builtin_types.entry_invalid;
1561 //return get_generic_fn_type(g, &fn_type_id);1561 //return get_generic_fn_type(g, &fn_type_id);
1562 }1562 }
src/codegen.cpp+3-3
...@@ -582,7 +582,7 @@ static LLVMValueRef fn_llvm_value(CodeGen *g, FnTableEntry *fn_table_entry) {...@@ -582,7 +582,7 @@ static LLVMValueRef fn_llvm_value(CodeGen *g, FnTableEntry *fn_table_entry) {
582 addLLVMArgAttr(fn_table_entry->llvm_value, (unsigned)gen_index, "nonnull");582 addLLVMArgAttr(fn_table_entry->llvm_value, (unsigned)gen_index, "nonnull");
583 }583 }
584 // Note: byval is disabled on windows due to an LLVM bug:584 // Note: byval is disabled on windows due to an LLVM bug:
585 // https://github.com/zig-lang/zig/issues/536585 // https://github.com/ziglang/zig/issues/536
586 if (is_byval && g->zig_target.os != OsWindows) {586 if (is_byval && g->zig_target.os != OsWindows) {
587 addLLVMArgAttr(fn_table_entry->llvm_value, (unsigned)gen_index, "byval");587 addLLVMArgAttr(fn_table_entry->llvm_value, (unsigned)gen_index, "byval");
588 }588 }
...@@ -3067,7 +3067,7 @@ static LLVMValueRef ir_render_call(CodeGen *g, IrExecutable *executable, IrInstr...@@ -3067,7 +3067,7 @@ static LLVMValueRef ir_render_call(CodeGen *g, IrExecutable *executable, IrInstr
3067 for (size_t param_i = 0; param_i < fn_type_id->param_count; param_i += 1) {3067 for (size_t param_i = 0; param_i < fn_type_id->param_count; param_i += 1) {
3068 FnGenParamInfo *gen_info = &fn_type->data.fn.gen_param_info[param_i];3068 FnGenParamInfo *gen_info = &fn_type->data.fn.gen_param_info[param_i];
3069 // Note: byval is disabled on windows due to an LLVM bug:3069 // Note: byval is disabled on windows due to an LLVM bug:
3070 // https://github.com/zig-lang/zig/issues/5363070 // https://github.com/ziglang/zig/issues/536
3071 if (gen_info->is_byval && g->zig_target.os != OsWindows) {3071 if (gen_info->is_byval && g->zig_target.os != OsWindows) {
3072 addLLVMCallsiteAttr(result, (unsigned)gen_info->gen_index, "byval");3072 addLLVMCallsiteAttr(result, (unsigned)gen_info->gen_index, "byval");
3073 }3073 }
...@@ -6730,7 +6730,7 @@ static void init(CodeGen *g) {...@@ -6730,7 +6730,7 @@ static void init(CodeGen *g) {
6730 const char *target_specific_features;6730 const char *target_specific_features;
6731 if (g->is_native_target) {6731 if (g->is_native_target) {
6732 // LLVM creates invalid binaries on Windows sometimes.6732 // LLVM creates invalid binaries on Windows sometimes.
6733 // See https://github.com/zig-lang/zig/issues/5086733 // See https://github.com/ziglang/zig/issues/508
6734 // As a workaround we do not use target native features on Windows.6734 // As a workaround we do not use target native features on Windows.
6735 if (g->zig_target.os == OsWindows) {6735 if (g->zig_target.os == OsWindows) {
6736 target_specific_cpu_args = "";6736 target_specific_cpu_args = "";
src/ir.cpp+4-4
...@@ -12130,7 +12130,7 @@ static bool ir_analyze_fn_call_generic_arg(IrAnalyze *ira, AstNode *fn_proto_nod...@@ -12130,7 +12130,7 @@ static bool ir_analyze_fn_call_generic_arg(IrAnalyze *ira, AstNode *fn_proto_nod
12130 casted_arg->value.type->id == TypeTableEntryIdNumLitFloat)12130 casted_arg->value.type->id == TypeTableEntryIdNumLitFloat)
12131 {12131 {
12132 ir_add_error(ira, casted_arg,12132 ir_add_error(ira, casted_arg,
12133 buf_sprintf("compiler bug: integer and float literals in var args function must be casted. https://github.com/zig-lang/zig/issues/557"));12133 buf_sprintf("compiler bug: integer and float literals in var args function must be casted. https://github.com/ziglang/zig/issues/557"));
12134 return false;12134 return false;
12135 }12135 }
1213612136
...@@ -12331,7 +12331,7 @@ static TypeTableEntry *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCall *cal...@@ -12331,7 +12331,7 @@ static TypeTableEntry *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCall *cal
1233112331
12332 if (fn_proto_node->data.fn_proto.is_var_args) {12332 if (fn_proto_node->data.fn_proto.is_var_args) {
12333 ir_add_error(ira, &call_instruction->base,12333 ir_add_error(ira, &call_instruction->base,
12334 buf_sprintf("compiler bug: unable to call var args function at compile time. https://github.com/zig-lang/zig/issues/313"));12334 buf_sprintf("compiler bug: unable to call var args function at compile time. https://github.com/ziglang/zig/issues/313"));
12335 return ira->codegen->builtin_types.entry_invalid;12335 return ira->codegen->builtin_types.entry_invalid;
12336 }12336 }
1233712337
...@@ -12424,7 +12424,7 @@ static TypeTableEntry *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCall *cal...@@ -12424,7 +12424,7 @@ static TypeTableEntry *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCall *cal
12424 }12424 }
12425 if (call_instruction->is_async && fn_type_id->is_var_args) {12425 if (call_instruction->is_async && fn_type_id->is_var_args) {
12426 ir_add_error(ira, call_instruction->fn_ref,12426 ir_add_error(ira, call_instruction->fn_ref,
12427 buf_sprintf("compiler bug: TODO: implement var args async functions. https://github.com/zig-lang/zig/issues/557"));12427 buf_sprintf("compiler bug: TODO: implement var args async functions. https://github.com/ziglang/zig/issues/557"));
12428 return ira->codegen->builtin_types.entry_invalid;12428 return ira->codegen->builtin_types.entry_invalid;
12429 }12429 }
1243012430
...@@ -12507,7 +12507,7 @@ static TypeTableEntry *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCall *cal...@@ -12507,7 +12507,7 @@ static TypeTableEntry *ir_analyze_fn_call(IrAnalyze *ira, IrInstructionCall *cal
12507 VariableTableEntry *arg_var = get_fn_var_by_index(parent_fn_entry, arg_tuple_i);12507 VariableTableEntry *arg_var = get_fn_var_by_index(parent_fn_entry, arg_tuple_i);
12508 if (arg_var == nullptr) {12508 if (arg_var == nullptr) {
12509 ir_add_error(ira, arg,12509 ir_add_error(ira, arg,
12510 buf_sprintf("compiler bug: var args can't handle void. https://github.com/zig-lang/zig/issues/557"));12510 buf_sprintf("compiler bug: var args can't handle void. https://github.com/ziglang/zig/issues/557"));
12511 return ira->codegen->builtin_types.entry_invalid;12511 return ira->codegen->builtin_types.entry_invalid;
12512 }12512 }
12513 IrInstruction *arg_var_ptr_inst = ir_get_var_ptr(ira, arg, arg_var, true, false);12513 IrInstruction *arg_var_ptr_inst = ir_get_var_ptr(ira, arg, arg_var, true, false);
std/atomic/queue.zig+1-1
...@@ -16,7 +16,7 @@ pub fn Queue(comptime T: type) type {...@@ -16,7 +16,7 @@ pub fn Queue(comptime T: type) type {
16 data: T,16 data: T,
17 };17 };
1818
19 // TODO: well defined copy elision: https://github.com/zig-lang/zig/issues/28719 // TODO: well defined copy elision: https://github.com/ziglang/zig/issues/287
20 pub fn init(self: &Self) void {20 pub fn init(self: &Self) void {
21 self.root.next = null;21 self.root.next = null;
22 self.head = &self.root;22 self.head = &self.root;
std/event.zig+4-4
...@@ -148,7 +148,7 @@ pub const Loop = struct {...@@ -148,7 +148,7 @@ pub const Loop = struct {
148};148};
149149
150pub async fn connect(loop: &Loop, _address: &const std.net.Address) !std.os.File {150pub async fn connect(loop: &Loop, _address: &const std.net.Address) !std.os.File {
151 var address = _address.*; // TODO https://github.com/zig-lang/zig/issues/733151 var address = _address.*; // TODO https://github.com/ziglang/zig/issues/733
152152
153 const sockfd = try std.os.posixSocket(posix.AF_INET, posix.SOCK_STREAM | posix.SOCK_CLOEXEC | posix.SOCK_NONBLOCK, posix.PROTO_tcp);153 const sockfd = try std.os.posixSocket(posix.AF_INET, posix.SOCK_STREAM | posix.SOCK_CLOEXEC | posix.SOCK_NONBLOCK, posix.PROTO_tcp);
154 errdefer std.os.close(sockfd);154 errdefer std.os.close(sockfd);
...@@ -172,7 +172,7 @@ test "listen on a port, send bytes, receive bytes" {...@@ -172,7 +172,7 @@ test "listen on a port, send bytes, receive bytes" {
172172
173 async<&mem.Allocator> fn handler(tcp_server: &TcpServer, _addr: &const std.net.Address, _socket: &const std.os.File) void {173 async<&mem.Allocator> fn handler(tcp_server: &TcpServer, _addr: &const std.net.Address, _socket: &const std.os.File) void {
174 const self = @fieldParentPtr(Self, "tcp_server", tcp_server);174 const self = @fieldParentPtr(Self, "tcp_server", tcp_server);
175 var socket = _socket.*; // TODO https://github.com/zig-lang/zig/issues/733175 var socket = _socket.*; // TODO https://github.com/ziglang/zig/issues/733
176 defer socket.close();176 defer socket.close();
177 const next_handler = async errorableHandler(self, _addr, socket) catch |err| switch (err) {177 const next_handler = async errorableHandler(self, _addr, socket) catch |err| switch (err) {
178 error.OutOfMemory => @panic("unable to handle connection: out of memory"),178 error.OutOfMemory => @panic("unable to handle connection: out of memory"),
...@@ -186,8 +186,8 @@ test "listen on a port, send bytes, receive bytes" {...@@ -186,8 +186,8 @@ test "listen on a port, send bytes, receive bytes" {
186 }186 }
187187
188 async fn errorableHandler(self: &Self, _addr: &const std.net.Address, _socket: &const std.os.File) !void {188 async fn errorableHandler(self: &Self, _addr: &const std.net.Address, _socket: &const std.os.File) !void {
189 const addr = _addr.*; // TODO https://github.com/zig-lang/zig/issues/733189 const addr = _addr.*; // TODO https://github.com/ziglang/zig/issues/733
190 var socket = _socket.*; // TODO https://github.com/zig-lang/zig/issues/733190 var socket = _socket.*; // TODO https://github.com/ziglang/zig/issues/733
191191
192 var adapter = std.io.FileOutStream.init(&socket);192 var adapter = std.io.FileOutStream.init(&socket);
193 var stream = &adapter.stream;193 var stream = &adapter.stream;
std/fmt/index.zig+1-1
...@@ -824,7 +824,7 @@ test "fmt.format" {...@@ -824,7 +824,7 @@ test "fmt.format" {
824 try testFmt("file size: 63MiB\n", "file size: {Bi}\n", usize(63 * 1024 * 1024));824 try testFmt("file size: 63MiB\n", "file size: {Bi}\n", usize(63 * 1024 * 1024));
825 try testFmt("file size: 66.06MB\n", "file size: {B2}\n", usize(63 * 1024 * 1024));825 try testFmt("file size: 66.06MB\n", "file size: {B2}\n", usize(63 * 1024 * 1024));
826 {826 {
827 // Dummy field because of https://github.com/zig-lang/zig/issues/557.827 // Dummy field because of https://github.com/ziglang/zig/issues/557.
828 const Struct = struct {828 const Struct = struct {
829 unused: u8,829 unused: u8,
830 };830 };
std/mem.zig+1-1
...@@ -702,7 +702,7 @@ test "std.mem.rotate" {...@@ -702,7 +702,7 @@ test "std.mem.rotate" {
702 }));702 }));
703}703}
704704
705// TODO: When https://github.com/zig-lang/zig/issues/649 is solved these can be done by705// TODO: When https://github.com/ziglang/zig/issues/649 is solved these can be done by
706// endian-casting the pointer and then dereferencing706// endian-casting the pointer and then dereferencing
707707
708pub fn endianSwapIfLe(comptime T: type, x: T) T {708pub fn endianSwapIfLe(comptime T: type, x: T) T {
std/os/index.zig+3-3
...@@ -239,7 +239,7 @@ pub fn close(handle: FileHandle) void {...@@ -239,7 +239,7 @@ pub fn close(handle: FileHandle) void {
239/// Calls POSIX read, and keeps trying if it gets interrupted.239/// Calls POSIX read, and keeps trying if it gets interrupted.
240pub fn posixRead(fd: i32, buf: []u8) !void {240pub fn posixRead(fd: i32, buf: []u8) !void {
241 // Linux can return EINVAL when read amount is > 0x7ffff000241 // Linux can return EINVAL when read amount is > 0x7ffff000
242 // See https://github.com/zig-lang/zig/pull/743#issuecomment-363158274242 // See https://github.com/ziglang/zig/pull/743#issuecomment-363158274
243 const max_buf_len = 0x7ffff000;243 const max_buf_len = 0x7ffff000;
244244
245 var index: usize = 0;245 var index: usize = 0;
...@@ -281,7 +281,7 @@ pub const PosixWriteError = error{...@@ -281,7 +281,7 @@ pub const PosixWriteError = error{
281/// Calls POSIX write, and keeps trying if it gets interrupted.281/// Calls POSIX write, and keeps trying if it gets interrupted.
282pub fn posixWrite(fd: i32, bytes: []const u8) !void {282pub fn posixWrite(fd: i32, bytes: []const u8) !void {
283 // Linux can return EINVAL when write amount is > 0x7ffff000283 // Linux can return EINVAL when write amount is > 0x7ffff000
284 // See https://github.com/zig-lang/zig/pull/743#issuecomment-363165856284 // See https://github.com/ziglang/zig/pull/743#issuecomment-363165856
285 const max_bytes_len = 0x7ffff000;285 const max_bytes_len = 0x7ffff000;
286286
287 var index: usize = 0;287 var index: usize = 0;
...@@ -2513,7 +2513,7 @@ pub const SpawnThreadError = error{...@@ -2513,7 +2513,7 @@ pub const SpawnThreadError = error{
2513/// caller must call wait on the returned thread2513/// caller must call wait on the returned thread
2514pub fn spawnThread(context: var, comptime startFn: var) SpawnThreadError!&Thread {2514pub fn spawnThread(context: var, comptime startFn: var) SpawnThreadError!&Thread {
2515 // TODO compile-time call graph analysis to determine stack upper bound2515 // TODO compile-time call graph analysis to determine stack upper bound
2516 // https://github.com/zig-lang/zig/issues/1572516 // https://github.com/ziglang/zig/issues/157
2517 const default_stack_size = 8 * 1024 * 1024;2517 const default_stack_size = 8 * 1024 * 1024;
25182518
2519 const Context = @typeOf(context);2519 const Context = @typeOf(context);
std/os/test.zig+1-1
...@@ -12,7 +12,7 @@ const AtomicOrder = builtin.AtomicOrder;...@@ -12,7 +12,7 @@ const AtomicOrder = builtin.AtomicOrder;
12test "makePath, put some files in it, deleteTree" {12test "makePath, put some files in it, deleteTree" {
13 if (builtin.os == builtin.Os.windows) {13 if (builtin.os == builtin.Os.windows) {
14 // TODO implement os.Dir for windows14 // TODO implement os.Dir for windows
15 // https://github.com/zig-lang/zig/issues/70915 // https://github.com/ziglang/zig/issues/709
16 return;16 return;
17 }17 }
18 try os.makePath(a, "os_test_tmp/b/c");18 try os.makePath(a, "os_test_tmp/b/c");
std/os/time.zig+1-1
...@@ -135,7 +135,7 @@ pub const Timer = struct {...@@ -135,7 +135,7 @@ pub const Timer = struct {
135 135
136 //At some point we may change our minds on RAW, but for now we're136 //At some point we may change our minds on RAW, but for now we're
137 // sticking with posix standard MONOTONIC. For more information, see: 137 // sticking with posix standard MONOTONIC. For more information, see:
138 // https://github.com/zig-lang/zig/pull/933138 // https://github.com/ziglang/zig/pull/933
139 //139 //
140 //const monotonic_clock_id = switch(builtin.os) {140 //const monotonic_clock_id = switch(builtin.os) {
141 // Os.linux => linux.CLOCK_MONOTONIC_RAW,141 // Os.linux => linux.CLOCK_MONOTONIC_RAW,
std/special/compiler_rt/comparetf2.zig+2-2
...@@ -1,4 +1,4 @@...@@ -1,4 +1,4 @@
1// TODO https://github.com/zig-lang/zig/issues/3051// TODO https://github.com/ziglang/zig/issues/305
2// and then make the return types of some of these functions the enum instead of c_int2// and then make the return types of some of these functions the enum instead of c_int
3const LE_LESS = c_int(-1);3const LE_LESS = c_int(-1);
4const LE_EQUAL = c_int(0);4const LE_EQUAL = c_int(0);
...@@ -59,7 +59,7 @@ pub extern fn __letf2(a: f128, b: f128) c_int {...@@ -59,7 +59,7 @@ pub extern fn __letf2(a: f128, b: f128) c_int {
59 ;59 ;
60}60}
6161
62// TODO https://github.com/zig-lang/zig/issues/30562// TODO https://github.com/ziglang/zig/issues/305
63// and then make the return types of some of these functions the enum instead of c_int63// and then make the return types of some of these functions the enum instead of c_int
64const GE_LESS = c_int(-1);64const GE_LESS = c_int(-1);
65const GE_EQUAL = c_int(0);65const GE_EQUAL = c_int(0);
std/zig/ast.zig+2-2
...@@ -113,7 +113,7 @@ pub const Error = union(enum) {...@@ -113,7 +113,7 @@ pub const Error = union(enum) {
113113
114 pub fn render(self: &Error, tokens: &Tree.TokenList, stream: var) !void {114 pub fn render(self: &Error, tokens: &Tree.TokenList, stream: var) !void {
115 switch (self.*) {115 switch (self.*) {
116 // TODO https://github.com/zig-lang/zig/issues/683116 // TODO https://github.com/ziglang/zig/issues/683
117 @TagType(Error).InvalidToken => |*x| return x.render(tokens, stream),117 @TagType(Error).InvalidToken => |*x| return x.render(tokens, stream),
118 @TagType(Error).ExpectedVarDeclOrFn => |*x| return x.render(tokens, stream),118 @TagType(Error).ExpectedVarDeclOrFn => |*x| return x.render(tokens, stream),
119 @TagType(Error).ExpectedAggregateKw => |*x| return x.render(tokens, stream),119 @TagType(Error).ExpectedAggregateKw => |*x| return x.render(tokens, stream),
...@@ -137,7 +137,7 @@ pub const Error = union(enum) {...@@ -137,7 +137,7 @@ pub const Error = union(enum) {
137137
138 pub fn loc(self: &Error) TokenIndex {138 pub fn loc(self: &Error) TokenIndex {
139 switch (self.*) {139 switch (self.*) {
140 // TODO https://github.com/zig-lang/zig/issues/683140 // TODO https://github.com/ziglang/zig/issues/683
141 @TagType(Error).InvalidToken => |x| return x.token,141 @TagType(Error).InvalidToken => |x| return x.token,
142 @TagType(Error).ExpectedVarDeclOrFn => |x| return x.token,142 @TagType(Error).ExpectedVarDeclOrFn => |x| return x.token,
143 @TagType(Error).ExpectedAggregateKw => |x| return x.token,143 @TagType(Error).ExpectedAggregateKw => |x| return x.token,
test/build_examples.zig+1-1
...@@ -9,7 +9,7 @@ pub fn addCases(cases: &tests.BuildExamplesContext) void {...@@ -9,7 +9,7 @@ pub fn addCases(cases: &tests.BuildExamplesContext) void {
9 cases.add("example/guess_number/main.zig");9 cases.add("example/guess_number/main.zig");
10 if (!is_windows) {10 if (!is_windows) {
11 // TODO get this test passing on windows11 // TODO get this test passing on windows
12 // See https://github.com/zig-lang/zig/issues/53812 // See https://github.com/ziglang/zig/issues/538
13 cases.addBuildFile("example/shared_library/build.zig");13 cases.addBuildFile("example/shared_library/build.zig");
14 cases.addBuildFile("example/mix_o_files/build.zig");14 cases.addBuildFile("example/mix_o_files/build.zig");
15 }15 }
test/cases/coroutines.zig+1-1
...@@ -204,7 +204,7 @@ test "error return trace across suspend points - async return" {...@@ -204,7 +204,7 @@ test "error return trace across suspend points - async return" {
204 cancel p2;204 cancel p2;
205}205}
206206
207// TODO https://github.com/zig-lang/zig/issues/760207// TODO https://github.com/ziglang/zig/issues/760
208fn nonFailing() (promise->error!void) {208fn nonFailing() (promise->error!void) {
209 return async<std.debug.global_allocator> suspendThenFail() catch unreachable;209 return async<std.debug.global_allocator> suspendThenFail() catch unreachable;
210}210}
test/cases/misc.zig+1-1
...@@ -543,7 +543,7 @@ test "@typeName" {...@@ -543,7 +543,7 @@ test "@typeName" {
543 comptime {543 comptime {
544 assert(mem.eql(u8, @typeName(i64), "i64"));544 assert(mem.eql(u8, @typeName(i64), "i64"));
545 assert(mem.eql(u8, @typeName(&usize), "&usize"));545 assert(mem.eql(u8, @typeName(&usize), "&usize"));
546 // https://github.com/zig-lang/zig/issues/675546 // https://github.com/ziglang/zig/issues/675
547 assert(mem.eql(u8, @typeName(TypeFromFn(u8)), "TypeFromFn(u8)"));547 assert(mem.eql(u8, @typeName(TypeFromFn(u8)), "TypeFromFn(u8)"));
548 assert(mem.eql(u8, @typeName(Struct), "Struct"));548 assert(mem.eql(u8, @typeName(Struct), "Struct"));
549 assert(mem.eql(u8, @typeName(Union), "Union"));549 assert(mem.eql(u8, @typeName(Union), "Union"));
test/compare_output.zig+2-2
...@@ -131,7 +131,7 @@ pub fn addCases(cases: &tests.CompareOutputContext) void {...@@ -131,7 +131,7 @@ pub fn addCases(cases: &tests.CompareOutputContext) void {
131 \\const is_windows = builtin.os == builtin.Os.windows;131 \\const is_windows = builtin.os == builtin.Os.windows;
132 \\const c = @cImport({132 \\const c = @cImport({
133 \\ if (is_windows) {133 \\ if (is_windows) {
134 \\ // See https://github.com/zig-lang/zig/issues/515134 \\ // See https://github.com/ziglang/zig/issues/515
135 \\ @cDefine("_NO_CRT_STDIO_INLINE", "1");135 \\ @cDefine("_NO_CRT_STDIO_INLINE", "1");
136 \\ @cInclude("io.h");136 \\ @cInclude("io.h");
137 \\ @cInclude("fcntl.h");137 \\ @cInclude("fcntl.h");
...@@ -316,7 +316,7 @@ pub fn addCases(cases: &tests.CompareOutputContext) void {...@@ -316,7 +316,7 @@ pub fn addCases(cases: &tests.CompareOutputContext) void {
316 \\const is_windows = builtin.os == builtin.Os.windows;316 \\const is_windows = builtin.os == builtin.Os.windows;
317 \\const c = @cImport({317 \\const c = @cImport({
318 \\ if (is_windows) {318 \\ if (is_windows) {
319 \\ // See https://github.com/zig-lang/zig/issues/515319 \\ // See https://github.com/ziglang/zig/issues/515
320 \\ @cDefine("_NO_CRT_STDIO_INLINE", "1");320 \\ @cDefine("_NO_CRT_STDIO_INLINE", "1");
321 \\ @cInclude("io.h");321 \\ @cInclude("io.h");
322 \\ @cInclude("fcntl.h");322 \\ @cInclude("fcntl.h");