add unresolved-assoc-item diagnostic

This commit is contained in:
Rose Hudson 2023-12-31 17:33:36 +00:00
parent cf52c4b2b3
commit 5878651e7e
6 changed files with 74 additions and 1 deletions

View file

@ -62,6 +62,7 @@ diagnostics![
UndeclaredLabel,
UnimplementedBuiltinMacro,
UnreachableLabel,
UnresolvedAssocItem,
UnresolvedExternCrate,
UnresolvedField,
UnresolvedImport,
@ -217,6 +218,11 @@ pub struct UnresolvedMethodCall {
pub field_with_same_name: Option<Type>,
}
#[derive(Debug)]
pub struct UnresolvedAssocItem {
pub expr_or_pat: InFile<AstPtr<Either<ast::Expr, Either<ast::Pat, ast::SelfParam>>>>,
}
#[derive(Debug)]
pub struct PrivateField {
pub expr: InFile<AstPtr<ast::Expr>>,