Closed
Description
openedon Jul 9, 2020
Problem
I had Rust stable 1.44.1 installed and working fine. I then added nightly and did a build with:
rustup toolchain install nightly --allow-downgrade
cargo +nightly run --release
which worked fine. Then I tried to build on stable again, and I got an error:
$ cargo run --release
error: dep-info invalid
note: this is an unexpected cargo internal error
note: we would appreciate a bug report: https://github.com/rust-lang/cargo/issues/
note: cargo 1.44.1 (88ba85757 2020-06-11)
However, cargo run
(without --release
) still works.
Steps
Method A:
cargo clean
cargo run --release
cargo +nightly run --release
cargo run --release
Method B:
cargo clean
cargo +nightly run --release
cargo run --release
cargo +nightly run --release
- This invocation only showed incremental build output, whereas the other invocations resulted in full builds:
cargo run --release
Possible Solution(s)
Just a workaround, but cargo clean
resolves the issue.
Notes
Output of cargo version
:
cargo 1.44.1 (88ba85757 2020-06-11)
- OS: Windows 10
- Toolchains: stable-x86_64-pc-windows-msvc (default) and nightly-x86_64-pc-windows-msvc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment