Struct rustc_mir::transform::simplify::LocalUpdater[−][src]

struct LocalUpdater<'tcx> {
    map: IndexVec<Local, Option<Local>>,
    tcx: TyCtxt<'tcx>,
}

Fields

map: IndexVec<Local, Option<Local>>tcx: TyCtxt<'tcx>

Trait Implementations

impl<'tcx> MutVisitor<'tcx> for LocalUpdater<'tcx>[src]

fn tcx(&self) -> TyCtxt<'tcx>[src]

fn visit_local(&mut self, l: &mut Local, _: PlaceContext, _: Location)[src]

fn visit_body(&mut self, body: &mut Body<'tcx>)[src]

fn visit_basic_block_data(
    &mut self,
    block: BasicBlock,
    data: &mut BasicBlockData<'tcx>
)
[src]

fn visit_source_scope_data(&mut self, scope_data: &mut SourceScopeData<'tcx>)[src]

fn visit_statement(
    &mut self,
    statement: &mut Statement<'tcx>,
    location: Location
)
[src]

fn visit_assign(
    &mut self,
    place: &mut Place<'tcx>,
    rvalue: &mut Rvalue<'tcx>,
    location: Location
)
[src]

fn visit_terminator(
    &mut self,
    terminator: &mut Terminator<'tcx>,
    location: Location
)
[src]

fn visit_assert_message(
    &mut self,
    msg: &mut AssertKind<Operand<'tcx>>,
    location: Location
)
[src]

fn visit_rvalue(&mut self, rvalue: &mut Rvalue<'tcx>, location: Location)[src]

fn visit_operand(&mut self, operand: &mut Operand<'tcx>, location: Location)[src]

fn visit_ascribe_user_ty(
    &mut self,
    place: &mut Place<'tcx>,
    variance: &mut Variance,
    user_ty: &mut UserTypeProjection,
    location: Location
)
[src]

fn visit_coverage(&mut self, coverage: &mut Coverage, location: Location)[src]

fn visit_retag(
    &mut self,
    kind: &mut RetagKind,
    place: &mut Place<'tcx>,
    location: Location
)
[src]

fn visit_place(
    &mut self,
    place: &mut Place<'tcx>,
    context: PlaceContext,
    location: Location
)
[src]

fn super_place(
    &mut self,
    place: &mut Place<'tcx>,
    context: PlaceContext,
    location: Location
)
[src]

fn process_projection(
    &mut self,
    projection: &'a [ProjectionElem<Local, &'tcx TyS<'tcx>>],
    location: Location
) -> Option<Vec<ProjectionElem<Local, &'tcx TyS<'tcx>>, Global>>
[src]

fn process_projection_elem(
    &mut self,
    elem: ProjectionElem<Local, &'tcx TyS<'tcx>>,
    location: Location
) -> Option<ProjectionElem<Local, &'tcx TyS<'tcx>>>
[src]

fn visit_constant(&mut self, constant: &mut Constant<'tcx>, location: Location)[src]

fn visit_span(&mut self, span: &mut Span)[src]

fn visit_source_info(&mut self, source_info: &mut SourceInfo)[src]

fn visit_ty(&mut self, ty: &mut &'tcx TyS<'tcx>, TyContext)[src]

fn visit_user_type_projection(&mut self, ty: &mut UserTypeProjection)[src]

fn visit_user_type_annotation(
    &mut self,
    index: UserTypeAnnotationIndex,
    ty: &mut CanonicalUserTypeAnnotation<'tcx>
)
[src]

fn visit_region(&mut self, region: &mut &'tcx RegionKind, Location)[src]

fn visit_const(&mut self, constant: &mut &'tcx Const<'tcx>, Location)[src]

fn visit_substs(&mut self, substs: &mut &'tcx List<GenericArg<'tcx>>, Location)[src]

fn visit_local_decl(&mut self, local: Local, local_decl: &mut LocalDecl<'tcx>)[src]

fn visit_var_debug_info(&mut self, var_debug_info: &mut VarDebugInfo<'tcx>)[src]

fn visit_source_scope(&mut self, scope: &mut SourceScope)[src]

fn super_body(&mut self, body: &mut Body<'tcx>)[src]

fn super_basic_block_data(
    &mut self,
    block: BasicBlock,
    data: &mut BasicBlockData<'tcx>
)
[src]

fn super_source_scope_data(&mut self, scope_data: &mut SourceScopeData<'tcx>)[src]

fn super_statement(
    &mut self,
    statement: &mut Statement<'tcx>,
    location: Location
)
[src]

fn super_assign(
    &mut self,
    place: &mut Place<'tcx>,
    rvalue: &mut Rvalue<'tcx>,
    location: Location
)
[src]

fn super_terminator(
    &mut self,
    terminator: &mut Terminator<'tcx>,
    location: Location
)
[src]

fn super_assert_message(
    &mut self,
    msg: &mut AssertKind<Operand<'tcx>>,
    location: Location
)
[src]

fn super_rvalue(&mut self, rvalue: &mut Rvalue<'tcx>, location: Location)[src]

fn super_operand(&mut self, operand: &mut Operand<'tcx>, location: Location)[src]

fn super_ascribe_user_ty(
    &mut self,
    place: &mut Place<'tcx>,
    _variance: &mut Variance,
    user_ty: &mut UserTypeProjection,
    location: Location
)
[src]

fn super_coverage(&mut self, _coverage: &mut Coverage, _location: Location)[src]

fn super_retag(
    &mut self,
    _kind: &mut RetagKind,
    place: &mut Place<'tcx>,
    location: Location
)
[src]

fn super_local_decl(&mut self, local: Local, local_decl: &mut LocalDecl<'tcx>)[src]

fn super_var_debug_info(&mut self, var_debug_info: &mut VarDebugInfo<'tcx>)[src]

fn super_source_scope(&mut self, _scope: &mut SourceScope)[src]

fn super_constant(&mut self, constant: &mut Constant<'tcx>, location: Location)[src]

fn super_span(&mut self, _span: &mut Span)[src]

fn super_source_info(&mut self, source_info: &mut SourceInfo)[src]

fn super_user_type_projection(&mut self, _ty: &mut UserTypeProjection)[src]

fn super_user_type_annotation(
    &mut self,
    _index: UserTypeAnnotationIndex,
    ty: &mut CanonicalUserTypeAnnotation<'tcx>
)
[src]

fn super_ty(&mut self, _ty: &mut &'tcx TyS<'tcx>)[src]

fn super_region(&mut self, _region: &mut &'tcx RegionKind)[src]

fn super_const(&mut self, _const: &mut &'tcx Const<'tcx>)[src]

fn super_substs(&mut self, _substs: &mut &'tcx List<GenericArg<'tcx>>)[src]

fn visit_location(&mut self, body: &mut Body<'tcx>, location: Location)[src]

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for LocalUpdater<'tcx>

impl<'tcx> !Send for LocalUpdater<'tcx>

impl<'tcx> !Sync for LocalUpdater<'tcx>

impl<'tcx> Unpin for LocalUpdater<'tcx>

impl<'tcx> !UnwindSafe for LocalUpdater<'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> WithConstness for T[src]

fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]

fn with_const(self) -> ConstnessAnd<Self>[src]

fn without_const(self) -> ConstnessAnd<Self>[src]