/// Used to emit a lint-related diagnostic based on the current state of
/// this lint context.
Used to emit a lint-related diagnostic based on the current state of
this lint context.
Used to emit a lint - related diagnostic based on the current state of this lint context .
pub fn struct_lint(&self,
                       lint: &'static Lint,
                       span: Option<MultiSpan>,
                       msg: &str)
        -> DiagnosticBuilder<'a>
    {
        let (level, src) = self.sets.get_lint_level(lint, self.cur, None, self.sess);
        lint::struct_lint_level(self.sess, lint, level, src, span, msg)
    }
pub fn struct_lint ( & self , lint : & ' static Lint , span : Option < MultiSpan > , msg : & str ) -> DiagnosticBuilder < ' a > { let ( level , src ) = self . sets . get_lint_level ( lint , self . cur , None , self . sess ) ; lint :: struct_lint_level ( self . sess , lint , level , src , span , msg ) }
Used to emit a lint-related diagnostic based on the current state of
this lint context.
Used to emit a lint - related diagnostic based on the current state of this lint context .
&self
lint
&'static Lint
span
Option<MultiSpan>
msg
&str