[−][src]Struct rustc_lint::EarlyContext

pub struct EarlyContext<'a> {
    pub sess: &'a Session,
    pub krate: &'a Crate,
    pub builder: LintLevelsBuilder<'a>,
    pub lint_store: &'a LintStore,
    pub buffered: LintBuffer,
}

Context for lint checking of the AST, after expansion, before lowering to HIR.

Fields

sess: &'a Session

Type context we're checking in.

krate: &'a Crate

The crate being checked.

builder: LintLevelsBuilder<'a>lint_store: &'a LintStore

The store of registered lints and the lint levels.

buffered: LintBuffer

Implementations

impl<'a> EarlyContext<'a>[src]

pub fn new(
    sess: &'a Session,
    lint_store: &'a LintStore,
    krate: &'a Crate,
    buffered: LintBuffer,
    warn_about_weird_lints: bool
) -> EarlyContext<'a>
[src]

Trait Implementations

impl<'_> LintContext for EarlyContext<'_>[src]

type PassObject = Box<dyn EarlyLintPass + Send + Sync + 'static>

pub fn sess(&self) -> &Session[src]

Gets the overall compiler Session object.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for EarlyContext<'a>

impl<'a> !Send for EarlyContext<'a>

impl<'a> !Sync for EarlyContext<'a>

impl<'a> Unpin for EarlyContext<'a>

impl<'a> !UnwindSafe for EarlyContext<'a>

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.