[−][src]Struct rustc_passes::entry::EntryContext
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]
pub fn visit_item(&mut self, item: &'tcx Item<'tcx>)[src]
pub fn visit_trait_item(&mut self, _trait_item: &'tcx TraitItem<'tcx>)[src]
pub fn visit_impl_item(&mut self, _impl_item: &'tcx ImplItem<'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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,