aboutsummaryrefslogtreecommitdiff
path: root/crates/hir/src/diagnostics.rs
blob: 414c3f35ee011412e0d2627d24a0f6cb1d6392ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! 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.
pub use hir_def::diagnostics::{
    InactiveCode, UnresolvedMacroCall, UnresolvedModule, UnresolvedProcMacro,
};
pub use hir_expand::diagnostics::{
    Diagnostic, DiagnosticCode, DiagnosticSink, DiagnosticSinkBuilder,
};
pub use hir_ty::diagnostics::{
    IncorrectCase, MismatchedArgCount, MissingFields, MissingMatchArms, MissingOkOrSomeInTailExpr,
    NoSuchField, RemoveThisSemicolon, ReplaceFilterMapNextWithFindMap,
};