[INFO] updating cached repository crispamares/louvain-rs [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/crispamares/louvain-rs [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/crispamares/louvain-rs" "work/ex/pr-61100/sources/master#8869ee03d7f258e1b76a11c6fbb01b5708a9f504/gh/crispamares/louvain-rs"` [INFO] [stderr] Cloning into 'work/ex/pr-61100/sources/master#8869ee03d7f258e1b76a11c6fbb01b5708a9f504/gh/crispamares/louvain-rs'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/crispamares/louvain-rs" "work/ex/pr-61100/sources/try#58b21121d0b447ceb3f1a655155d802191acf044/gh/crispamares/louvain-rs"` [INFO] [stderr] Cloning into 'work/ex/pr-61100/sources/try#58b21121d0b447ceb3f1a655155d802191acf044/gh/crispamares/louvain-rs'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] e55a77ac5276c502d2f21ad53520e356e3b1d404 [INFO] sha for GitHub repo crispamares/louvain-rs: e55a77ac5276c502d2f21ad53520e356e3b1d404 [INFO] validating manifest of crispamares/louvain-rs on toolchain master#8869ee03d7f258e1b76a11c6fbb01b5708a9f504 [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+8869ee03d7f258e1b76a11c6fbb01b5708a9f504-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of crispamares/louvain-rs on toolchain try#58b21121d0b447ceb3f1a655155d802191acf044 [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+58b21121d0b447ceb3f1a655155d802191acf044-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing crispamares/louvain-rs [INFO] finished frobbing crispamares/louvain-rs [INFO] frobbed toml for crispamares/louvain-rs written to work/ex/pr-61100/sources/master#8869ee03d7f258e1b76a11c6fbb01b5708a9f504/gh/crispamares/louvain-rs/Cargo.toml [INFO] started frobbing crispamares/louvain-rs [INFO] finished frobbing crispamares/louvain-rs [INFO] frobbed toml for crispamares/louvain-rs written to work/ex/pr-61100/sources/try#58b21121d0b447ceb3f1a655155d802191acf044/gh/crispamares/louvain-rs/Cargo.toml [INFO] crate crispamares/louvain-rs already has a lockfile, it will not be regenerated [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+8869ee03d7f258e1b76a11c6fbb01b5708a9f504-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/crater-raid/crater/work/local/cargo-home/bin/cargo" "+58b21121d0b447ceb3f1a655155d802191acf044-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking crispamares/louvain-rs against master#8869ee03d7f258e1b76a11c6fbb01b5708a9f504 for pr-61100 [INFO] running `"docker" "create" "-v" "/mnt/crater-raid/crater/work/local/target-dirs/pr-61100/worker-1/master#8869ee03d7f258e1b76a11c6fbb01b5708a9f504:/opt/crater/target:rw,Z" "-v" "/mnt/crater-raid/crater/work/ex/pr-61100/sources/master#8869ee03d7f258e1b76a11c6fbb01b5708a9f504/gh/crispamares/louvain-rs:/opt/crater/workdir:ro,Z" "-v" "/mnt/crater-raid/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/crater-raid/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+8869ee03d7f258e1b76a11c6fbb01b5708a9f504-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] f04fd108a5687a2c15305eeb6d1a570df0fa4907ea79d18d0e366929890d7985 [INFO] running `"docker" "start" "-a" "f04fd108a5687a2c15305eeb6d1a570df0fa4907ea79d18d0e366929890d7985"` [INFO] [stderr] Checking slotmap v0.3.0 [INFO] [stderr] Checking louvain v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/modularity.rs:352:21 [INFO] [stderr] | [INFO] [stderr] 352 | let mut hidden = cc.get_mut(& hidden_id).unwrap(); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_mut)] on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/modularity.rs:352:21 [INFO] [stderr] | [INFO] [stderr] 352 | let mut hidden = cc.get_mut(& hidden_id).unwrap(); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_mut)] on by default [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 2 parameters but 1 parameter was supplied [INFO] [stderr] --> src/main.rs:57:26 [INFO] [stderr] | [INFO] [stderr] 57 | let mut modularity = Modularity::new(resolution); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 parameters [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:65:68 [INFO] [stderr] | [INFO] [stderr] 65 | let mut communities: Vec = vec![Default::default(); num_of_communities]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ expected usize, found i32 [INFO] [stderr] help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit [INFO] [stderr] | [INFO] [stderr] 65 | let mut communities: Vec = vec![Default::default(); num_of_communities.try_into().unwrap()]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 2 parameters but 1 parameter was supplied [INFO] [stderr] --> src/main.rs:57:26 [INFO] [stderr] | [INFO] [stderr] 57 | let mut modularity = Modularity::new(resolution); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 parameters [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:65:68 [INFO] [stderr] | [INFO] [stderr] 65 | let mut communities: Vec = vec![Default::default(); num_of_communities]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ expected usize, found i32 [INFO] [stderr] help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit [INFO] [stderr] | [INFO] [stderr] 65 | let mut communities: Vec = vec![Default::default(); num_of_communities.try_into().unwrap()]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0277]: the type `[louvain::io::Community]` cannot be indexed by `i32` [INFO] [stderr] --> src/main.rs:75:9 [INFO] [stderr] | [INFO] [stderr] 75 | communities[com].id = (com) as i32; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::slice::SliceIndex<[louvain::io::Community]>` is not implemented for `i32` [INFO] [stderr] = note: required because of the requirements on the impl of `std::ops::Index` for `std::vec::Vec` [INFO] [stderr] [INFO] [stderr] error[E0277]: the type `[louvain::io::Community]` cannot be indexed by `i32` [INFO] [stderr] --> src/main.rs:76:9 [INFO] [stderr] | [INFO] [stderr] 76 | communities[com].parent = 0; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::slice::SliceIndex<[louvain::io::Community]>` is not implemented for `i32` [INFO] [stderr] = note: required because of the requirements on the impl of `std::ops::Index` for `std::vec::Vec` [INFO] [stderr] [INFO] [stderr] error[E0277]: the type `[louvain::io::Community]` cannot be indexed by `i32` [INFO] [stderr] --> src/main.rs:77:9 [INFO] [stderr] | [INFO] [stderr] 77 | communities[com].nodes.push(node); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::slice::SliceIndex<[louvain::io::Community]>` is not implemented for `i32` [INFO] [stderr] = note: required because of the requirements on the impl of `std::ops::Index` for `std::vec::Vec` [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0277, E0308. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error[E0277]: the type `[louvain::io::Community]` cannot be indexed by `i32` [INFO] [stderr] --> src/main.rs:75:9 [INFO] [stderr] | [INFO] [stderr] 75 | communities[com].id = (com) as i32; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::slice::SliceIndex<[louvain::io::Community]>` is not implemented for `i32` [INFO] [stderr] = note: required because of the requirements on the impl of `std::ops::Index` for `std::vec::Vec` [INFO] [stderr] [INFO] [stderr] error[E0277]: the type `[louvain::io::Community]` cannot be indexed by `i32` [INFO] [stderr] --> src/main.rs:76:9 [INFO] [stderr] | [INFO] [stderr] 76 | communities[com].parent = 0; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::slice::SliceIndex<[louvain::io::Community]>` is not implemented for `i32` [INFO] [stderr] = note: required because of the requirements on the impl of `std::ops::Index` for `std::vec::Vec` [INFO] [stderr] [INFO] [stderr] error[E0277]: the type `[louvain::io::Community]` cannot be indexed by `i32` [INFO] [stderr] --> src/main.rs:77:9 [INFO] [stderr] | [INFO] [stderr] 77 | communities[com].nodes.push(node); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::slice::SliceIndex<[louvain::io::Community]>` is not implemented for `i32` [INFO] [stderr] = note: required because of the requirements on the impl of `std::ops::Index` for `std::vec::Vec` [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0277, E0308. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [INFO] [stderr] error: Could not compile `louvain`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: Could not compile `louvain`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "f04fd108a5687a2c15305eeb6d1a570df0fa4907ea79d18d0e366929890d7985"` [INFO] running `"docker" "rm" "-f" "f04fd108a5687a2c15305eeb6d1a570df0fa4907ea79d18d0e366929890d7985"` [INFO] [stdout] f04fd108a5687a2c15305eeb6d1a570df0fa4907ea79d18d0e366929890d7985