Skip to content

Renaming a module shouldn’t change path segments referring this module by super #11289

@EFanZh

Description

@EFanZh

In the following code:

mod foo {
    struct X;

    mod bar {
        use super::X;
    }
}

If I rename foo to baz, the code changes into:

mod baz {
    struct X;

    mod bar {
        use baz::X;
    }
}

Which doesn’t compile any more.

Metadata

Metadata

Assignees

Labels

A-idegeneral IDE featuresC-bugCategory: bugE-has-instructionsIssue has some instructions and pointers to code to get started

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions