pub struct KnownLint {
pub id: String,
pub message: String,
pub severity: Severity,
}Expand description
One lint ID known to the compiler, with metadata for editor surfaces.
Returned from known_lint_ids as the single source of truth for
what # seq:allow(<id>) accepts. Adding a new lint — whether to
lints.toml or as a hard-coded analyzer that honors allowed_lints —
must flow through this function.
Fields§
§id: String§message: String§severity: SeverityTrait Implementations§
Auto Trait Implementations§
impl Freeze for KnownLint
impl RefUnwindSafe for KnownLint
impl Send for KnownLint
impl Sync for KnownLint
impl Unpin for KnownLint
impl UnsafeUnpin for KnownLint
impl UnwindSafe for KnownLint
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