[−][src]Struct rustc_mir_build::lints::Search

pub(in lints) struct Search<'mir, 'tcx> {
    tcx: TyCtxt<'tcx>,
    body: &'mir Body<'tcx>,
    trait_substs: &'tcx [GenericArg<'tcx>],
    reachable_recursive_calls: Vec<Span>,
}

Fields

tcx: TyCtxt<'tcx>body: &'mir Body<'tcx>trait_substs: &'tcx [GenericArg<'tcx>]reachable_recursive_calls: Vec<Span>

Implementations

impl<'mir, 'tcx> Search<'mir, 'tcx>[src]

pub(in lints) fn is_recursive_call(
    &self,
    func: &Operand<'tcx>
) -> bool
[src]

Returns true if func refers to the function we are searching in.

Trait Implementations

impl<'mir, 'tcx> TriColorVisitor<&'mir Body<'tcx>> for Search<'mir, 'tcx>[src]

type BreakVal = NonRecursive

The value returned by this search.

Auto Trait Implementations

impl<'mir, 'tcx> !RefUnwindSafe for Search<'mir, 'tcx>

impl<'mir, 'tcx> !Send for Search<'mir, 'tcx>

impl<'mir, 'tcx> !Sync for Search<'mir, 'tcx>

impl<'mir, 'tcx> Unpin for Search<'mir, 'tcx> where
    'tcx: 'mir, 

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