Skip to main content

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.

Re-exportsΒ§

use std::ops; πŸ”’
use std::range; πŸ”’
use rustc_public_bridge::Tables; πŸ”’
use rustc_public_bridge::context::CompilerCtxt; πŸ”’
use crate::compiler_interface::BridgeTys; πŸ”’

ModulesΒ§

internal πŸ”’
Module containing the translation from rustc_public constructs to the rustc counterpart.
stable πŸ”’
Conversion of internal Rust compiler items to stable ones.