pub struct Entry {
pub violations: Vec<Violation>,
pub facts: Vec<Fact>,
pub dependencies: Vec<TrackedRead>,
pub suppressions: Vec<Suppression>,
pub used_suppressions: Vec<u32>,
}Expand description
Everything one file’s pass produced.
Fields§
§violations: Vec<Violation>Violations found in this file.
facts: Vec<Fact>Facts this file’s rules emitted.
dependencies: Vec<TrackedRead>Files this file’s rules read, and what they hashed to.
suppressions: Vec<Suppression>The file’s suppression directives.
Stored because a reduce-phase violation can be reported at a site in a file that was not reprocessed this run. Without them, the warm path would drop the directive and report a violation the author had already accepted.
used_suppressions: Vec<u32>Indices into suppressions of the directives that silenced something.
Recorded because a warm run never sees what a directive suppressed — the entry holds the violations that survived, and the ones it hid are gone. Without this, every suppression in a cached file would look unused.
Implementations§
Trait Implementations§
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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