Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name resolution 2.0 fails to lookup types when called with module path #2939

Closed
CohenArthur opened this issue Apr 4, 2024 · 1 comment
Closed

Comments

@CohenArthur
Copy link
Member

mod foo {
    struct Foo {
        a: i32,
    }
}

fn main() {
    let foo = foo::Foo { a: 15 };
}

When compiled with -frust-name-resolution-2.0 this fails with a 456 reverse lookup failure, which indicates we did not setup the name resolution context properly for that case.

@P-E-P
Copy link
Member

P-E-P commented Feb 12, 2025

Looks like this issue can be closed https://godbolt.org/z/K6358xens as it has been fixed on master.

@P-E-P P-E-P closed this as completed Feb 12, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in name resolution 2.0 Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants