pub fn apply_policy(
diagnostics: Vec<Diagnostic>,
policy: &DiagnosticPolicy,
) -> Vec<Diagnostic>Expand description
Apply policy to an assembled diagnostic list, returning the adjusted list.
Each diagnostic is matched against the policy’s effective verb for its code and subject id (last-wins). Error-severity diagnostics are never dropped or weakened. With an empty policy this returns the input unchanged (identity pass), preserving the default-off byte-identical guarantee.