This repository was archived by the owner on Mar 1, 2019. It is now read-only.
This repository was archived by the owner on Mar 1, 2019. It is now read-only.
mod foo;
should be a goto def to foo.rs
#23
Closed
Description
This is a bit of an odd case because we want to treat mod foo;
differently to mod foo { ... }
although the compiler mostly treats them as identical. It is also odd because mod foo;
is the def for foo
and is the only place that foo
is named, however, from a practical point of view, IDE uses will want to easily jump from this declaration to the actual module definition. I'm not sure how this should appear in a 'find all refs' context - should we show mod foo;
as the def or should the file be the def? And in the latter what should we use as the span? The first line of the file? The whole file?
Metadata
Metadata
Assignees
Labels
No labels