-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Cargo suggestion doesn't work with crates having a hyphen in the name #115841
Comments
Not completely sure but rust-lang/cargo#9038 could be related. Probably this report can be moved to that repository. |
The error message is from rustc diagnostics: rust/compiler/rustc_query_system/src/query/plumbing.rs Lines 700 to 710 in 376f3f0
And I've got the impression that the Cargo team tries to reduce such kind of normalization in exchange for performance, at least for crates.io index query. Package ID flag Given the above points, and the helpful |
So the problem is that rustc tries to guess the correct cargo invocation based on incomplete (hyphen-to-underscore-normalized) information passed to it? Cargo doesn't want to do reverse-normalization on |
This won't be too complex I guess. It just seems too specialized to me. We need to add a new rustc option and make cargo pass it only for this incremental compilation error. It also kinda leaks the abstraction between Cargo and rustc. Not sure if that is a right approach for this. |
No objections were raised, so let's close. |
Is it not useful to keep it open as the problem itself still exists, even though we don't want to fix it right now? |
If you disagree with closing I'm fine with reopening. |
While hitting #84970 (comment), I got this from Cargo:
Running
cargo clean -p nimiq_lib
failed with the following error:And indeed
cargo clean -p nimiq-lib
works.The text was updated successfully, but these errors were encountered: