pub trait EarlyCheckNode<'a>: Copy {
    fn id(self) -> NodeId;
    fn attrs<'b>(self) -> &'b [Attribute]
   where
        'a: 'b
; fn check<'b>(self, cx: &mut EarlyContextAndPass<'b, impl EarlyLintPass>)
   where
        'a: 'b
; }
Expand description

Early lints work on different nodes - either on the crate root, or on freshly loaded modules. This trait generalizes over those nodes.

Required Methods

Implementations on Foreign Types

Implementors