mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:43 +00:00
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:
parent
18a9eddf60
commit
87668e24b1
5 changed files with 85 additions and 7 deletions
|
@ -325,6 +325,7 @@ impl<'a> CheckSuppressionsContext<'a> {
|
|||
range,
|
||||
severity,
|
||||
file: self.file,
|
||||
secondary_messages: vec![],
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue