diff --git a/crates/ra_ide/src/goto_definition.rs b/crates/ra_ide/src/goto_definition.rs index bee8e9df28e..3b4d89e3e1a 100644 --- a/crates/ra_ide/src/goto_definition.rs +++ b/crates/ra_ide/src/goto_definition.rs @@ -285,8 +285,10 @@ fn goto_definition_resolves_correct_name() { mod a; mod b; enum E { X(Foo<|>) } + //- /a.rs struct Foo; + //- /b.rs struct Foo; ", @@ -300,6 +302,7 @@ fn goto_definition_works_for_module_declaration() { " //- /lib.rs mod <|>foo; + //- /foo.rs // empty ", @@ -310,6 +313,7 @@ fn goto_definition_works_for_module_declaration() { " //- /lib.rs mod <|>foo; + //- /foo/mod.rs // empty ",