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

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]

fn check_patterns(&mut self, pat: &Pat<'_>)[src]

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

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

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

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>[src]

impl<'a, 'tcx> !Send for MatchVisitor<'a, 'tcx>[src]

impl<'a, 'tcx> !Sync for MatchVisitor<'a, 'tcx>[src]

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

impl<'a, 'tcx> !UnwindSafe for MatchVisitor<'a, 'tcx>[src]

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.