Closed linmingren closed 3 years ago
You can try some old rustup toolchain such as 2020-11-18 or 2021-01-17. It seems like the code base has not been compatible to the latest rustup toolchain.
Thank you! I just tried nightly-2021-01-17-x86_64-unknown-linux-gnu and it works.
OS: WSL Ubuntu 20.04 Rust up show: installed toolchains
stable-x86_64-unknown-linux-gnu (default) nightly-x86_64-unknown-linux-gnu
installed targets for active toolchain
wasm32-unknown-unknown x86_64-unknown-linux-gnu
active toolchain
stable-x86_64-unknown-linux-gnu (default) rustc 1.51.0 (2fd73fabe 2021-03-23)
Git Commit: 88e86bc Command: cargo build --release
Compiling num_cpus v1.13.0 Compiling parking_lot_core v0.8.1 Compiling parking_lot_core v0.7.2 Compiling jobserver v0.1.21 Compiling errno v0.2.7 Compiling time v0.1.44 Compiling iovec v0.1.4 Compiling net2 v0.2.37 Compiling signal-hook-registry v1.2.2 Compiling polling v2.0.2 Compiling nb-connect v1.0.2 Compiling atty v0.2.14 Compiling socket2 v0.3.18 Compiling if-addrs v0.6.5 Compiling dirs-sys v0.3.5 Compiling memmap v0.7.0 Compiling fs-swap v0.2.5 Compiling rand v0.4.6 Compiling fdlimit v0.2.1 Compiling rpassword v5.0.0 Compiling quote v1.0.8 Compiling aho-corasick v0.7.15 warning: 1 warning emitted
T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12usize
= note: expected associated type
<G as GraphBase>::NodeId
found typeusize
= help: consider constraining the associated type<G as GraphBase>::NodeId
tousize
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.htmlusize
= note: expected associated type
<G as GraphBase>::NodeId
found typeusize
= help: consider constraining the associated type<G as GraphBase>::NodeId
tousize
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.htmlusize
= note: expected associated type
<G as GraphBase>::NodeId
found typeusize
= help: consider constraining the associated type<G as GraphBase>::NodeId
tousize
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.htmlCompiling gimli v0.21.0 error: aborting due to 4 previous errors
Some errors have detailed explanations: E0107, E0308. For more information about an error, try
rustc --explain E0107
. error: could not compilepetgraph
K
,V
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/map.rs:76:12error: aborting due to previous error
rustc --explain E0107
. error[E0107]: this struct takes 2 type arguments but only 1 type argument was supplied --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/gimli-0.21.0/src/write/abbrev.rs:16:14T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12K
,V
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/map.rs:76:12T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12.debug_str
section." 96T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12.debug_line_str
section." 116T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12error: aborting due to 8 previous errors
For more information about this error, try] [-c =]
[--exec-path[=]] [--html-path] [--man-path] [--info-path]
[-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]
[--git-dir=] [--work-tree=] [--namespace=]
[]
rustc --explain E0107
. error: build failed linmingren@LAPTOP-5N5RMIAB:/mnt/d/project/crust/v0.11.0/crust-0.11.0$ git usage: git [--version] [--help] [-CThese are common Git commands used in various situations:
start a working area (see also: git help tutorial) clone Clone a repository into a new directory init Create an empty Git repository or reinitialize an existing one
work on the current change (see also: git help everyday) add Add file contents to the index mv Move or rename a file, a directory, or a symlink restore Restore working tree files rm Remove files from the working tree and from the index sparse-checkout Initialize and modify the sparse-checkout
examine the history and state (see also: git help revisions) bisect Use binary search to find the commit that introduced a bug diff Show changes between commits, commit and working tree, etc grep Print lines matching a pattern log Show commit logs show Show various types of objects status Show the working tree status
grow, mark and tweak your common history branch List, create, or delete branches commit Record changes to the repository merge Join two or more development histories together rebase Reapply commits on top of another base tip reset Reset current HEAD to the specified state switch Switch branches tag Create, list, delete or verify a tag object signed with GPG
collaborate (see also: git help workflows) fetch Download objects and refs from another repository pull Fetch from and integrate with another repository or a local branch push Update remote refs along with associated objects
warning: 1 warning emitted
K
,V
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/map.rs:76:12T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12error: aborting due to previous error
For more information about this error, try
rustc --explain E0107
. error: could not compileh2
T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12error: aborting due to 3 previous errors
rustc --explain E0107
. error[E0308]: mismatched types --> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/petgraph-0.5.1/src/simple_paths.rs:50:36usize
= note: expected associated type
<G as GraphBase>::NodeId
found typeusize
= help: consider constraining the associated type<G as GraphBase>::NodeId
tousize
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.htmlusize
= note: expected associated type
<G as GraphBase>::NodeId
found typeusize
= help: consider constraining the associated type<G as GraphBase>::NodeId
tousize
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.htmlusize
= note: expected associated type
<G as GraphBase>::NodeId
found typeusize
= help: consider constraining the associated type<G as GraphBase>::NodeId
tousize
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.htmlT
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12K
,V
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/map.rs:76:12T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12.debug_str
section." 96T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12.debug_line_str
section." 116T
,S
--> /home/linmingren/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.6.1/src/set.rs:67:12error: aborting due to 8 previous errors
For more information about this error, try
rustc --explain E0107
. error: aborting due to 4 previous errorsSome errors have detailed explanations: E0107, E0308. For more information about an error, try
rustc --explain E0107
. error: build failed