Skip to main content

Module builtins_to_function_calls

Module builtins_to_function_calls 

Source
Expand description

Desugar built-in operations and array/slice indexing to standard library function calls.

Structsยง

IndexVisitor ๐Ÿ”’
We replace some place constructors with function calls. To do that, we explore all the places in a body and deconstruct a given place access into intermediate assignments.
Transform

Enumsยง

StdItem ๐Ÿ”’
We do the following.

Functionsยง

index_method_types ๐Ÿ”’
method_impl_trait_ref ๐Ÿ”’
Instantiate the trait impl that provides the given method.
mk_fn_ptr ๐Ÿ”’
transform_operation ๐Ÿ”’