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