[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/bb25f5deb3fac3b76340598d121f06168fec28d2 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faliaksandr-master%2Frust-common" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aliaksandr-master/rust-common on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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-7-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded memchr v2.1.1 [INFO] [stderr] Downloaded libc v0.2.44 [INFO] [stderr] Downloaded csv v1.0.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b2af28c315af69837dfe3f9f317342f2aca68dc2da53c67162a59ea3fbbb41b1 [INFO] running `Command { std: "docker" "start" "-a" "b2af28c315af69837dfe3f9f317342f2aca68dc2da53c67162a59ea3fbbb41b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b2af28c315af69837dfe3f9f317342f2aca68dc2da53c67162a59ea3fbbb41b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2af28c315af69837dfe3f9f317342f2aca68dc2da53c67162a59ea3fbbb41b1", kill_on_drop: false }` [INFO] [stdout] b2af28c315af69837dfe3f9f317342f2aca68dc2da53c67162a59ea3fbbb41b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2b8491d0bf92214061a9217804fa51c30eb527dde1e7dc3e0a31c447f7711ff [INFO] running `Command { std: "docker" "start" "-a" "c2b8491d0bf92214061a9217804fa51c30eb527dde1e7dc3e0a31c447f7711ff", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking cfg-if v0.1.6 [INFO] [stderr] Compiling serde v1.0.80 [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[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] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 58 | let passengers_file_path = cwd.join("data").join("airline_passengers.csv"); [INFO] [stdout] | +++ [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] 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] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 58 | let passengers_file_path = cwd.join("data").join("airline_passengers.csv"); [INFO] [stdout] | +++ [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] 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 `Result`, found `MonthPassengerStat` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found struct `MonthPassengerStat` [INFO] [stdout] help: try wrapping the expression in `Ok` [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[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 `Result`, found `MonthPassengerStat` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found struct `MonthPassengerStat` [INFO] [stdout] help: try wrapping the expression in `Ok` [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`, which is required by `Result, LoadingErr>: FromResidual>` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, std::io::Error>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] = note: required for `Result, LoadingErr>` to implement `FromResidual>` [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`, which is required by `Result, LoadingErr>: FromResidual>` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, std::io::Error>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] = note: required for `Result, LoadingErr>` to implement `FromResidual>` [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] | ----- ^ cannot use the `?` operator in a closure that returns `MonthPassengerStat` [INFO] [stdout] | | [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] [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] | ----- ^ cannot use the `?` operator in a closure that returns `MonthPassengerStat` [INFO] [stdout] | | [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] [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] | ----- ^ cannot use the `?` operator in a closure that returns `MonthPassengerStat` [INFO] [stdout] | | [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] [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] | ----- ^ cannot use the `?` operator in a closure that returns `MonthPassengerStat` [INFO] [stdout] | | [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] [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] [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] [stderr] error: could not compile `rust_common` (bin "rust_common") due to 8 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust_common` (bin "rust_common" test) due to 8 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "c2b8491d0bf92214061a9217804fa51c30eb527dde1e7dc3e0a31c447f7711ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2b8491d0bf92214061a9217804fa51c30eb527dde1e7dc3e0a31c447f7711ff", kill_on_drop: false }` [INFO] [stdout] c2b8491d0bf92214061a9217804fa51c30eb527dde1e7dc3e0a31c447f7711ff