nix-community/fenix

cargo-manifest fails to build using Cargo from Fenix, but succeeds using rustup Cargo

schuelermine opened this issue · 4 comments

To reproduce:

The error occurs somewhere around toml and indexmap. The error does not appear when building toml on its own.

Error text (click to expand
   Compiling toml v0.5.11
error[E0107]: struct takes 3 generic arguments but 2 generic arguments were supplied
  --> /home/anselmschueler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/toml-0.5.11/src/map.rs:39:22
   |
39 | type MapImpl<K, V> = IndexMap<K, V>;
   |                      ^^^^^^^^ -  - supplied 2 generic arguments
   |                      |
   |                      expected 3 generic arguments
   |
note: struct defined here, with 3 generic parameters: `K`, `V`, `S`
  --> /home/anselmschueler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:76:12
   |
76 | pub struct IndexMap<K, V, S> {
   |            ^^^^^^^^ -  -  -
help: add missing generic argument
   |
39 | type MapImpl<K, V> = IndexMap<K, V, S>;
   |                                   +++

For more information about this error, try `rustc --explain E0107`.
error: could not compile `toml` (lib) due to previous error

How did you set up fenix?

By adding complete.toolchain to my home.packages in my home-manager configuration.

could you check if #100 fixes the issue for you?

Yes, that fixes it.