[INFO] cloning repository https://github.com/melinan02/DS210_FINALPROJECT [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/melinan02/DS210_FINALPROJECT" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmelinan02%2FDS210_FINALPROJECT", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmelinan02%2FDS210_FINALPROJECT'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 80d204800536c11195d47506b2808adbd52bcaef [INFO] building melinan02/DS210_FINALPROJECT against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmelinan02%2FDS210_FINALPROJECT" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/melinan02/DS210_FINALPROJECT [INFO] finished tweaking git repo https://github.com/melinan02/DS210_FINALPROJECT [INFO] tweaked toml for git repo https://github.com/melinan02/DS210_FINALPROJECT written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/melinan02/DS210_FINALPROJECT on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/melinan02/DS210_FINALPROJECT already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded jobserver v0.1.31 [INFO] [stderr] Downloaded rand_pcg v0.3.1 [INFO] [stderr] Downloaded cc v1.0.96 [INFO] [stderr] Downloaded git2 v0.18.3 [INFO] [stderr] Downloaded libssh2-sys v0.3.0 [INFO] [stderr] Downloaded libgit2-sys v0.16.2+1.7.2 [INFO] [stderr] Downloaded libz-sys v1.1.16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a5d24d947674f3fad80be7b08f8310a1fec5332863c92f597158c7346aa8fc54 [INFO] running `Command { std: "docker" "start" "-a" "a5d24d947674f3fad80be7b08f8310a1fec5332863c92f597158c7346aa8fc54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a5d24d947674f3fad80be7b08f8310a1fec5332863c92f597158c7346aa8fc54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5d24d947674f3fad80be7b08f8310a1fec5332863c92f597158c7346aa8fc54", kill_on_drop: false }` [INFO] [stdout] a5d24d947674f3fad80be7b08f8310a1fec5332863c92f597158c7346aa8fc54 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 01123818591ec38b4772870faceef8b9c8f3d9d9f17433580599b42c4f658ba1 [INFO] running `Command { std: "docker" "start" "-a" "01123818591ec38b4772870faceef8b9c8f3d9d9f17433580599b42c4f658ba1", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling serde v1.0.200 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling csv-core v0.1.11 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling jobserver v0.1.31 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling petgraph v0.6.4 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_pcg v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling cc v1.0.96 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling libz-sys v1.1.16 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling libssh2-sys v0.3.0 [INFO] [stderr] Compiling libgit2-sys v0.16.2+1.7.2 [INFO] [stderr] Compiling csv v1.3.0 [INFO] [stderr] Compiling git2 v0.18.3 [INFO] [stderr] Compiling ds210_finalproject v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 37.12s [INFO] running `Command { std: "docker" "inspect" "01123818591ec38b4772870faceef8b9c8f3d9d9f17433580599b42c4f658ba1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01123818591ec38b4772870faceef8b9c8f3d9d9f17433580599b42c4f658ba1", kill_on_drop: false }` [INFO] [stdout] 01123818591ec38b4772870faceef8b9c8f3d9d9f17433580599b42c4f658ba1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c0817bc515c1d9ffda5412c98e7fee5ac42c851a07307eb970c1af8ca30a633c [INFO] running `Command { std: "docker" "start" "-a" "c0817bc515c1d9ffda5412c98e7fee5ac42c851a07307eb970c1af8ca30a633c", kill_on_drop: false }` [INFO] [stderr] Compiling ds210_finalproject v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0599]: no function or associated item named `new_undirected` found for struct `Graph` in the current scope [INFO] [stdout] --> src/calculate_metrics.rs:91:50 [INFO] [stdout] | [INFO] [stdout] 91 | let mut graph = Graph::::new_undirected(); [INFO] [stdout] | ^^^^^^^^^^^^^^ function or associated item not found in `Graph` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Graph` consider using one of the following associated functions: [INFO] [stdout] Graph::::new [INFO] [stdout] Graph::::with_capacity [INFO] [stdout] Graph::::from_edges [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/petgraph-0.6.4/src/graph_impl/mod.rs:458:5 [INFO] [stdout] | [INFO] [stdout] 458 | pub fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 487 | pub fn with_capacity(nodes: usize, edges: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1309 | / pub fn from_edges(iterable: I) -> Self [INFO] [stdout] 1310 | | where [INFO] [stdout] 1311 | | I: IntoIterator, [INFO] [stdout] 1312 | | I::Item: IntoWeightedEdge, [INFO] [stdout] 1313 | | >::NodeId: Into>, [INFO] [stdout] 1314 | | N: Default, [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: the function or associated item was found for [INFO] [stdout] - `Graph` [INFO] [stdout] help: there is a method `is_directed` with a similar name [INFO] [stdout] | [INFO] [stdout] 91 - let mut graph = Graph::::new_undirected(); [INFO] [stdout] 91 + let mut graph = Graph::::is_directed(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new` found for struct `Embedding` in the current scope [INFO] [stdout] --> src/calculate_metrics.rs:94:43 [INFO] [stdout] | [INFO] [stdout] 94 | graph.add_node(Embedding::new(vec![0.0, 0.0])) [INFO] [stdout] | ^^^ function or associated item not found in `Embedding` [INFO] [stdout] | [INFO] [stdout] ::: src/load_embeddings.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Embedding { [INFO] [stdout] | -------------------- function or associated item `new` not found for this struct [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `new`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `IndexType` [INFO] [stdout] candidate #2: `Nullable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/calculate_metrics.rs:112:41 [INFO] [stdout] | [INFO] [stdout] 112 | assert_eq!(betweenness[node.index()], expected_betweenness[node.index()]); [INFO] [stdout] | ^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ds210_finalproject` (bin "ds210_finalproject" test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "c0817bc515c1d9ffda5412c98e7fee5ac42c851a07307eb970c1af8ca30a633c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0817bc515c1d9ffda5412c98e7fee5ac42c851a07307eb970c1af8ca30a633c", kill_on_drop: false }` [INFO] [stdout] c0817bc515c1d9ffda5412c98e7fee5ac42c851a07307eb970c1af8ca30a633c