You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When clippy gets and ICE in a package with a - in the name, it suggests fixing but with an _.
I'm not sure if this happens on the current stable release or not since I don't know how to reliably trigger an ICE, but am willing to test if I could.
Reproducer
I tried this code:
[package]
name = "package-name"
I expected to see this happen:
error: internal compiler error: encountered incremental compilation error with mir_built(70094b76db2b4923-9e5dabcfe18f14d7) | = help: This is a known issue with the compiler. Run `cargo clean -p package-name` or `cargo clean` to allow your project to compile = note: Please follow the instructions below to create a bug report with the provided information = note: See <https://github.com/rust-lang/rust/issues/84970> for more information
Instead, this happened:
error: internal compiler error: encountered incremental compilation error with mir_built(70094b76db2b4923-9e5dabcfe18f14d7) | = help: This is a known issue with the compiler. Run `cargo clean -p package_name` or `cargo clean` to allow your project to compile = note: Please follow the instructions below to create a bug report with the provided information = note: See <https://github.com/rust-lang/rust/issues/84970> for more information
And then, of course:
$ cargo clean -p package_nameerror: package ID specification `package_name` did not match any packages Did you mean `package-name`?
AldaronLau
changed the title
cargo clean -p Suggestion after ICE uses incorrect namecargo clean -p Suggestion after ICE uses incorrect name
Oct 13, 2023
saethlin
added
S-blocked
Status: Blocked on something else such as an RFC or other implementation work.
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Oct 28, 2023
Summary
When clippy gets and ICE in a package with a
-
in the name, it suggests fixing but with an_
.I'm not sure if this happens on the current stable release or not since I don't know how to reliably trigger an ICE, but am willing to test if I could.
Reproducer
I tried this code:
I expected to see this happen:
Instead, this happened:
And then, of course:
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: