enum DiagnosticKey {
Spanned {
file: String,
line: u64,
message: String,
},
Raw(String),
}Expand description
A key that uniquely identifies a clippy diagnostic for deduplication.
Two diagnostics with the same file, line, and message text are considered identical even if they were produced under different feature combinations. Non-diagnostic JSON (e.g., build artifacts) returns a Raw key but is filtered out during collection since only Spanned keys are forwarded to reviewdog.
Variants§
Trait Implementations§
Source§impl Debug for DiagnosticKey
impl Debug for DiagnosticKey
Source§impl Hash for DiagnosticKey
impl Hash for DiagnosticKey
Source§impl PartialEq for DiagnosticKey
impl PartialEq for DiagnosticKey
impl Eq for DiagnosticKey
impl StructuralPartialEq for DiagnosticKey
Auto Trait Implementations§
impl Freeze for DiagnosticKey
impl RefUnwindSafe for DiagnosticKey
impl Send for DiagnosticKey
impl Sync for DiagnosticKey
impl Unpin for DiagnosticKey
impl UnwindSafe for DiagnosticKey
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.