[−][src]Struct rustc_passes::reachable::ReachableContext

pub(in reachable) struct ReachableContext<'tcx> {
    tcx: TyCtxt<'tcx>,
    maybe_typeck_results: Option<&'tcx TypeckResults<'tcx>>,
    reachable_symbols: FxHashSet<LocalDefId>,
    worklist: Vec<LocalDefId>,
    any_library: bool,
}

Fields

tcx: TyCtxt<'tcx>maybe_typeck_results: Option<&'tcx TypeckResults<'tcx>>reachable_symbols: FxHashSet<LocalDefId>worklist: Vec<LocalDefId>any_library: bool

Implementations

impl<'tcx> ReachableContext<'tcx>[src]

pub(in reachable) fn typeck_results(
    &self
) -> &'tcx TypeckResults<'tcx>
[src]

Gets the type-checking results for the current body. As this will ICE if called outside bodies, only call when working with Expr or Pat nodes (they are guaranteed to be found only in bodies).

pub(in reachable) fn def_id_represents_local_inlined_item(
    &self,
    def_id: DefId
) -> bool
[src]

pub(in reachable) fn propagate(
    &mut self
)
[src]

pub(in reachable) fn propagate_node(
    &mut self,
    node: &Node<'tcx>,
    search_item: LocalDefId
)
[src]

Trait Implementations

impl<'tcx> Visitor<'tcx> for ReachableContext<'tcx>[src]

type Map = ErasedMap<'tcx>

Auto Trait Implementations

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

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

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

impl<'tcx> Unpin for ReachableContext<'tcx>

impl<'tcx> !UnwindSafe for ReachableContext<'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<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.