[−][src]Struct rustc_typeck::check::writeback::Resolver

pub(in check::writeback) struct Resolver<'cx, 'tcx> {
    tcx: TyCtxt<'tcx>,
    infcx: &'cx InferCtxt<'cx, 'tcx>,
    span: &'cx dyn Locatable,
    body: &'tcx Body<'tcx>,
    replaced_with_error: bool,
}

The Resolver. This is the type folding engine that detects unresolved types and so forth.

Fields

tcx: TyCtxt<'tcx>infcx: &'cx InferCtxt<'cx, 'tcx>span: &'cx dyn Locatablebody: &'tcx Body<'tcx>replaced_with_error: bool

Set to true if any Ty or ty::Const had to be replaced with an Error.

Implementations

impl<'cx, 'tcx> Resolver<'cx, 'tcx>[src]

pub(in check::writeback) fn new(
    fcx: &'cx FnCtxt<'cx, 'tcx>,
    span: &'cx dyn Locatable,
    body: &'tcx Body<'tcx>
) -> Resolver<'cx, 'tcx>
[src]

pub(in check::writeback) fn report_type_error(
    &self,
    t: Ty<'tcx>
)
[src]

pub(in check::writeback) fn report_const_error(
    &self,
    c: &'tcx Const<'tcx>
)
[src]

Trait Implementations

impl<'cx, 'tcx> TypeFolder<'tcx> for Resolver<'cx, 'tcx>[src]

Auto Trait Implementations

impl<'cx, 'tcx> !RefUnwindSafe for Resolver<'cx, 'tcx>

impl<'cx, 'tcx> !Send for Resolver<'cx, 'tcx>

impl<'cx, 'tcx> !Sync for Resolver<'cx, 'tcx>

impl<'cx, 'tcx> Unpin for Resolver<'cx, 'tcx> where
    'tcx: 'cx, 

impl<'cx, 'tcx> !UnwindSafe for Resolver<'cx, '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.

impl<T> WithConstness for T[src]