Fill the diagnostic code field in publish_diagnostics

This commit is contained in:
Lukas Wirth 2020-11-17 16:14:45 +01:00
parent 789d9ca1d3
commit c868f0255f
4 changed files with 38 additions and 12 deletions

View file

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