zig/lib/std
Andrew Kelley bf3ac66150
remove type coercion from array values to references
* Implements #3768. This is a sweeping breaking change that requires
   many (trivial) edits to Zig source code. Array values no longer
   coerced to slices; however one may use `&` to obtain a reference to
   an array value, which may then be coerced to a slice.

 * Adds `IrInstruction::dump`, for debugging purposes. It's useful to
   call to inspect the instruction when debugging Zig IR.

 * Fixes bugs with result location semantics. See the new behavior test
   cases, and compile error test cases.

 * Fixes bugs with `@typeInfo` not properly resolving const values.

 * Behavior tests are passing but std lib tests are not yet. There
   is more work to do before merging this branch.
2019-11-27 03:37:50 -05:00
..
atomic rename std.heap.direct_allocator to std.heap.page_allocator 2019-11-25 17:25:06 -05:00
build
c update the codebase to use @as 2019-11-08 15:57:24 -05:00
crypto remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
debug zig fmt 2019-11-25 13:53:13 -05:00
event remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
fmt update more of the std lib to use @as 2019-11-08 15:57:25 -05:00
fs remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
hash remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
heap
http remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
io remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
json std.json.Value: added dumpStream(), utilize WriteStream for dump() 2019-11-06 18:21:52 -05:00
math update more of the std lib to use @as 2019-11-08 15:57:25 -05:00
meta remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
net Make StreamServer return address of accecpted client 2019-11-19 01:06:04 +00:00
os remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
rand update the codebase to use @as 2019-11-08 15:57:24 -05:00
special rename std.heap.direct_allocator to std.heap.page_allocator 2019-11-25 17:25:06 -05:00
time
unicode rename std.heap.direct_allocator to std.heap.page_allocator 2019-11-25 17:25:06 -05:00
valgrind string literals are now null terminated 2019-11-21 20:43:41 -05:00
zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
array_list.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
ascii.zig update the codebase to use @as 2019-11-08 15:57:24 -05:00
atomic.zig
base64.zig
bloom_filter.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
buf_map.zig rename std.heap.direct_allocator to std.heap.page_allocator 2019-11-25 17:25:06 -05:00
buf_set.zig rename std.heap.direct_allocator to std.heap.page_allocator 2019-11-25 17:25:06 -05:00
buffer.zig make std.mem.toSlice use null terminated pointers 2019-11-24 21:21:05 -05:00
build.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
builtin.zig zig fmt 2019-11-25 13:53:13 -05:00
c.zig more sentinel-terminated pointers std lib integration 2019-11-25 00:43:36 -05:00
child_process.zig zig fmt 2019-11-25 13:53:13 -05:00
coff.zig add cast to not hit #2561 2019-11-21 23:21:51 -05:00
crypto.zig crypto: Add AES implementation 2019-11-01 22:42:25 -04:00
cstr.zig string literals are now null terminated 2019-11-21 20:43:41 -05:00
debug.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
dwarf.zig
dynamic_library.zig std.elf: breaking improvements to the API 2019-11-26 14:25:35 -05:00
elf.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
event.zig std lib networking improvements, especially non-blocking I/O 2019-10-29 22:59:30 -04:00
fifo.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
fmt.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
fs.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
hash.zig merge dumps tool: merging ast nodes 2019-10-11 18:13:24 -04:00
hash_map.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
heap.zig move logic to the appropriate layers; add new compile error 2019-11-25 18:46:17 -05:00
http.zig
io.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
json.zig std.io.getStdOut and related fns no longer can error 2019-11-13 04:01:40 +00:00
lazy_init.zig use enum with atomics in std lib 2019-11-12 17:55:54 +02:00
linked_list.zig
macho.zig
math.zig add std.math.tau constant (equivalent to 2 * pi) 2019-11-19 06:20:20 +00:00
mem.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
meta.zig string literals are now null terminated 2019-11-21 20:43:41 -05:00
mutex.zig rename std.heap.direct_allocator to std.heap.page_allocator 2019-11-25 17:25:06 -05:00
net.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
os.zig move logic to the appropriate layers; add new compile error 2019-11-25 18:46:17 -05:00
packed_int_array.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
parker.zig fixups and zig fmt 2019-11-08 01:52:23 -05:00
pdb.zig update the codebase to use @as 2019-11-08 15:57:24 -05:00
priority_queue.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
process.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
progress.zig std.io.getStdOut and related fns no longer can error 2019-11-13 04:01:40 +00:00
rand.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
rb.zig
segmented_list.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
sort.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
spinlock.zig use @atomicStore in std lib 2019-11-13 00:52:15 +02:00
std.zig Merge branch 'adaptive_lock' of https://github.com/kprotty/zig into kprotty-adaptive_lock 2019-11-08 01:21:22 -05:00
target.zig std.elf: breaking improvements to the API 2019-11-26 14:25:35 -05:00
testing.zig std.testing.expectEqual: show differing pointer values 2019-11-19 06:22:34 +00:00
thread.zig string literals are now null terminated 2019-11-21 20:43:41 -05:00
time.zig update the codebase to use @as 2019-11-08 15:57:24 -05:00
unicode.zig remove type coercion from array values to references 2019-11-27 03:37:50 -05:00
valgrind.zig std: add a couple of tests to valgrind module 2019-11-17 14:16:09 +11:00
zig.zig