Rollup merge of #46052 - oli-obk:rendered_diagnostics_in_json, r=petrochenkov
Include rendered diagnostic in json r? @petrochenkov
This commit is contained in:
commit
0af67a4df0
5 changed files with 176 additions and 24 deletions
|
@ -70,7 +70,7 @@ impl MultilineAnnotation {
|
|||
|
||||
pub fn as_end(&self) -> Annotation {
|
||||
Annotation {
|
||||
start_col: self.end_col - 1,
|
||||
start_col: self.end_col.saturating_sub(1),
|
||||
end_col: self.end_col,
|
||||
is_primary: self.is_primary,
|
||||
label: self.label.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue