[INFO] cloning repository https://github.com/decentninja/roleplaying-dice [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/decentninja/roleplaying-dice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdecentninja%2Froleplaying-dice", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdecentninja%2Froleplaying-dice'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 69d9a031eb75043b67382ad3fcc62b6f822889a9 [INFO] checking decentninja/roleplaying-dice against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdecentninja%2Froleplaying-dice" "/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/decentninja/roleplaying-dice on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/decentninja/roleplaying-dice [INFO] finished tweaking git repo https://github.com/decentninja/roleplaying-dice [INFO] tweaked toml for git repo https://github.com/decentninja/roleplaying-dice written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/decentninja/roleplaying-dice already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand v0.4.1 [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" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4b6a9c42a81284ea610cd03590d1f15863a5cb402ce767e3abc6cf0fca2503f2 [INFO] running `Command { std: "docker" "start" "-a" "4b6a9c42a81284ea610cd03590d1f15863a5cb402ce767e3abc6cf0fca2503f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4b6a9c42a81284ea610cd03590d1f15863a5cb402ce767e3abc6cf0fca2503f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b6a9c42a81284ea610cd03590d1f15863a5cb402ce767e3abc6cf0fca2503f2", kill_on_drop: false }` [INFO] [stdout] 4b6a9c42a81284ea610cd03590d1f15863a5cb402ce767e3abc6cf0fca2503f2 [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" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a1042dbb3327b5edfa2d533f8c993fdff34b257011ceafe5db5e0e87f0efb90 [INFO] running `Command { std: "docker" "start" "-a" "1a1042dbb3327b5edfa2d533f8c993fdff34b257011ceafe5db5e0e87f0efb90", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking rand v0.4.1 [INFO] [stderr] Checking sharp-dice v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/main.rs:63:24 [INFO] [stdout] | [INFO] [stdout] 63 | impl From for CommandError { [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/main.rs:64:29 [INFO] [stdout] | [INFO] [stdout] 64 | fn from(_: std::option::NoneError) -> Self { [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/main.rs:63:24 [INFO] [stdout] | [INFO] [stdout] 63 | impl From for CommandError { [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/main.rs:64:29 [INFO] [stdout] | [INFO] [stdout] 64 | 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/main.rs:83:25 [INFO] [stdout] | [INFO] [stdout] 75 | / fn command(line: String, last: &str, rng: &mut rand::ThreadRng) -> Result { [INFO] [stdout] 76 | | let mut this = line.to_string(); [INFO] [stdout] 77 | | let mut parts = line.split_whitespace(); [INFO] [stdout] 78 | | let command = match parts.next() { [INFO] [stdout] ... | [INFO] [stdout] 83 | | parts.next()? [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | Ok(this) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [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/main.rs:89:42 [INFO] [stdout] | [INFO] [stdout] 75 | / fn command(line: String, last: &str, rng: &mut rand::ThreadRng) -> Result { [INFO] [stdout] 76 | | let mut this = line.to_string(); [INFO] [stdout] 77 | | let mut parts = line.split_whitespace(); [INFO] [stdout] 78 | | let command = match parts.next() { [INFO] [stdout] ... | [INFO] [stdout] 89 | | let your_bonus = parts.next()?.parse::()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | Ok(this) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [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/main.rs:90:43 [INFO] [stdout] | [INFO] [stdout] 75 | / fn command(line: String, last: &str, rng: &mut rand::ThreadRng) -> Result { [INFO] [stdout] 76 | | let mut this = line.to_string(); [INFO] [stdout] 77 | | let mut parts = line.split_whitespace(); [INFO] [stdout] 78 | | let command = match parts.next() { [INFO] [stdout] ... | [INFO] [stdout] 90 | | let enemy_bonus = parts.next()?.parse::()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | Ok(this) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [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/main.rs:109:34 [INFO] [stdout] | [INFO] [stdout] 75 | / fn command(line: String, last: &str, rng: &mut rand::ThreadRng) -> Result { [INFO] [stdout] 76 | | let mut this = line.to_string(); [INFO] [stdout] 77 | | let mut parts = line.split_whitespace(); [INFO] [stdout] 78 | | let command = match parts.next() { [INFO] [stdout] ... | [INFO] [stdout] 109 | | let dc = parts.next()?.parse::()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | Ok(this) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [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: could not compile `sharp-dice` due to 7 previous errors [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/main.rs:83:25 [INFO] [stdout] | [INFO] [stdout] 75 | / fn command(line: String, last: &str, rng: &mut rand::ThreadRng) -> Result { [INFO] [stdout] 76 | | let mut this = line.to_string(); [INFO] [stdout] 77 | | let mut parts = line.split_whitespace(); [INFO] [stdout] 78 | | let command = match parts.next() { [INFO] [stdout] ... | [INFO] [stdout] 83 | | parts.next()? [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | Ok(this) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [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[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a function that returns `Result` [INFO] [stdout] --> src/main.rs:89:42 [INFO] [stdout] | [INFO] [stdout] 75 | / fn command(line: String, last: &str, rng: &mut rand::ThreadRng) -> Result { [INFO] [stdout] 76 | | let mut this = line.to_string(); [INFO] [stdout] 77 | | let mut parts = line.split_whitespace(); [INFO] [stdout] 78 | | let command = match parts.next() { [INFO] [stdout] ... | [INFO] [stdout] 89 | | let your_bonus = parts.next()?.parse::()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | Ok(this) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [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/main.rs:90:43 [INFO] [stdout] | [INFO] [stdout] 75 | / fn command(line: String, last: &str, rng: &mut rand::ThreadRng) -> Result { [INFO] [stdout] 76 | | let mut this = line.to_string(); [INFO] [stdout] 77 | | let mut parts = line.split_whitespace(); [INFO] [stdout] 78 | | let command = match parts.next() { [INFO] [stdout] ... | [INFO] [stdout] 90 | | let enemy_bonus = parts.next()?.parse::()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | Ok(this) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [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/main.rs:109:34 [INFO] [stdout] | [INFO] [stdout] 75 | / fn command(line: String, last: &str, rng: &mut rand::ThreadRng) -> Result { [INFO] [stdout] 76 | | let mut this = line.to_string(); [INFO] [stdout] 77 | | let mut parts = line.split_whitespace(); [INFO] [stdout] 78 | | let command = match parts.next() { [INFO] [stdout] ... | [INFO] [stdout] 109 | | let dc = parts.next()?.parse::()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | Ok(this) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [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] running `Command { std: "docker" "inspect" "1a1042dbb3327b5edfa2d533f8c993fdff34b257011ceafe5db5e0e87f0efb90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a1042dbb3327b5edfa2d533f8c993fdff34b257011ceafe5db5e0e87f0efb90", kill_on_drop: false }` [INFO] [stdout] 1a1042dbb3327b5edfa2d533f8c993fdff34b257011ceafe5db5e0e87f0efb90