Module naming

Source
Expand description

Stable naming helpers for MIR-based outputs. Stable naming helpers used by MIR browser graphs and backends.

Structsยง

FunctionNames
Stable synthesized identifiers for locals in one MIR function.
ProgramNames
Stable synthesized identifiers for functions in a MIR program.

Functionsยง

is_rust_keyword ๐Ÿ”’
mangle_canonical_ident
Mangle a canonical source-level identifier into a Rust-compatible name.
sanitize_ident ๐Ÿ”’
synthetic_temp_ident
Build a valid synthetic temporary identifier for generated Rust.
unique_name ๐Ÿ”’