rustc_const_eval::interpret

Module intrinsics

Source
Expand description

Intrinsics and other functions that the interpreter executes without looking at their MIR. Intrinsics/functions supported here are shared by CTFE and miri.

Functionsยง

  • alloc_type_name ๐Ÿ”’
    Directly returns an Allocation containing an absolute path representation of the given type.
  • The logic for all nullary intrinsics is implemented here. These intrinsics donโ€™t get evaluated inside an InterpCx and instead have their value computed directly from rustc internal info.