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

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Get an ARef pointing at this type.

Try and get an ARef pointing at this type. Returns an Err if the type Self is a RefCell which is already mutably borrowed. Read more

Return the underlying RefCell if Self is one, otherwise None.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert between two equal types.

Convert between references to two equal types.

Convert between mutable references to two equal types.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.