[−][src]Struct rustc_privacy::PubRestrictedVisitor

pub(crate) struct PubRestrictedVisitor<'tcx> {
    tcx: TyCtxt<'tcx>,
    has_pub_restricted: bool,
}

Visitor used to determine if pub(restricted) is used anywhere in the crate.

This is done so that private_in_public warnings can be turned into hard errors in crates that have been updated to use pub(restricted).

Fields

tcx: TyCtxt<'tcx>has_pub_restricted: bool

Trait Implementations

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

type Map = Map<'tcx>

Auto Trait Implementations

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

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

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

impl<'tcx> Unpin for PubRestrictedVisitor<'tcx>

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