mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-03 21:25:25 +00:00
Test TraitRef equality before generating missing impl method body
This commit is contained in:
parent
8afaaa54b0
commit
fc56cacfc1
3 changed files with 80 additions and 18 deletions
|
|
@ -214,7 +214,7 @@ fn impl_def_from_trait(
|
|||
|
||||
// Generate a default `impl` function body for the derived trait.
|
||||
if let ast::AssocItem::Fn(ref func) = first_assoc_item {
|
||||
let _ = gen_trait_fn_body(func, trait_path, adt);
|
||||
let _ = gen_trait_fn_body(func, trait_path, adt, None);
|
||||
};
|
||||
|
||||
Some((impl_def, first_assoc_item))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue