Struct rustc_const_eval::check_match::StaticInliner [] [src]

pub struct StaticInliner<'a, 'tcx: 'a> {
    pub tcx: TyCtxt<'a, 'tcx, 'tcx>,
    pub failed: bool,
    pub renaming_map: Option<&'a mut FnvHashMap<(NodeId, Span)NodeId>>,
}
Unstable (rustc_private)

Fields

tcx: TyCtxt<'a, 'tcx, 'tcx>
Unstable (rustc_private)
failed: bool
Unstable (rustc_private)
renaming_map: Option<&'a mut FnvHashMap<(NodeId, Span)NodeId>>
Unstable (rustc_private)

Methods

impl<'a, 'tcx> StaticInliner<'a, 'tcx>
[src]

fn new<'b>(tcx: TyCtxt<'b, 'tcx, 'tcx>, renaming_map: Option<&'b mut FnvHashMap<(NodeId, Span)NodeId>>) -> StaticInliner<'b, 'tcx>

Trait Implementations

impl<'a, 'tcx> Folder for StaticInliner<'a, 'tcx>
[src]

fn fold_pat(&mut self, pat: P<Pat>) -> P<Pat>

fn fold_crate(&mut self, c: Crate) -> Crate

fn fold_meta_items(&mut self, meta_items: P<[P<Spanned<MetaItemKind>>]>) -> P<[P<Spanned<MetaItemKind>>]>

fn fold_meta_item(&mut self, meta_item: P<Spanned<MetaItemKind>>) -> P<Spanned<MetaItemKind>>

fn fold_view_path(&mut self, view_path: P<Spanned<ViewPath_>>) -> P<Spanned<ViewPath_>>

fn fold_foreign_item(&mut self, ni: ForeignItem) -> ForeignItem

fn fold_item(&mut self, i: Item) -> Item

fn fold_item_id(&mut self, i: ItemId) -> ItemId

fn fold_struct_field(&mut self, sf: StructField) -> StructField

fn fold_item_underscore(&mut self, i: Item_) -> Item_

fn fold_trait_item(&mut self, i: TraitItem) -> TraitItem

fn fold_impl_item(&mut self, i: ImplItem) -> ImplItem

fn fold_fn_decl(&mut self, d: P<FnDecl>) -> P<FnDecl>

fn fold_block(&mut self, b: P<Block>) -> P<Block>

fn fold_stmt(&mut self, s: Spanned<Stmt_>) -> Spanned<Stmt_>

fn fold_arm(&mut self, a: Arm) -> Arm

fn fold_decl(&mut self, d: P<Spanned<Decl_>>) -> P<Spanned<Decl_>>

fn fold_expr(&mut self, e: P<Expr>) -> P<Expr>

fn fold_ty(&mut self, t: P<Ty>) -> P<Ty>

fn fold_ty_binding(&mut self, t: TypeBinding) -> TypeBinding

fn fold_mod(&mut self, m: Mod) -> Mod

fn fold_foreign_mod(&mut self, nm: ForeignMod) -> ForeignMod

fn fold_variant(&mut self, v: Spanned<Variant_>) -> Spanned<Variant_>

fn fold_name(&mut self, n: Name) -> Name

fn fold_usize(&mut self, i: usize) -> usize

fn fold_path(&mut self, p: Path) -> Path

fn fold_path_parameters(&mut self, p: PathParameters) -> PathParameters

fn fold_angle_bracketed_parameter_data(&mut self, p: AngleBracketedParameterData) -> AngleBracketedParameterData

fn fold_parenthesized_parameter_data(&mut self, p: ParenthesizedParameterData) -> ParenthesizedParameterData

fn fold_local(&mut self, l: P<Local>) -> P<Local>

fn fold_lifetime(&mut self, l: Lifetime) -> Lifetime

fn fold_lifetime_def(&mut self, l: LifetimeDef) -> LifetimeDef

fn fold_attribute(&mut self, at: Spanned<Attribute_>) -> Option<Spanned<Attribute_>>

fn fold_arg(&mut self, a: Arg) -> Arg

fn fold_generics(&mut self, generics: Generics) -> Generics

fn fold_trait_ref(&mut self, p: TraitRef) -> TraitRef

fn fold_poly_trait_ref(&mut self, p: PolyTraitRef) -> PolyTraitRef

fn fold_variant_data(&mut self, vdata: VariantData) -> VariantData

fn fold_lifetimes(&mut self, lts: P<[Lifetime]>) -> P<[Lifetime]>

fn fold_lifetime_defs(&mut self, lts: P<[LifetimeDef]>) -> P<[LifetimeDef]>

fn fold_ty_param(&mut self, tp: TyParam) -> TyParam

fn fold_ty_params(&mut self, tps: P<[TyParam]>) -> P<[TyParam]>

fn fold_opt_lifetime(&mut self, o_lt: Option<Lifetime>) -> Option<Lifetime>

fn fold_opt_bounds(&mut self, b: Option<P<[TyParamBound]>>) -> Option<P<[TyParamBound]>>

fn fold_bounds(&mut self, b: P<[TyParamBound]>) -> P<[TyParamBound]>

fn fold_ty_param_bound(&mut self, tpb: TyParamBound) -> TyParamBound

fn fold_mt(&mut self, mt: MutTy) -> MutTy

fn fold_field(&mut self, field: Field) -> Field

fn fold_where_clause(&mut self, where_clause: WhereClause) -> WhereClause

fn fold_where_predicate(&mut self, where_predicate: WherePredicate) -> WherePredicate

fn new_id(&mut self, i: u32) -> u32

called for the id on each declaration

fn map_id(&mut self, i: u32) -> u32

called for ids that are references (e.g., ItemDef)

fn new_span(&mut self, sp: Span) -> Span