Skip to content
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
@nrc

Description

@nrc

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions