2021-05-22 16:53:47 +03:00
|
|
|
//! Re-export diagnostics such that clients of `hir` don't have to depend on
|
|
|
|
//! low-level crates.
|
|
|
|
//!
|
|
|
|
//! This probably isn't the best way to do this -- ideally, diagnistics should
|
|
|
|
//! be expressed in terms of hir types themselves.
|
2021-02-28 14:12:11 +03:00
|
|
|
pub use hir_def::diagnostics::{
|
|
|
|
InactiveCode, UnresolvedMacroCall, UnresolvedModule, UnresolvedProcMacro,
|
|
|
|
};
|
2020-11-17 16:14:45 +01:00
|
|
|
pub use hir_expand::diagnostics::{
|
|
|
|
Diagnostic, DiagnosticCode, DiagnosticSink, DiagnosticSinkBuilder,
|
|
|
|
};
|
2020-07-08 19:58:45 +02:00
|
|
|
pub use hir_ty::diagnostics::{
|
2020-12-30 17:23:00 +00:00
|
|
|
IncorrectCase, MismatchedArgCount, MissingFields, MissingMatchArms, MissingOkOrSomeInTailExpr,
|
2020-12-28 13:41:15 +00:00
|
|
|
NoSuchField, RemoveThisSemicolon, ReplaceFilterMapNextWithFindMap,
|
2020-07-08 19:58:45 +02:00
|
|
|
};
|