zig/lib/std
Andrew Kelley ada0010471 compiler: move unions into InternPool
There are a couple concepts here worth understanding:

Key.UnionType - This type is available *before* resolving the union's
fields. The enum tag type, number of fields, and field names, field
types, and field alignments are not available with this.

InternPool.UnionType - This one can be obtained from the above type with
`InternPool.loadUnionType` which asserts that the union's enum tag type
has been resolved. This one has all the information available.

Additionally:

* ZIR: Turn an unused bit into `any_aligned_fields` flag to help
  semantic analysis know whether a union has explicit alignment on any
  fields (usually not).
* Sema: delete `resolveTypeRequiresComptime` which had the same type
  signature and near-duplicate logic to `typeRequiresComptime`.
  - Make opaque types not report comptime-only (this was inconsistent
    between the two implementations of this function).
* Implement accepted proposal #12556 which is a breaking change.
2023-08-22 13:54:14 -07:00
..
atomic all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
Build AstGen: add result location analysis pass 2023-08-20 11:58:14 -07:00
c dragonfly: std.c: more decls 2023-08-15 17:29:35 -04:00
compress all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
crypto std.crypto.aead: Consistent decryption tail and doc fixes (#16781) 2023-08-14 21:39:51 +02:00
dwarf compiler: move unions into InternPool 2023-08-22 13:54:14 -07:00
event all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
fmt re-enable test "fmt.parseFloat nan and inf" after llvm fix 2023-07-25 11:03:11 -07:00
fs fs tests: Use 127.0.0.1 instead of localhost as the server in UNC transformation 2023-08-18 12:21:54 -07:00
hash wyhash: keep tail bytes on iterative update 2023-08-05 15:30:50 -07:00
heap Update default stack frames for general_purpose_allocator.zig 2023-08-21 11:22:22 -07:00
http std.http.Server: use correct header for Transfer-Encoding 2023-08-10 17:45:37 -07:00
io Fix type mismatch for Reader.readIntoBoundedBytes (#16416) 2023-07-24 17:32:06 -07:00
json std.json: avoid stale pointers when parsing Value (#16864) 2023-08-17 07:52:46 -04:00
math AstGen: disallow '-0' integer literal 2023-08-21 11:47:31 +03:00
mem add error when passing a non-single-item pointer to allocator.destroy 2023-07-25 10:55:04 -07:00
meta all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
net
os Add NetworkNotFound to ReadLinkError 2023-08-18 18:07:16 -07:00
rand Use builtin inference over @as where possible 2023-07-24 10:23:51 -07:00
sort improve documentation of std.sort.*Context functions (#16145) 2023-06-27 00:51:06 -07:00
target
testing all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
Thread Fix counting in SingleThreadedRwLock's tryLockShared (#16560) 2023-07-26 08:19:52 -05:00
time all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
tz
unicode all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
valgrind all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
zig Add NetworkNotFound to ReadLinkError 2023-08-18 18:07:16 -07:00
array_hash_map.zig compiler: rework inferred error sets 2023-07-18 19:02:05 -07:00
array_list.zig std: reword some comments 2023-07-16 18:32:52 -07:00
ascii.zig
atomic.zig
base64.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
bit_set.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
BitStack.zig std.json: Unify stringify and writeStream (#16405) 2023-07-21 19:56:46 -04:00
bounded_array.zig Smaller memory footprint for BoundedArray (#16299) 2023-07-03 13:58:03 -04:00
buf_map.zig
buf_set.zig
Build.zig std.Build: check for native CPU when serializing CrossTarget 2023-08-16 18:05:18 -07:00
builtin.zig std: finish cleanup up asm 2023-07-31 03:49:21 -04:00
c.zig Revert "std.c: exposing timer api" 2023-07-31 10:51:44 -07:00
child_process.zig Windows: Fix TooManyParentDirs handling for paths that shouldn't be cwd-relative 2023-08-11 18:58:40 -07:00
coff.zig coff: handle the case of there being no PDB path 2023-08-15 10:20:11 -04:00
compress.zig
comptime_string_map.zig std.sort.block: add safety check for lessThan return value 2023-06-26 17:50:10 -07:00
crypto.zig
cstr.zig std.cstr: deprecate namespace 2023-06-25 14:51:03 -07:00
debug.zig Merge pull request #16824 from mikdusan/bsd 2023-08-17 12:14:30 -07:00
dwarf.zig std: remove some unused imports (#16710) 2023-08-06 15:18:50 -04:00
dynamic_library.zig Windows: Fix TooManyParentDirs handling for paths that shouldn't be cwd-relative 2023-08-11 18:58:40 -07:00
elf.zig std: remove some unused imports (#16710) 2023-08-06 15:18:50 -04:00
enums.zig std.sort.block: add safety check for lessThan return value 2023-06-26 17:50:10 -07:00
event.zig
fifo.zig std: remove some unused imports (#16710) 2023-08-06 15:18:50 -04:00
fmt.zig Make NaNs quiet by default and other NaN tidy-up (#16826) 2023-08-18 02:07:49 -04:00
fs.zig fs.selfExePath: Make the Windows implementation follow symlinks 2023-08-19 17:48:18 -07:00
hash.zig
hash_map.zig std: remove some unused imports (#16710) 2023-08-06 15:18:50 -04:00
heap.zig std: remove some unused imports (#16710) 2023-08-06 15:18:50 -04:00
http.zig Fix the http.Server test and add it to the set of tests in http.zig 2023-07-23 13:58:34 -07:00
Ini.zig
io.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
json.zig std.json: Unify stringify and writeStream (#16405) 2023-07-21 19:56:46 -04:00
leb128.zig Use builtin inference over @as where possible 2023-07-24 10:23:51 -07:00
linked_list.zig SinglyLinkedList: rename invert -> reverse 2023-07-15 21:37:54 -07:00
log.zig
macho.zig macho: add helper for accessing tools array in LC_BUILD_VERSION cmd 2023-08-18 11:55:29 +02:00
math.zig Make NaNs quiet by default and other NaN tidy-up (#16826) 2023-08-18 02:07:49 -04:00
mem.zig std.mem.sliceAsBytes: support arrays of zero-bit types 2023-08-09 05:47:13 -04:00
meta.zig compiler: move unions into InternPool 2023-08-22 13:54:14 -07:00
multi_array_list.zig Add more sorting functions to MultiArrayList (#16377) 2023-07-11 06:37:51 +00:00
net.zig Unrevert "Sema: preserve extern struct field alignment" 2023-06-30 23:24:52 -04:00
once.zig
os.zig os.realpathW: Reduce the number of OpenFile calls for directories 2023-08-19 22:29:46 -07:00
packed_int_array.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
pdb.zig std.pdb: fix incorrect field alignment in ptrCast 2023-06-30 23:23:03 -04:00
priority_dequeue.zig [priority_dequeue] Fix out-of-bounds access 2023-06-22 02:03:53 -07:00
priority_queue.zig [priority_queue] Simplify sifting & fix edge case 2023-07-24 12:58:19 -07:00
process.zig std.process.totalSystemMemory: return correct error type on FreeBSD 2023-08-01 19:27:04 -07:00
Progress.zig std.Progress: add optional unit to progress indicator 2023-07-25 13:51:22 +01:00
rand.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
RingBuffer.zig
segmented_list.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
SemanticVersion.zig
simd.zig Remove len parameter from splat in standard lib 2023-07-12 15:35:57 -07:00
sort.zig improve documentation of std.sort.*Context functions (#16145) 2023-06-27 00:51:06 -07:00
start.zig Plan 9: add more features to std.os.plan9 2023-08-02 18:19:07 -04:00
start_windows_tls.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
std.zig autodoc: new layout (#16715) 2023-08-06 18:12:05 +02:00
tar.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
target.zig std.target: mark helper functions inline 2023-08-03 09:37:10 -07:00
testing.zig std.testing.expectEqualSlices: On failure, print address for pointer types 2023-08-05 11:54:26 -07:00
Thread.zig Merge pull request #16622 from jacobly0/cbe-asm-compat 2023-07-31 15:34:32 -07:00
time.zig implement std.time.sleep for uefi 2023-07-07 11:57:09 -07:00
treap.zig
tz.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
unicode.zig std.json: Fix decoding of UTF-16 surrogate pairs (#16830) 2023-08-15 09:11:59 -04:00
Uri.zig std.Uri: Don't double-escape escaped query parameters (#16043) 2023-07-27 13:18:48 -04:00
valgrind.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
wasm.zig
zig.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00