1
Fork 0

Rollup merge of #46052 - oli-obk:rendered_diagnostics_in_json, r=petrochenkov

Include rendered diagnostic in json

r? @petrochenkov
This commit is contained in:
kennytm 2017-11-22 01:12:59 +08:00 committed by GitHub
commit 0af67a4df0
5 changed files with 176 additions and 24 deletions

View file

@ -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(),