mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Diagnose missing assoc items in trait impls
This commit is contained in:
parent
e21d21a8fb
commit
723d799ec1
7 changed files with 191 additions and 18 deletions
|
@ -54,6 +54,7 @@ diagnostics![
|
|||
PrivateField,
|
||||
ReplaceFilterMapNextWithFindMap,
|
||||
TraitImplIncorrectSafety,
|
||||
TraitImplMissingAssocItems,
|
||||
TraitImplOrphan,
|
||||
TypedHole,
|
||||
TypeMismatch,
|
||||
|
@ -302,3 +303,10 @@ pub struct TraitImplIncorrectSafety {
|
|||
pub impl_: AstPtr<ast::Impl>,
|
||||
pub should_be_safe: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
pub struct TraitImplMissingAssocItems {
|
||||
pub file_id: HirFileId,
|
||||
pub impl_: AstPtr<ast::Impl>,
|
||||
pub missing: Vec<(Name, AssocItem)>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue