[−][src]Struct rustc_mir_build::thir::pattern::check_match::MatchVisitor

pub(in thir::pattern::check_match) struct MatchVisitor<'a, 'tcx> {
    tcx: TyCtxt<'tcx>,
    typeck_results: &'a TypeckResults<'tcx>,
    param_env: ParamEnv<'tcx>,
    pattern_arena: TypedArena<Pat<'tcx>>,
}

Fields

tcx: TyCtxt<'tcx>typeck_results: &'a TypeckResults<'tcx>param_env: ParamEnv<'tcx>pattern_arena: TypedArena<Pat<'tcx>>

Implementations

impl<'tcx, '_> MatchVisitor<'_, 'tcx>[src]

pub(in thir::pattern::check_match) fn check_patterns(
    &mut self,
    pat: &Pat<'_>
)
[src]

pub(in thir::pattern::check_match) fn lower_pattern<'p>(
    &self,
    cx: &mut MatchCheckCtxt<'p, 'tcx>,
    pat: &'tcx Pat<'tcx>,
    have_errors: &mut bool
) -> (&'p Pat<'tcx>, Ty<'tcx>)
[src]

pub(in thir::pattern::check_match) fn new_cx(
    &self,
    hir_id: HirId
) -> MatchCheckCtxt<'_, 'tcx>
[src]

pub(in thir::pattern::check_match) fn check_match(
    &mut self,
    scrut: &Expr<'_>,
    arms: &'tcx [Arm<'tcx>],
    source: MatchSource
)
[src]

pub(in thir::pattern::check_match) fn check_irrefutable(
    &self,
    pat: &'tcx Pat<'tcx>,
    origin: &str,
    sp: Option<Span>
)
[src]

Trait Implementations

impl<'tcx, '_> Visitor<'tcx> for MatchVisitor<'_, 'tcx>[src]

type Map = ErasedMap<'tcx>

Auto Trait Implementations

impl<'a, 'tcx> !RefUnwindSafe for MatchVisitor<'a, 'tcx>

impl<'a, 'tcx> !Send for MatchVisitor<'a, 'tcx>

impl<'a, 'tcx> !Sync for MatchVisitor<'a, 'tcx>

impl<'a, 'tcx> Unpin for MatchVisitor<'a, 'tcx> where
    'tcx: 'a, 

impl<'a, 'tcx> !UnwindSafe for MatchVisitor<'a, 'tcx>

Blanket Implementations

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

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

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

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

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

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

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.

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.