From 6bde542a39fe63298a31b838e59705797ed8a2cf Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Wed, 1 Jul 2020 17:15:20 +0200 Subject: Split `CrateImplDefs` in inherent and trait impls This makes the intention of inherent vs. trait impls somewhat more clear and also fixes (?) an issue where trait impls with an unresolved trait were added as inherent impls instead (hence the test changes). --- crates/ra_ide/src/goto_implementation.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/ra_ide/src/goto_implementation.rs') diff --git a/crates/ra_ide/src/goto_implementation.rs b/crates/ra_ide/src/goto_implementation.rs index 99a7022a4..9acc960fc 100644 --- a/crates/ra_ide/src/goto_implementation.rs +++ b/crates/ra_ide/src/goto_implementation.rs @@ -219,6 +219,10 @@ impl T for &Foo {} #[derive(Copy)] //^^^^^^^^^^^^^^^ struct Foo<|>; + +mod marker { + trait Copy {} +} "#, ); } -- cgit v1.2.3