diff --git a/src/parse/session.rs b/src/parse/session.rs index e8f7b422ada..8303c03e1eb 100644 --- a/src/parse/session.rs +++ b/src/parse/session.rs @@ -370,7 +370,7 @@ fn emit_diagnostic(&mut self, _db: &Diagnostic) { fn build_diagnostic(level: DiagnosticLevel, span: Option) -> Diagnostic { let mut diag = Diagnostic::new(level, ""); - diag.message.clear(); + diag.messages.clear(); if let Some(span) = span { diag.span = span; }