Skip to content

Import of name from bundle that doesn't exist #1283

@maximebuyse

Description

@maximebuyse

This is a regression form #1199, here is a reproducer:

mod a {
    pub fn g(){super::b::h()}
    
    struct A();

    impl A {
        fn f() {
            struct Test(i32);
        }
    }
}
mod b {
    pub fn h(){super::a::g()}
}

Open this code snippet in the playground

F* laxing fails with: Definition Playground.Bundle.impl__f___0 cannot be found.
This is because of include Playground.Bundle {impl__f___0 as impl_A__f___0}
Here we have an alias for the ._0 accessor for the anonymous field in Test but Test is defined inside an impl methods which messes with the name.

Metadata

Metadata

Assignees

Labels

engineIssue in the engine

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions