[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#a5f164faad4a2fed606b8160fd7ecd2d5cbba381 for pr-84920 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhamptonmoore%2Fbird_route_collector" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hamptonmoore/bird_route_collector on toolchain a5f164faad4a2fed606b8160fd7ecd2d5cbba381 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a5f164faad4a2fed606b8160fd7ecd2d5cbba381" "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-12/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" "+a5f164faad4a2fed606b8160fd7ecd2d5cbba381" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+a5f164faad4a2fed606b8160fd7ecd2d5cbba381" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 1924638a9fa3a19510025a2e824a5772e2fffb920d2852440f7f9c717a4447c0 [INFO] running `Command { std: "docker" "start" "-a" "1924638a9fa3a19510025a2e824a5772e2fffb920d2852440f7f9c717a4447c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1924638a9fa3a19510025a2e824a5772e2fffb920d2852440f7f9c717a4447c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1924638a9fa3a19510025a2e824a5772e2fffb920d2852440f7f9c717a4447c0", kill_on_drop: false }` [INFO] [stdout] 1924638a9fa3a19510025a2e824a5772e2fffb920d2852440f7f9c717a4447c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+a5f164faad4a2fed606b8160fd7ecd2d5cbba381" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de0961ac90c724b1605e5dd9dfcc3508dc007a34695e95fb175d191c387304f3 [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" "de0961ac90c724b1605e5dd9dfcc3508dc007a34695e95fb175d191c387304f3", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling syn v1.0.55 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Checking serde v1.0.118 [INFO] [stderr] Checking 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: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[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: 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: 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[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] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "de0961ac90c724b1605e5dd9dfcc3508dc007a34695e95fb175d191c387304f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de0961ac90c724b1605e5dd9dfcc3508dc007a34695e95fb175d191c387304f3", kill_on_drop: false }` [INFO] [stdout] de0961ac90c724b1605e5dd9dfcc3508dc007a34695e95fb175d191c387304f3