← All docs
unlink() — internals
Compiler internals for unlink(): lowering path, type checks, and runtime helpers.
unlink() — internals
Where it lives
- Signature:
src/builtins/io/unlink.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:4403 (lower_unlink) - Function symbol:
lower_unlink()
Lowering notes
- Lowers
unlink(path)through the target-aware runtime helper.
Runtime helpers
The following runtime helpers are referenced:
__rt_mkdir__rt_rmdir__rt_unlink
Signature summary
function unlink(string $filename): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/unlink.rs(eval_builtin!) - Dispatch hooks:
direct,values