rustc_errors: only box the diagnostic field in DiagnosticBuilder.

This commit is contained in:
Eduard-Mihai Burtescu 2022-01-24 11:23:14 +00:00
parent 7913f130d3
commit 3572c542c2

View File

@ -315,7 +315,7 @@ fn build_diagnostic(level: DiagnosticLevel, span: Option<MultiSpan>) -> Diagnost
code: None,
message: vec![],
children: vec![],
suggestions: vec![],
suggestions: Ok(vec![]),
span: span.unwrap_or_else(MultiSpan::new),
sort_span: DUMMY_SP,
is_lint: false,