You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, I am thinking about "add the corresponding trait item to the trait", we could get hir::Trait when we construct that diagnostic, but how could we get the corresponding ast::Trait to add some trait item into it? search in the codebase but can't find some related internal api to do that(I still not familar enough with internal api in RA), any suggestion?
EDIT: found fn source(self, db: &dyn HirDatabase) -> Option<InFile<Self::Ast>> in hir::Trait, which help to got the corresponding ast::Trait (with the help of bloop)
…=Veykril
feat: add trait_impl_reduntant_assoc_item diagnostic
part of #15958, will try to add quickfix for the diagnostic if this PR is ok with you guys
And offer a quickfix to add the corresponding trait item to the trait
The text was updated successfully, but these errors were encountered: