zig/lib/std
mlugg 83991efe10
compiler: yet more panic handler changes
* `std.builtin.Panic` -> `std.builtin.panic`, because it is a namespace.
* `root.Panic` -> `root.panic` for the same reason. There are type
  checks so that we still allow the legacy `pub fn panic` strategy in
  the 0.14.0 release.
* `std.debug.SimplePanic` -> `std.debug.simple_panic`, same reason.
* `std.debug.NoPanic` -> `std.debug.no_panic`, same reason.
* `std.debug.FormattedPanic` is now a function `std.debug.FullPanic`
  which takes as input a `panicFn` and returns a namespace with all the
  panic functions. This handles the incredibly common case of just
  wanting to override how the message is printed, whilst keeping nice
  formatted panics.
* Remove `std.builtin.panic.messages`; now, every safety panic has its
  own function. This reduces binary bloat, as calls to these functions
  no longer need to prepare any arguments (aside from the error return
  trace).
* Remove some legacy declarations, since a zig1.wasm update has
  happened. Most of these were related to the panic handler, but a quick
  grep for "zig1" brought up a couple more results too.

Also, add some missing type checks to Sema.

Resolves: #22584

formatted -> full
2025-01-24 19:29:51 +00:00
..
Build Merge pull request #22511 from apwadkar/master 2025-01-20 22:02:38 -05:00
c adding std.c.TCP.NODELAY for macos (#22404) 2025-01-23 04:01:05 +00:00
compress add test coverage for previous commit 2025-01-20 21:41:30 -08:00
crypto x86_64: fix crashes compiling the compiler and tests 2025-01-16 20:47:30 -05:00
debug compiler: yet more panic handler changes 2025-01-24 19:29:51 +00:00
dwarf Dwarf: remove redundant debug info 2024-12-19 17:10:03 -05:00
fmt std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
fs Revert "Merge pull request #21540 from BratishkaErik/search-env-in-path" 2025-01-21 11:22:28 -08:00
hash all: update to std.builtin.Type.Pointer.Size field renames 2025-01-16 12:46:29 +00:00
heap Fix index calculation in WasmPageAllocator 2024-10-12 22:53:02 +02:00
http x86_64: looped instructions 2025-01-16 20:42:08 -05:00
io all: update to std.builtin.Type.Pointer.Size field renames 2025-01-16 12:46:29 +00:00
json all: update to std.builtin.Type.{Pointer,Array,StructField} field renames 2025-01-16 12:49:58 +00:00
math autodocs: reflow comment to prevent it from been put in blockquote 2025-01-18 15:45:03 +01:00
mem std.mem.Allocator: remove redundant check 2025-01-22 02:00:47 +00:00
meta all: update to std.builtin.Type.{Pointer,Array,StructField} field renames 2025-01-16 12:49:58 +00:00
net
os std.os.linux: Don't emit CFI directives if unwind tables are disabled. 2025-01-19 02:15:30 +01:00
posix x86_64: implement switch jump tables 2025-01-16 20:42:08 -05:00
process std.process.Child: add waitForSpawn 2025-01-20 00:27:19 +00:00
Random
sort compiler,lib,test,langref: migrate @setCold to @branchHint 2024-08-27 00:44:35 +01:00
tar Remove old deprecated symbols in std (#21584) 2024-10-04 13:50:25 -07:00
Target wasm: Add a nontrapping_bulk_memory_len0 feature. 2025-01-22 20:56:28 +01:00
testing
Thread x86_64: fix crashes compiling the compiler and tests 2025-01-16 20:47:30 -05:00
time std.time.epoch: Fix comments referring to epoch as 1970-10-01 2024-08-15 17:54:27 -07:00
tz
unicode
valgrind std.valgrind: Fix some compile errors. 2024-11-04 10:56:32 +01:00
zig Revert "Merge pull request #21540 from BratishkaErik/search-env-in-path" 2025-01-21 11:22:28 -08:00
zip std.zip: Add ZIP64 support for local file header extra field 2025-01-17 22:55:55 +01:00
array_hash_map.zig std.ArrayHashMap: allow passing empty values array 2025-01-15 15:11:35 -08:00
array_list.zig std.array_list: tiny refactor for pleasure 2025-01-15 15:11:35 -08:00
ascii.zig Updated ascii.zig's isWhitespace function to use switch instead of for loop. (#22094) 2024-11-29 12:26:23 -08:00
atomic.zig std.atomic: fix cache line size for RISC-V 2025-01-12 04:51:00 +01:00
base64.zig stdlib : base64 encode to writer (#20961) 2024-09-04 08:10:12 +00:00
bit_set.zig std.DynamicBitSet: remove wrong and useless comments (#21418) 2024-09-19 17:06:23 -07:00
BitStack.zig
bounded_array.zig Revert "Smaller memory footprint for BoundedArray (#16299)" 2024-08-23 22:30:10 -07:00
buf_map.zig
buf_set.zig
Build.zig std.Build: add addLibrary function (#22554) 2025-01-22 02:29:21 +00:00
builtin.zig compiler: yet more panic handler changes 2025-01-24 19:29:51 +00:00
c.zig adding std.c.TCP.NODELAY for macos (#22404) 2025-01-23 04:01:05 +00:00
coff.zig std.{coff,elf}: Remove the {MachineType,EM}.toTargetCpuArch() functions. 2024-08-23 19:56:24 +02:00
compress.zig
crypto.zig Reinstantiates AEGIS-MAC with the final construction (#22205) 2024-12-11 18:52:43 +01:00
debug.zig compiler: yet more panic handler changes 2025-01-24 19:29:51 +00:00
dwarf.zig Dwarf: cleanup emitted debug info 2024-08-22 08:44:08 +02:00
dynamic_library.zig std.dynamic_library: update to new elf API 2024-10-12 10:44:17 -07:00
elf.zig link.Elf: eliminate an O(N^2) algorithm in flush() 2024-10-12 10:44:17 -07:00
enums.zig all: update to std.builtin.Type.{Pointer,Array,StructField} field renames 2025-01-16 12:49:58 +00:00
fifo.zig
fmt.zig all: update to std.builtin.Type.{Pointer,Array,StructField} field renames 2025-01-16 12:49:58 +00:00
fs.zig fix compilation errors for fs and fs.Dir (#21643) 2024-10-17 01:08:58 +02:00
gpu.zig std.gpu: add instanceIndex 2024-11-01 02:04:27 +03:30
hash.zig std.hash.int: avoid words like "easy" and "fast" in doc comments 2024-11-24 15:30:52 -08:00
hash_map.zig Remove strict verifyContext invocation from hash_map implementation. (#22370) 2025-01-06 13:37:30 +00:00
heap.zig x86_64: implement switch jump tables 2025-01-16 20:42:08 -05:00
http.zig add std.http.WebSocket 2024-08-07 00:48:32 -07:00
io.zig all: update to std.builtin.Type.{Pointer,Array,StructField} field renames 2025-01-16 12:49:58 +00:00
json.zig
leb128.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
linked_list.zig
log.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
macho.zig
math.zig std.math: rename make_f80 to F80.toFloat and break_f80 to F80.fromFloat 2024-09-02 00:10:22 +03:00
mem.zig x86_64: rewrite arithmetic 2025-01-16 20:42:08 -05:00
meta.zig compiler: yet more panic handler changes 2025-01-24 19:29:51 +00:00
multi_array_list.zig all: update to std.builtin.Type.{Pointer,Array,StructField} field renames 2025-01-16 12:49:58 +00:00
net.zig
once.zig compiler,lib,test,langref: migrate @setCold to @branchHint 2024-08-27 00:44:35 +01:00
os.zig x86_64: implement switch jump tables 2025-01-16 20:42:08 -05:00
pdb.zig std.pdb: obey naming conventions 2024-08-29 23:43:52 +01:00
posix.zig std.posix.setsockopt: EOPNOTSUPP can be returned 2025-01-23 14:35:57 +01:00
priority_dequeue.zig
priority_queue.zig
process.zig Fix chdirC compile error 2025-01-20 15:37:57 -06:00
Progress.zig all: update to std.builtin.Type.Pointer.Size field renames 2025-01-16 12:46:29 +00:00
Random.zig all: update to std.builtin.Type.Pointer.Size field renames 2025-01-16 12:46:29 +00:00
RingBuffer.zig
segmented_list.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
SemanticVersion.zig compiler: remove anonymous struct types, unify all tuples 2024-10-31 20:42:53 +00:00
simd.zig x86_64: implement switch jump tables 2025-01-16 20:42:08 -05:00
sort.zig std.equalRange: Compute lower and upper bounds simultaneously 2024-09-23 13:03:06 -07:00
start.zig start: Don't emit CFI directives if unwind tables are disabled. 2025-01-19 02:15:30 +01:00
static_string_map.zig
std.zig std.crypto.tls: improve debuggability of encrypted connections 2024-11-07 20:25:26 -05:00
tar.zig Remove old deprecated symbols in std (#21584) 2024-10-04 13:50:25 -07:00
Target.zig compiler: yet more panic handler changes 2025-01-24 19:29:51 +00:00
testing.zig all: update to std.builtin.Type.Pointer.Size field renames 2025-01-16 12:46:29 +00:00
Thread.zig std.Thread: Fix wasi_thread_start() export to use a pointer. 2025-01-19 03:23:00 +01:00
time.zig move std.time.sleep to std.Thread.sleep 2024-09-26 12:35:14 -07:00
treap.zig
tz.zig
unicode.zig std: update eval branch quotas after bdbc485 2024-08-21 01:30:46 +01:00
Uri.zig
valgrind.zig std.valgrind: Port doClientRequest() to all archs supported by Valgrind. 2024-11-04 12:39:48 +01:00
wasm.zig wasm linker: implement @tagName for sparse enums 2025-01-15 15:11:36 -08:00
zig.zig Sema: fix crash when inline loop condition is not comptime-known 2025-01-22 04:18:43 +00:00
zip.zig std.zip: Add ZIP64 support for local file header extra field 2025-01-17 22:55:55 +01:00