2021-04-09 12:39:07 +00:00
|
|
|
//! Type inference-based diagnostics.
|
2020-07-14 08:52:18 +00:00
|
|
|
mod expr;
|
2020-07-14 08:18:08 +00:00
|
|
|
mod match_check;
|
2020-07-14 08:52:18 +00:00
|
|
|
mod unsafe_check;
|
2020-10-03 09:48:02 +00:00
|
|
|
mod decl_check;
|
2019-11-27 14:46:02 +00:00
|
|
|
|
2021-06-12 14:39:46 +00:00
|
|
|
pub use crate::diagnostics::{
|
2021-11-20 16:19:19 +00:00
|
|
|
decl_check::{incorrect_case, IncorrectCase},
|
2021-06-12 16:28:19 +00:00
|
|
|
expr::{
|
|
|
|
record_literal_missing_fields, record_pattern_missing_fields, BodyValidationDiagnostic,
|
|
|
|
},
|
2022-03-20 18:07:44 +00:00
|
|
|
unsafe_check::{missing_unsafe, unsafe_expressions, UnsafeExpr},
|
2021-06-12 14:39:46 +00:00
|
|
|
};
|
2023-01-20 22:09:35 +00:00
|
|
|
|
|
|
|
#[derive(Debug, PartialEq, Eq)]
|
|
|
|
pub struct IncoherentImpl {
|
|
|
|
pub file_id: hir_expand::HirFileId,
|
|
|
|
pub impl_: syntax::AstPtr<syntax::ast::Impl>,
|
|
|
|
}
|