zig/lib/std/os
mlugg e9bd2d45d4
Sema: rewrite semantic analysis of function calls
This rewrite improves some error messages, hugely simplifies the logic,
and fixes several bugs. One of these bugs is technically a new rule
which Andrew and I agreed on: if a parameter has a comptime-only type
but is not declared `comptime`, then the corresponding call argument
should not be *evaluated* at comptime; only resolved. Implementing this
required changing how function types work a little, which in turn
required allowing a new kind of function coercion for some generic use
cases: function coercions are now allowed to implicitly *remove*
`comptime` annotations from parameters with comptime-only types. This is
okay because removing the annotation affects only the call site.

Resolves: #22262
2025-01-09 06:46:47 +00:00
..
linux std.os.linux: Add unwinding protection in clone() implementations. 2024-12-11 00:10:17 +01:00
plan9 extract std.posix from std.os 2024-03-19 11:45:09 -07:00
uefi uefi: erroneous alignment check in pool_allocator 2024-09-24 13:30:53 -07:00
windows std.os.windows: Deprecate WINAPI in favor of CallingConvention.winapi. 2024-11-02 10:44:18 +01:00
emscripten.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
linux.zig linux: make ptid and ctid in clone() optional 2024-12-31 05:24:10 +01:00
plan9.zig std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
uefi.zig std.os.uefi: Fix calling convention build error 2024-10-25 10:45:55 +02:00
wasi.zig Copy in WASI rights_t documentation 2024-10-06 09:44:52 +01:00
windows.zig Sema: rewrite semantic analysis of function calls 2025-01-09 06:46:47 +00:00