Closed Havegum closed 1 year ago
Thanks for the report but do you have any reason to suspect that it's specific to this crate itself? This looks like a rustc bug.
Ah, my bad. You're absolutely right! This happens whatever package I try, and it just happened to crash on this one
This seems to be issue https://github.com/rust-lang/rust/issues/79567.
Closing as it's not this crate's issue.
I couldn't find this cause for this issue mentioned elsewhere, so I thought I'd post this to at least save some headaches.
Having the
%
-character anywhere in the project path causescfg-if
to fail compiling. In the example below I have the%
-character as the name of the project folder, but the issue persist if there's a%
-sign anywhere.Reproducing
I can reproduce this issue by creating a new project, adding cfg-if as a dependency, and executing
cargo run
:cargo run
Running with
--verbose
yields:Expected outcome
The expected outcome – and what happens if you comment out the dependency – is that the project builds and runs as normal:
Removing
%
from the path fixes the errorSystem info