Hello, I'm trying to use the rust-dev component where I use rustc_hash, and when I do cargo build I get the following error:
error[E0464]: multiple candidates for `rmeta` dependency `rustc_hash` found --> src/main.rs:11:1 | 11 | extern crate rustc_hash; | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: candidate #1: ~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_hash-bb5b7ec98e3e247f.rmeta = note: candidate #2: ~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_hash-fbe951279e8edb4c.rmeta For more information about this error, try `rustc --explain E0464`. I tried looking at the given folder and there indeed are the 2 versions of rustc_hash, and looking at the rust-dev manifest in ~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/manifest-rustc-dev-x86_64-unknown-linux-gnu there are 2 entries for librustc_hash:
file:lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_hash-bb5b7ec98e3e247f.rmeta file:lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_hash-fbe951279e8edb4c.rmeta I tried reinstalling rust-dev, deleting the whole nightly toolchain and reinstalling it, reinstalling rustup alltoghether, but when I add rust-dev again I still get 2 version of rustc_hash.
Now, I'm not sure how to solve this problem, if I can safely delete one of the 2 entries, and if so which one, or if there is a proper way to solve this. Any help is appriciated, thanks
Further info:
$ rustup --version rustup 1.29.3 (2026-11-11) $ rustc --version rustc 1.102.0-nightly (9c5648833 2026-11-10) $ cargo --version cargo 1.102.0-nightly (c07ac2c4d 2026-11-06) 2 posts - 2 participants