Module convert

Module convert 

Source
Expand description

This module holds the logic to convert rustc internal ADTs into rustc_public ADTs.

The conversion from stable to internal is not meant to be complete, and it should be added as when needed to be passed as input to rustc_public_bridge functions.

For contributors, please make sure to avoid calling rustc’s internal functions and queries. These should be done via rustc_public_bridge APIs, but it’s possible to access ADT fields directly.

Modules§

internal 🔒
Module containing the translation from rustc_public constructs to the rustc counterpart.
stable 🔒
Conversion of internal Rust compiler items to stable ones.