Enum rustc_lint::context::CheckLintNameResult [−][src]
pub enum CheckLintNameResult<'a> {
Ok(&'a [LintId]),
NoLint(Option<Symbol>),
Warning(String, Option<String>),
Tool(Result<&'a [LintId], (Option<&'a [LintId]>, String)>),
}Variants
Expand description
Lint doesn’t exist. Potentially contains a suggestion for a correct lint name.
Expand description
The lint is either renamed or removed. This is the warning
message, and an optional new name (None if removed).
Expand description
The lint is from a tool. If the Option is None, then either
the lint does not exist in the tool or the code was not
compiled with the tool and therefore the lint was never
added to the LintStore. Otherwise the LintId will be
returned as if it where a rustc lint.