Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir/src/diagnostics.rs')
-rw-r--r--crates/hir/src/diagnostics.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/crates/hir/src/diagnostics.rs b/crates/hir/src/diagnostics.rs
index afafede6b9..095b527cb0 100644
--- a/crates/hir/src/diagnostics.rs
+++ b/crates/hir/src/diagnostics.rs
@@ -62,6 +62,8 @@ diagnostics![AnyDiagnostic<'db> ->
InactiveCode,
IncoherentImpl,
IncorrectCase,
+ IncorrectGenericsLen,
+ IncorrectGenericsOrder,
InvalidCast<'db>,
InvalidDeriveTarget,
InvalidLhsOfAssignment,
@@ -79,6 +81,7 @@ diagnostics![AnyDiagnostic<'db> ->
NonExhaustiveLet,
NonExhaustiveRecordExpr,
NoSuchField,
+ PatternArgInExternFn,
PrivateAssocItem,
PrivateField,
RemoveTrailingReturn,
@@ -106,8 +109,6 @@ diagnostics![AnyDiagnostic<'db> ->
GenericArgsProhibited,
ParenthesizedGenericArgsWithoutFnTrait,
BadRtn,
- IncorrectGenericsLen,
- IncorrectGenericsOrder,
MissingLifetime,
ElidedLifetimesInPath,
TypeMustBeKnown<'db>,
@@ -492,6 +493,11 @@ pub struct InvalidLhsOfAssignment {
pub lhs: InFile<AstPtr<Either<ast::Expr, ast::Pat>>>,
}
+#[derive(Debug)]
+pub struct PatternArgInExternFn {
+ pub node: InFile<AstPtr<ast::Pat>>,
+}
+
impl<'db> AnyDiagnostic<'db> {
pub(crate) fn body_validation_diagnostic(
db: &'db dyn HirDatabase,