[−][src]Struct rustc_passes::entry::EntryContext

pub(in entry) struct EntryContext<'a, 'tcx> {
    session: &'a Session,
    map: Map<'tcx>,
    main_fn: Option<(HirId, Span)>,
    attr_main_fn: Option<(HirId, Span)>,
    start_fn: Option<(HirId, Span)>,
    non_main_fns: Vec<(HirId, Span)>,
}

Fields

session: &'a Sessionmap: Map<'tcx>main_fn: Option<(HirId, Span)>

The top-level function called main.

attr_main_fn: Option<(HirId, Span)>

The function that has attribute named main.

start_fn: Option<(HirId, Span)>

The function that has the attribute 'start' on it.

non_main_fns: Vec<(HirId, Span)>

The functions that one might think are main but aren't, e.g. main functions not defined at the top level. For diagnostics.

Trait Implementations

impl<'a, 'tcx> ItemLikeVisitor<'tcx> for EntryContext<'a, 'tcx>[src]

Auto Trait Implementations

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

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

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

impl<'a, 'tcx> Unpin for EntryContext<'a, 'tcx>

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