[INFO] fetching crate decide 0.1.1... [INFO] checking decide-0.1.1 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] extracting crate decide 0.1.1 into /workspace/builds/worker-51/source [INFO] validating manifest of crates.io crate decide 0.1.1 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate decide 0.1.1 [INFO] finished tweaking crates.io crate decide 0.1.1 [INFO] tweaked toml for crates.io crate decide 0.1.1 written to /workspace/builds/worker-51/source/Cargo.toml [INFO] crate crates.io crate decide 0.1.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cmd_lib v0.7.8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-51/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-51/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 82cc1dbf0a3ebfae7ea5c5c814840d177de1b3839b8d6551dce1b04324a7cbe3 [INFO] running `Command { std: "docker" "start" "-a" "82cc1dbf0a3ebfae7ea5c5c814840d177de1b3839b8d6551dce1b04324a7cbe3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "82cc1dbf0a3ebfae7ea5c5c814840d177de1b3839b8d6551dce1b04324a7cbe3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82cc1dbf0a3ebfae7ea5c5c814840d177de1b3839b8d6551dce1b04324a7cbe3", kill_on_drop: false }` [INFO] [stdout] 82cc1dbf0a3ebfae7ea5c5c814840d177de1b3839b8d6551dce1b04324a7cbe3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-51/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-51/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0080c89271ff53e1e7f0ec5b54b0fa41a227285cfafc087f714a62809ac0f6e9 [INFO] running `Command { std: "docker" "start" "-a" "0080c89271ff53e1e7f0ec5b54b0fa41a227285cfafc087f714a62809ac0f6e9", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] syn v1.0.11 (as host dependency): extra-traits [INFO] [stderr] [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.11 [INFO] [stderr] Compiling getrandom v0.1.13 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Checking yaml-rust v0.3.5 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking cmd_lib v0.7.8 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking c2-chacha v0.2.3 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking directories v2.0.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking rand v0.7.2 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Checking toml v0.5.5 [INFO] [stderr] Checking decide v0.1.1 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/error.rs:32:24 [INFO] [stdout] | [INFO] [stdout] 32 | impl From for Error { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/error.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | fn from(_: std::option::NoneError) -> Self { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/commands.rs:9:57 [INFO] [stdout] | [INFO] [stdout] 8 | / pub fn edit(matches: &ArgMatches, storage: &mut Storage) -> Result<(), Error> { [INFO] [stdout] 9 | | let old_name = String::from(matches.value_of("name")?); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), error::Error>` [INFO] [stdout] 10 | | storage.projects.iter_mut().for_each(|p| { [INFO] [stdout] 11 | | if p.name == old_name { [INFO] [stdout] ... | [INFO] [stdout] 24 | | Ok(()) [INFO] [stdout] 25 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), error::Error>` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/commands.rs:32:50 [INFO] [stdout] | [INFO] [stdout] 27 | / pub fn decide(matches: &ArgMatches, storage: &mut Storage) -> Result<(), Error> { [INFO] [stdout] 28 | | if storage.projects.is_empty() { [INFO] [stdout] 29 | | println!("you have nothing to work on :( / :)"); [INFO] [stdout] 30 | | } else { [INFO] [stdout] 31 | | let index = rand::thread_rng().gen_range(0, storage.projects.len()); [INFO] [stdout] 32 | | let project = storage.projects.get(index)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), error::Error>` [INFO] [stdout] ... | [INFO] [stdout] 47 | | Ok(()) [INFO] [stdout] 48 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), error::Error>` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/commands.rs:51:61 [INFO] [stdout] | [INFO] [stdout] 50 | / pub fn new(matches: &ArgMatches, storage: &mut Storage) -> Result<(), Error> { [INFO] [stdout] 51 | | let project_name = String::from(matches.value_of("NAME")?); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), error::Error>` [INFO] [stdout] 52 | | if storage.projects.iter().any(|p| p.name == project_name) { [INFO] [stdout] 53 | | println!("the project {} already exists", project_name); [INFO] [stdout] ... | [INFO] [stdout] 62 | | Ok(()) [INFO] [stdout] 63 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), error::Error>` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/commands.rs:66:61 [INFO] [stdout] | [INFO] [stdout] 65 | / pub fn remove(matches: &ArgMatches, storage: &mut Storage) -> Result<(), Error> { [INFO] [stdout] 66 | | let project_name = String::from(matches.value_of("NAME")?); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), error::Error>` [INFO] [stdout] 67 | | let mut found = false; [INFO] [stdout] 68 | | storage.projects.retain(|x| { [INFO] [stdout] ... | [INFO] [stdout] 79 | | Ok(()) [INFO] [stdout] 80 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), error::Error>` [INFO] [stdout] note: required by `from_residual` [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, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/error.rs:32:24 [INFO] [stdout] | [INFO] [stdout] 32 | impl From for Error { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/error.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | fn from(_: std::option::NoneError) -> Self { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `decide` due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/commands.rs:9:57 [INFO] [stdout] | [INFO] [stdout] 8 | / pub fn edit(matches: &ArgMatches, storage: &mut Storage) -> Result<(), Error> { [INFO] [stdout] 9 | | let old_name = String::from(matches.value_of("name")?); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), error::Error>` [INFO] [stdout] 10 | | storage.projects.iter_mut().for_each(|p| { [INFO] [stdout] 11 | | if p.name == old_name { [INFO] [stdout] ... | [INFO] [stdout] 24 | | Ok(()) [INFO] [stdout] 25 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), error::Error>` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/commands.rs:32:50 [INFO] [stdout] | [INFO] [stdout] 27 | / pub fn decide(matches: &ArgMatches, storage: &mut Storage) -> Result<(), Error> { [INFO] [stdout] 28 | | if storage.projects.is_empty() { [INFO] [stdout] 29 | | println!("you have nothing to work on :( / :)"); [INFO] [stdout] 30 | | } else { [INFO] [stdout] 31 | | let index = rand::thread_rng().gen_range(0, storage.projects.len()); [INFO] [stdout] 32 | | let project = storage.projects.get(index)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), error::Error>` [INFO] [stdout] ... | [INFO] [stdout] 47 | | Ok(()) [INFO] [stdout] 48 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), error::Error>` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/commands.rs:51:61 [INFO] [stdout] | [INFO] [stdout] 50 | / pub fn new(matches: &ArgMatches, storage: &mut Storage) -> Result<(), Error> { [INFO] [stdout] 51 | | let project_name = String::from(matches.value_of("NAME")?); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), error::Error>` [INFO] [stdout] 52 | | if storage.projects.iter().any(|p| p.name == project_name) { [INFO] [stdout] 53 | | println!("the project {} already exists", project_name); [INFO] [stdout] ... | [INFO] [stdout] 62 | | Ok(()) [INFO] [stdout] 63 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), error::Error>` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/commands.rs:66:61 [INFO] [stdout] | [INFO] [stdout] 65 | / pub fn remove(matches: &ArgMatches, storage: &mut Storage) -> Result<(), Error> { [INFO] [stdout] 66 | | let project_name = String::from(matches.value_of("NAME")?); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), error::Error>` [INFO] [stdout] 67 | | let mut found = false; [INFO] [stdout] 68 | | storage.projects.retain(|x| { [INFO] [stdout] ... | [INFO] [stdout] 79 | | Ok(()) [INFO] [stdout] 80 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), error::Error>` [INFO] [stdout] note: required by `from_residual` [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, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "0080c89271ff53e1e7f0ec5b54b0fa41a227285cfafc087f714a62809ac0f6e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0080c89271ff53e1e7f0ec5b54b0fa41a227285cfafc087f714a62809ac0f6e9", kill_on_drop: false }` [INFO] [stdout] 0080c89271ff53e1e7f0ec5b54b0fa41a227285cfafc087f714a62809ac0f6e9