[INFO] cloning repository https://github.com/sarahb/6991-ws02 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sarahb/6991-ws02" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsarahb%2F6991-ws02", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsarahb%2F6991-ws02'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d577b041dc23124251b30a5e3d7630bace0b3e41 [INFO] checking sarahb/6991-ws02 against master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsarahb%2F6991-ws02" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/sarahb/6991-ws02 [INFO] finished tweaking git repo https://github.com/sarahb/6991-ws02 [INFO] tweaked toml for git repo https://github.com/sarahb/6991-ws02 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sarahb/6991-ws02 on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/sarahb/6991-ws02 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" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded geoutils v0.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a99d956f61d10542f4c583b52234e8ed1fb98ad4bc78d6dd98247ca45c019051 [INFO] running `Command { std: "docker" "start" "-a" "a99d956f61d10542f4c583b52234e8ed1fb98ad4bc78d6dd98247ca45c019051", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a99d956f61d10542f4c583b52234e8ed1fb98ad4bc78d6dd98247ca45c019051", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a99d956f61d10542f4c583b52234e8ed1fb98ad4bc78d6dd98247ca45c019051", kill_on_drop: false }` [INFO] [stdout] a99d956f61d10542f4c583b52234e8ed1fb98ad4bc78d6dd98247ca45c019051 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d1eeca8f3ad64ccd01a2fe492541bae93eaac343ae77f63baa45249b88004e61 [INFO] running `Command { std: "docker" "start" "-a" "d1eeca8f3ad64ccd01a2fe492541bae93eaac343ae77f63baa45249b88004e61", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.43 [INFO] [stderr] Compiling unicode-ident v1.0.4 [INFO] [stderr] Compiling syn v1.0.100 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.145 [INFO] [stderr] Compiling serde v1.0.145 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking geoutils v0.5.1 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Checking ws02 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `1` on type `&std::option::Option<(&std::string::String, &i32)>` [INFO] [stdout] --> src/main.rs:101:57 [INFO] [stdout] | [INFO] [stdout] 101 | key_values.into_iter().max_by_key(|tuple| tuple.1) [INFO] [stdout] | ^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `1` on type `&std::option::Option<(&std::string::String, &i32)>` [INFO] [stdout] --> src/main.rs:101:57 [INFO] [stdout] | [INFO] [stdout] 101 | key_values.into_iter().max_by_key(|tuple| tuple.1) [INFO] [stdout] | ^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 95 | fn get_busiest_time(&self) -> (String, i32) { [INFO] [stdout] | ------------- expected `(std::string::String, i32)` because of return type [INFO] [stdout] ... [INFO] [stdout] 101 | key_values.into_iter().max_by_key(|tuple| tuple.1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `(String, i32)`, found `Option>` [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(std::string::String, i32)` [INFO] [stdout] found enum `std::option::Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:101:9 [INFO] [stdout] | [INFO] [stdout] 95 | fn get_busiest_time(&self) -> (String, i32) { [INFO] [stdout] | ------------- expected `(std::string::String, i32)` because of return type [INFO] [stdout] ... [INFO] [stdout] 101 | key_values.into_iter().max_by_key(|tuple| tuple.1) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `(String, i32)`, found `Option>` [INFO] [stdout] | [INFO] [stdout] = note: expected tuple `(std::string::String, i32)` [INFO] [stdout] found enum `std::option::Option>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `usagesMap` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let usagesMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^ not mutable [INFO] [stdout] 87 | usagesMap.insert(String::from("Morning"), self.thoroughfare_usage_morning); [INFO] [stdout] | --------- cannot borrow as mutable [INFO] [stdout] 88 | usagesMap.insert(String::from("Afternoon"), self.thoroughfare_usage_afternoon); [INFO] [stdout] | --------- cannot borrow as mutable [INFO] [stdout] 89 | usagesMap.insert(String::from("Evening"), self.thoroughfare_usage_evening); [INFO] [stdout] | --------- cannot borrow as mutable [INFO] [stdout] 90 | usagesMap.insert(String::from("Night"), self.thoroughfare_usage_night); [INFO] [stdout] | --------- cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 86 | let mut usagesMap = HashMap::new(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `usagesMap` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let usagesMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^ not mutable [INFO] [stdout] 87 | usagesMap.insert(String::from("Morning"), self.thoroughfare_usage_morning); [INFO] [stdout] | --------- cannot borrow as mutable [INFO] [stdout] 88 | usagesMap.insert(String::from("Afternoon"), self.thoroughfare_usage_afternoon); [INFO] [stdout] | --------- cannot borrow as mutable [INFO] [stdout] 89 | usagesMap.insert(String::from("Evening"), self.thoroughfare_usage_evening); [INFO] [stdout] | --------- cannot borrow as mutable [INFO] [stdout] 90 | usagesMap.insert(String::from("Night"), self.thoroughfare_usage_night); [INFO] [stdout] | --------- cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 86 | let mut usagesMap = HashMap::new(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `station_name` [INFO] [stdout] --> src/main.rs:197:48 [INFO] [stdout] | [INFO] [stdout] 187 | fn output_station_busiest_times(station_name: String, data: HashMap>) { [INFO] [stdout] | ------------ move occurs because `station_name` has type `std::string::String`, which does not implement the `Copy` trait [INFO] [stdout] 188 | let station_data = load_station(station_name, data); [INFO] [stdout] | ------------ value moved here [INFO] [stdout] ... [INFO] [stdout] 197 | println!("Busiest time at station {station_name} was {}", max.0); [INFO] [stdout] | ^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `load_station` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:176:23 [INFO] [stdout] | [INFO] [stdout] 176 | fn load_station(name: String, data: HashMap>) -> Option> { [INFO] [stdout] | ------------ ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 188 | let station_data = load_station(station_name.clone(), data); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `station_name` [INFO] [stdout] --> src/main.rs:197:48 [INFO] [stdout] | [INFO] [stdout] 187 | fn output_station_busiest_times(station_name: String, data: HashMap>) { [INFO] [stdout] | ------------ move occurs because `station_name` has type `std::string::String`, which does not implement the `Copy` trait [INFO] [stdout] 188 | let station_data = load_station(station_name, data); [INFO] [stdout] | ------------ value moved here [INFO] [stdout] ... [INFO] [stdout] 197 | println!("Busiest time at station {station_name} was {}", max.0); [INFO] [stdout] | ^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `load_station` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> src/main.rs:176:23 [INFO] [stdout] | [INFO] [stdout] 176 | fn load_station(name: String, data: HashMap>) -> Option> { [INFO] [stdout] | ------------ ^^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 188 | let station_data = load_station(station_name.clone(), data); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:217:9 [INFO] [stdout] | [INFO] [stdout] 217 | let mut min_morning:i32 = i32::MAX; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | let mut min_midday:i32 = i32::MAX; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:217:9 [INFO] [stdout] | [INFO] [stdout] 217 | let mut min_morning:i32 = i32::MAX; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | let mut min_evening:i32 = i32::MAX; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | let mut min_midnight:i32 = i32::MAX; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | let mut min_midday:i32 = i32::MAX; [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | let mut min_morning_station:String = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:219:9 [INFO] [stdout] | [INFO] [stdout] 219 | let mut min_evening:i32 = i32::MAX; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 224 | let mut min_midday_station:String = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:220:9 [INFO] [stdout] | [INFO] [stdout] 220 | let mut min_midnight:i32 = i32::MAX; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | let mut min_evening_station:String = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | let mut min_midnight_station:String = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | let mut min_morning_station:String = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:224:9 [INFO] [stdout] | [INFO] [stdout] 224 | let mut min_midday_station:String = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | let mut min_evening_station:String = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | let mut min_midnight_station:String = String::new(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0382, E0596, E0609. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0382, E0596, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ws02` (bin "ws02") due to 4 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ws02` (bin "ws02" test) due to 4 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d1eeca8f3ad64ccd01a2fe492541bae93eaac343ae77f63baa45249b88004e61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d1eeca8f3ad64ccd01a2fe492541bae93eaac343ae77f63baa45249b88004e61", kill_on_drop: false }` [INFO] [stdout] d1eeca8f3ad64ccd01a2fe492541bae93eaac343ae77f63baa45249b88004e61