From c868f0255f677a4cedb62c27af96758fffdd6f8f Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Tue, 17 Nov 2020 16:14:45 +0100 Subject: Fill the diagnostic code field in publish_diagnostics --- crates/hir/src/diagnostics.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crates/hir/src') diff --git a/crates/hir/src/diagnostics.rs b/crates/hir/src/diagnostics.rs index c18c1c587..d9ad8db6f 100644 --- a/crates/hir/src/diagnostics.rs +++ b/crates/hir/src/diagnostics.rs @@ -1,6 +1,8 @@ //! FIXME: write short doc here pub use hir_def::diagnostics::{InactiveCode, UnresolvedModule}; -pub use hir_expand::diagnostics::{Diagnostic, DiagnosticSink, DiagnosticSinkBuilder}; +pub use hir_expand::diagnostics::{ + Diagnostic, DiagnosticCode, DiagnosticSink, DiagnosticSinkBuilder, +}; pub use hir_ty::diagnostics::{ IncorrectCase, MismatchedArgCount, MissingFields, MissingMatchArms, MissingOkInTailExpr, NoSuchField, -- cgit v1.2.3