pub struct Summary {
pub build_succeeded: bool,
pub compiler_messages: usize,
pub without_location: usize,
pub outside_worktree: usize,
pub duplicates_collapsed: usize,
}Expand description
What a stream of cargo messages contained beyond the findings themselves.
Every field is a count of something that did not become a finding. They are reported rather than swallowed: a run that silently dropped half its diagnostics and printed a small number would be indistinguishable from a clean tree, which is the shape this project has been bitten by before.
Fields§
§build_succeeded: boolWhether cargo’s build-finished message reported success. A failed build
still yields the diagnostics it managed to emit, and they are real — but
the set is partial, and a caller must say so.
compiler_messages: usizeHow many compiler-message entries the stream carried.
without_location: usizeDiagnostics with no primary span — rustc’s own summaries (“aborting due to 3 previous errors”), which are about the run rather than about a line of code.
outside_worktree: usizeDiagnostics about a file outside the analyzed worktree — a dependency’s source under the cargo registry, most often.
duplicates_collapsed: usizeIdentical diagnostics emitted more than once. --all-targets compiles
one file into several targets, so a lint in src/main.rs arrives once
per target; they are the same defect and are counted once.
Trait Implementations§
impl Copy for Summary
impl Eq for Summary
impl StructuralPartialEq for Summary
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summary
impl UnwindSafe for Summary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.