[INFO] cloning repository https://github.com/aliaksandr-master/rust-common [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aliaksandr-master/rust-common" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faliaksandr-master%2Frust-common", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faliaksandr-master%2Frust-common'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bb25f5deb3fac3b76340598d121f06168fec28d2 [INFO] checking aliaksandr-master/rust-common against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faliaksandr-master%2Frust-common" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aliaksandr-master/rust-common on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/aliaksandr-master/rust-common [INFO] finished tweaking git repo https://github.com/aliaksandr-master/rust-common [INFO] tweaked toml for git repo https://github.com/aliaksandr-master/rust-common written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/aliaksandr-master/rust-common already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3e5b136a6daaa9f031a72724e92e038c335618a024540acb669f0a1cab8ec270 [INFO] running `Command { std: "docker" "start" "-a" "3e5b136a6daaa9f031a72724e92e038c335618a024540acb669f0a1cab8ec270", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3e5b136a6daaa9f031a72724e92e038c335618a024540acb669f0a1cab8ec270", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e5b136a6daaa9f031a72724e92e038c335618a024540acb669f0a1cab8ec270", kill_on_drop: false }` [INFO] [stdout] 3e5b136a6daaa9f031a72724e92e038c335618a024540acb669f0a1cab8ec270 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aa1dd0fffa27eeb51f7a532b726d89405e2426bf948559638ee36f01d194561d [INFO] running `Command { std: "docker" "start" "-a" "aa1dd0fffa27eeb51f7a532b726d89405e2426bf948559638ee36f01d194561d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Compiling serde v1.0.80 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Compiling memchr v2.1.1 [INFO] [stderr] Checking csv-core v0.1.4 [INFO] [stderr] Checking csv v1.0.2 [INFO] [stderr] Checking rust_common v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `Err` in module `io` [INFO] [stdout] --> src/aitline/mod.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | IOErr(io::Err), [INFO] [stdout] | ^^^ not found in `io` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `std::result::Result::Err`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 7 | IOErr(std::result::Result), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `passengers_file_path` in this scope [INFO] [stdout] --> src/main.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | passengers_file_path = cwd.join("data").join("airline_passengers.csv"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `passengers_file_path` in this scope [INFO] [stdout] --> src/main.rs:60:36 [INFO] [stdout] | [INFO] [stdout] 60 | let passgers = load_passengers(passengers_file_path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Err` in module `io` [INFO] [stdout] --> src/aitline/mod.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | IOErr(io::Err), [INFO] [stdout] | ^^^ not found in `io` [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `std::result::Result::Err`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 7 | IOErr(std::result::Result), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `passengers_file_path` in this scope [INFO] [stdout] --> src/main.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | passengers_file_path = cwd.join("data").join("airline_passengers.csv"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `passengers_file_path` in this scope [INFO] [stdout] --> src/main.rs:60:36 [INFO] [stdout] | [INFO] [stdout] 60 | let passgers = load_passengers(passengers_file_path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/aitline/mod.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn from_csv_record (rec: &csv::StringRecord) -> Result::Err> { [INFO] [stdout] | ----------------------------------- expected `Result` because of return type [INFO] [stdout] 31 | return MonthPassengerStat{ [INFO] [stdout] | ________________^ [INFO] [stdout] 32 | | month_name: rec[0].into(), [INFO] [stdout] 33 | | passengers_count: i32::from_str(&rec[1])? [INFO] [stdout] 34 | | }; [INFO] [stdout] | |_________^ expected enum `Result`, found struct `MonthPassengerStat` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found struct `MonthPassengerStat` [INFO] [stdout] help: try using a variant of the expected enum [INFO] [stdout] | [INFO] [stdout] 31 ~ return Ok(MonthPassengerStat{ [INFO] [stdout] 32 + month_name: rec[0].into(), [INFO] [stdout] 33 + passengers_count: i32::from_str(&rec[1])? [INFO] [stdout] 34 ~ }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `LoadingErr` [INFO] [stdout] --> src/aitline/mod.rs:49:41 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn load_passengers>(file_path: P) -> Result, LoadingErr> { [INFO] [stdout] | ------------------------------------------- expected `LoadingErr` because of this [INFO] [stdout] 49 | let file = fs::File::open(file_path)?; [INFO] [stdout] | ^ the trait `From` is not implemented for `LoadingErr` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required because of the requirements on the impl of `FromResidual>` for `Result, LoadingErr>` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/aitline/mod.rs:31:16 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn from_csv_record (rec: &csv::StringRecord) -> Result::Err> { [INFO] [stdout] | ----------------------------------- expected `Result` because of return type [INFO] [stdout] 31 | return MonthPassengerStat{ [INFO] [stdout] | ________________^ [INFO] [stdout] 32 | | month_name: rec[0].into(), [INFO] [stdout] 33 | | passengers_count: i32::from_str(&rec[1])? [INFO] [stdout] 34 | | }; [INFO] [stdout] | |_________^ expected enum `Result`, found struct `MonthPassengerStat` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found struct `MonthPassengerStat` [INFO] [stdout] help: try using a variant of the expected enum [INFO] [stdout] | [INFO] [stdout] 31 ~ return Ok(MonthPassengerStat{ [INFO] [stdout] 32 + month_name: rec[0].into(), [INFO] [stdout] 33 + passengers_count: i32::from_str(&rec[1])? [INFO] [stdout] 34 ~ }); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `LoadingErr` [INFO] [stdout] --> src/aitline/mod.rs:49:41 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn load_passengers>(file_path: P) -> Result, LoadingErr> { [INFO] [stdout] | ------------------------------------------- expected `LoadingErr` because of this [INFO] [stdout] 49 | let file = fs::File::open(file_path)?; [INFO] [stdout] | ^ the trait `From` is not implemented for `LoadingErr` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required because of the requirements on the impl of `FromResidual>` for `Result, LoadingErr>` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/aitline/mod.rs:71:59 [INFO] [stdout] | [INFO] [stdout] 71 | .map(|rec|MonthPassengerStat::from_csv_record(&rec?)?) [INFO] [stdout] | ---------------------------------------------^-- [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a closure that returns `MonthPassengerStat` [INFO] [stdout] | this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `MonthPassengerStat` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/aitline/mod.rs:71:59 [INFO] [stdout] | [INFO] [stdout] 71 | .map(|rec|MonthPassengerStat::from_csv_record(&rec?)?) [INFO] [stdout] | ---------------------------------------------^-- [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a closure that returns `MonthPassengerStat` [INFO] [stdout] | this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `MonthPassengerStat` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/aitline/mod.rs:71:61 [INFO] [stdout] | [INFO] [stdout] 71 | .map(|rec|MonthPassengerStat::from_csv_record(&rec?)?) [INFO] [stdout] | -----------------------------------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a closure that returns `MonthPassengerStat` [INFO] [stdout] | this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `MonthPassengerStat` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_common` due to 8 previous errors; 1 warning emitted [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/aitline/mod.rs:71:61 [INFO] [stdout] | [INFO] [stdout] 71 | .map(|rec|MonthPassengerStat::from_csv_record(&rec?)?) [INFO] [stdout] | -----------------------------------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a closure that returns `MonthPassengerStat` [INFO] [stdout] | this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `MonthPassengerStat` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 7 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "aa1dd0fffa27eeb51f7a532b726d89405e2426bf948559638ee36f01d194561d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa1dd0fffa27eeb51f7a532b726d89405e2426bf948559638ee36f01d194561d", kill_on_drop: false }` [INFO] [stdout] aa1dd0fffa27eeb51f7a532b726d89405e2426bf948559638ee36f01d194561d