pub struct Lint {
pub location: FileSpan,
pub short_name: String,
pub serious: bool,
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
.
serious: bool
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
sourceimpl<T> AsARef<T> for T where
T: ?Sized,
impl<T> AsARef<T> for T where
T: ?Sized,
sourcefn try_as_aref(this: &T) -> Result<ARef<'_, T>, BorrowError>
fn try_as_aref(this: &T) -> Result<ARef<'_, T>, BorrowError>
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more