pub struct Lint {
pub location: FileSpan,
pub short_name: String,
pub severity: EvalSeverity,
pub problem: String,
pub original: String,
}
Expand description
A lint produced by AstModule::lint
.
Fields§
§location: FileSpan
Which code location does this lint refer to.
short_name: String
kebab-case constant describing this issue, e.g. missing-return
.
severity: EvalSeverity
Is this code highly-likely to be wrong, rather than merely stylistically non-ideal.
problem: String
A description of the underlying problem.
original: String
The source code at location
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Lint
impl Send for Lint
impl Sync for Lint
impl Unpin for Lint
impl UnwindSafe for Lint
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more