rustc_mir_transform

Module elaborate_box_derefs

source
Expand description

This pass transforms derefs of Box into a deref of the pointer inside Box.

Box is not actually a pointer so it is incorrect to dereference it directly.

Structsยง

Functionsยง

  • build_projection ๐Ÿ”’
    Constructs the projection needed to access a Boxโ€™s pointer
  • build_ptr_tys ๐Ÿ”’
    Constructs the types used when accessing a Boxโ€™s pointer