-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Handle cargo package renames #464
Comments
This is fixed in https://github.com/rust-analyzer/rust-analyzer/tree/new-metadata and waits for oli-obk/cargo_metadata#59. Guess I'll just merge that with the patch |
Ah, great :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We currently don't handle the case where a package is renamed in the Cargo.toml, e.g. in
ra_analysis
wherera_hir
is imported ashir
instead, so the name resolution fails there. I think this needs to be fixed infrom_cargo_metadata
in project_model.rs (thename
of thePackageDependency
should be the renamed name), but I'm not sure what's the correct way of getting this information from the cargo metadata.The text was updated successfully, but these errors were encountered: