[INFO] cloning repository https://github.com/hamptonmoore/bird_route_collector [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hamptonmoore/bird_route_collector" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhamptonmoore%2Fbird_route_collector", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhamptonmoore%2Fbird_route_collector'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 87adf521d9a1c495678df744dbef054508dbb046 [INFO] checking hamptonmoore/bird_route_collector against master#36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923 for pr-81863 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhamptonmoore%2Fbird_route_collector" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hamptonmoore/bird_route_collector on toolchain 36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hamptonmoore/bird_route_collector [INFO] finished tweaking git repo https://github.com/hamptonmoore/bird_route_collector [INFO] tweaked toml for git repo https://github.com/hamptonmoore/bird_route_collector written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/hamptonmoore/bird_route_collector already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 321b49562f7fb682abe24d63acb06fbb18ca28f4d0e12bf73cd0f1ffda1b8432 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "321b49562f7fb682abe24d63acb06fbb18ca28f4d0e12bf73cd0f1ffda1b8432", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "321b49562f7fb682abe24d63acb06fbb18ca28f4d0e12bf73cd0f1ffda1b8432", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "321b49562f7fb682abe24d63acb06fbb18ca28f4d0e12bf73cd0f1ffda1b8432", kill_on_drop: false }` [INFO] [stdout] 321b49562f7fb682abe24d63acb06fbb18ca28f4d0e12bf73cd0f1ffda1b8432 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+36ecbc94eb6be90bc38b2d0fdd4bfac3f34d9923" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a61ce7b3685013410bf411c146f7b981cd890a36be0b7f18ceea9d57cbfdb99c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a61ce7b3685013410bf411c146f7b981cd890a36be0b7f18ceea9d57cbfdb99c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.55 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling serde_json v1.0.60 [INFO] [stderr] Checking bird_path_collector v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:56:60 [INFO] [stdout] | [INFO] [stdout] 56 | let mut location: &mut AutonomousNetwork = &mut route_table; [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^ expected struct `AutonomousNetwork`, found struct `HashMap` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut AutonomousNetwork` [INFO] [stdout] found mutable reference `&mut HashMap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains_key` found for struct `Vec` in the current scope [INFO] [stdout] --> src/main.rs:59:43 [INFO] [stdout] | [INFO] [stdout] 59 | if !location.children.contains_key(asn) { [INFO] [stdout] | ^^^^^^^^^^^^ help: there is an associated function with a similar name: `contains` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:56:60 [INFO] [stdout] | [INFO] [stdout] 56 | let mut location: &mut AutonomousNetwork = &mut route_table; [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^ expected struct `AutonomousNetwork`, found struct `HashMap` [INFO] [stdout] | | [INFO] [stdout] | expected due to this [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut AutonomousNetwork` [INFO] [stdout] found mutable reference `&mut HashMap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `contains_key` found for struct `Vec` in the current scope [INFO] [stdout] --> src/main.rs:59:43 [INFO] [stdout] | [INFO] [stdout] 59 | if !location.children.contains_key(asn) { [INFO] [stdout] | ^^^^^^^^^^^^ help: there is an associated function with a similar name: `contains` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:60:49 [INFO] [stdout] | [INFO] [stdout] 60 | location.children.insert(asn.to_string(), AutonomousNetwork { [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `usize`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:60:49 [INFO] [stdout] | [INFO] [stdout] 60 | location.children.insert(asn.to_string(), AutonomousNetwork { [INFO] [stdout] | ^^^^^^^^^^^^^^^ expected `usize`, found struct `std::string::String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:63:38 [INFO] [stdout] | [INFO] [stdout] 63 | ... children: HashMap::new() [INFO] [stdout] | ^^^^^^^^^^^^^^ expected struct `Vec`, found struct `HashMap` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `HashMap<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:63:38 [INFO] [stdout] | [INFO] [stdout] 63 | ... children: HashMap::new() [INFO] [stdout] | ^^^^^^^^^^^^^^ expected struct `Vec`, found struct `HashMap` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `HashMap<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:60:66 [INFO] [stdout] | [INFO] [stdout] 60 | location.children.insert(asn.to_string(), AutonomousNetwork { [INFO] [stdout] | __________________________________________________________________^ [INFO] [stdout] 61 | | asn: asn.to_string(), [INFO] [stdout] 62 | | routes: vec![], [INFO] [stdout] 63 | | children: HashMap::new() [INFO] [stdout] 64 | | }); [INFO] [stdout] | |________________________^ expected struct `std::string::String`, found struct `AutonomousNetwork` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[std::string::String]` cannot be indexed by `&str` [INFO] [stdout] --> src/main.rs:67:58 [INFO] [stdout] | [INFO] [stdout] 67 | location = location.children.get_mut(asn).unwrap(); [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[std::string::String]>` is not implemented for `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:60:66 [INFO] [stdout] | [INFO] [stdout] 60 | location.children.insert(asn.to_string(), AutonomousNetwork { [INFO] [stdout] | __________________________________________________________________^ [INFO] [stdout] 61 | | asn: asn.to_string(), [INFO] [stdout] 62 | | routes: vec![], [INFO] [stdout] 63 | | children: HashMap::new() [INFO] [stdout] 64 | | }); [INFO] [stdout] | |________________________^ expected struct `std::string::String`, found struct `AutonomousNetwork` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[std::string::String]` cannot be indexed by `&str` [INFO] [stdout] --> src/main.rs:67:58 [INFO] [stdout] | [INFO] [stdout] 67 | location = location.children.get_mut(asn).unwrap(); [INFO] [stdout] | ^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex<[std::string::String]>` is not implemented for `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bird_path_collector` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "a61ce7b3685013410bf411c146f7b981cd890a36be0b7f18ceea9d57cbfdb99c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a61ce7b3685013410bf411c146f7b981cd890a36be0b7f18ceea9d57cbfdb99c", kill_on_drop: false }` [INFO] [stdout] a61ce7b3685013410bf411c146f7b981cd890a36be0b7f18ceea9d57cbfdb99c