zig/lib/std
Andrew Kelley 7453f56e67 stage2: explicitly tagged enums no longer have one possible value
Previously, Zig had inconsistent semantics for an enum like this:

`enum(u8){zero = 0}`

Although in theory this can only hold one possible value, the tag
`zero`, Zig no longer will treat the type this way. It will do loads and
stores, as if the type has runtime bits.

Closes #12619

Tests passed locally:
 * test-behavior
 * test-cases
2022-08-24 22:20:31 -07:00
..
atomic
build Enables std.build.TranslateCStep to use stage1/stage2 selectively. Unbreaks projects using stage1 and manual TranslateC 2022-08-24 15:41:27 -04:00
c AstGen: disallow leading zeroes in int literals and int types 2022-08-18 19:54:51 +03:00
compress stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
crypto stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
dwarf
event stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
fmt stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
fs Sema: fix parameter of type 'T' must be comptime error 2022-08-22 11:16:36 +03:00
hash stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
heap
http
io std.io.Reader: bounded array functions 2022-08-22 14:07:22 +03:00
json std.json: Fix parsing of large numbers 2022-07-23 13:52:16 +03:00
math Merge pull request #12574 from Vexu/remove-bit-op-type-param 2022-08-24 15:57:44 -04:00
mem Revert "std.mem.Allocator: add alignedCreate" 2022-07-23 15:30:12 +03:00
meta
net
os stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
rand
target std: rename std.Target.systemz to .s390x 2022-07-28 23:22:44 -07:00
testing
Thread stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
time
tz
unicode
valgrind std.valgrind.callgrind: fix string type 2022-08-22 13:55:00 +03:00
x std.fmt: require specifier for unwrapping ?T and E!T 2022-07-26 11:25:49 -07:00
zig Merge pull request #12574 from Vexu/remove-bit-op-type-param 2022-08-24 15:57:44 -04:00
array_hash_map.zig
array_list.zig link.MachO: use accurate alignment attribute on pointers 2022-08-10 22:28:05 -07:00
ascii.zig
atomic.zig
base64.zig
bit_set.zig stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
bounded_array.zig AstGen: detect declarations shadowing locals 2022-08-16 20:35:03 +03:00
buf_map.zig
buf_set.zig
build.zig build system: add flag for -fstack-protector 2022-08-22 15:11:34 -07:00
builtin.zig make self-hosted the default compiler 2022-08-19 16:45:15 -07:00
c.zig pthread_key_create: make it build with stage2 2022-08-24 16:35:01 -04:00
child_process.zig
coff.zig fix coff.zig with const qualifier convert problem 2022-08-24 22:49:47 +02:00
compress.zig
comptime_string_map.zig
crypto.zig
cstr.zig
debug.zig std.debug: DWARFv5 fixes 2022-08-23 21:11:02 -07:00
dwarf.zig std.debug: DWARFv5 fixes 2022-08-23 21:11:02 -07:00
dynamic_library.zig
elf.zig stage2: explicitly tagged enums no longer have one possible value 2022-08-24 22:20:31 -07:00
enums.zig std.enums: make directEnumArrayLen public 2022-08-05 15:41:03 +03:00
event.zig
fifo.zig
fmt.zig stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
fs.zig std.fs: Fix WalkerEntry.dir not always being the containing dir 2022-08-15 11:25:51 +03:00
hash_map.zig
hash.zig
heap.zig stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
http.zig
io.zig
json.zig std.json: expose encodeJsonString and encodeJsonStringChars 2022-07-24 11:51:59 +03:00
leb128.zig stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
linked_list.zig
log.zig
macho.zig macho: add missing align cast in LoadCommandIterator 2022-08-03 21:19:41 +02:00
math.zig Merge pull request #12574 from Vexu/remove-bit-op-type-param 2022-08-24 15:57:44 -04:00
mem.zig docs: remove confusion about align[For|Back]ward 2022-08-24 17:18:29 -04:00
meta.zig Adds std.meta.FnPtr for easier stage1/stage2 compatibility 2022-08-24 03:13:44 -04:00
multi_array_list.zig
net.zig std.mem: add first method to SplitIterator and SplitBackwardsIterator 2022-07-25 22:04:30 +03:00
once.zig
os.zig Revert "std.os: add INVALID_SOCKET (#12081)" 2022-08-23 21:30:23 -07:00
packed_int_array.zig stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
pdb.zig libstd: fix off-by-one error in def of ProcSym in pdb 2022-08-17 16:36:02 -04:00
priority_dequeue.zig stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
priority_queue.zig PriorityQueue: use compareFn in update() 2022-07-22 19:25:38 +03:00
process.zig std.mem: add first method to SplitIterator and SplitBackwardsIterator 2022-07-25 22:04:30 +03:00
Progress.zig
rand.zig stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
segmented_list.zig
SemanticVersion.zig std.mem: add first method to SplitIterator and SplitBackwardsIterator 2022-07-25 22:04:30 +03:00
simd.zig SIMD size suggestions: suggestions code now compiles, added more 2022-07-22 18:58:43 +03:00
sort.zig
start_windows_tls.zig
start.zig remove 'builtin.stage2_arch', Sema is smart enough now 2022-08-07 16:07:08 -07:00
std.zig
target.zig improved ABI alignment/size for >= 128-bit integers 2022-08-18 20:34:36 -07:00
testing.zig std.testing: make the caret indicator line more helpful 2022-07-25 15:51:22 +03:00
Thread.zig
time.zig
treap.zig
tz.zig
unicode.zig
valgrind.zig
wasm.zig
x.zig
zig.zig std.Target gains ObjectFormat field 2022-08-18 18:58:28 -07:00