ruff_db: add "secondary" messages to Diagnostic trait

This is a small little hack to make the `Diagnostic` trait
capable of supporting attaching multiple spans.

This design should be considered transient. This was just the
quickest way that I could see to pass multiple spans through from
the type checker to the diagnostic renderer.
This commit is contained in:
Andrew Gallant 2025-02-12 14:16:24 -05:00 committed by Andrew Gallant
parent 18a9eddf60
commit 87668e24b1
5 changed files with 85 additions and 7 deletions

View file

@ -325,6 +325,7 @@ impl<'a> CheckSuppressionsContext<'a> {
range,
severity,
file: self.file,
secondary_messages: vec![],
});
}
}