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