[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#4a23c45c7893f1416456144e3883cc48ea91722e for pr-82322 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdecentninja%2Froleplaying-dice" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/decentninja/roleplaying-dice on toolchain 4a23c45c7893f1416456144e3883cc48ea91722e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "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-5/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" "+4a23c45c7893f1416456144e3883cc48ea91722e" "fetch" "--locked" "--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 fuchsia-zircon-sys v0.3.2 [INFO] [stderr] Downloaded rand v0.4.1 [INFO] [stderr] Downloaded fuchsia-zircon v0.3.2 [INFO] [stderr] Downloaded libc v0.2.34 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3ea96cc6269f5867565db003f0d5fb5c83b27b6f396de9e252c0c0da0b75f7a1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3ea96cc6269f5867565db003f0d5fb5c83b27b6f396de9e252c0c0da0b75f7a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3ea96cc6269f5867565db003f0d5fb5c83b27b6f396de9e252c0c0da0b75f7a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3ea96cc6269f5867565db003f0d5fb5c83b27b6f396de9e252c0c0da0b75f7a1", kill_on_drop: false }` [INFO] [stdout] 3ea96cc6269f5867565db003f0d5fb5c83b27b6f396de9e252c0c0da0b75f7a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2c75948a4bfb41f85fa0ad1dfc412649a12946fdc4510ad50a39851536653a7a [INFO] running `Command { std: "docker" "start" "-a" "2c75948a4bfb41f85fa0ad1dfc412649a12946fdc4510ad50a39851536653a7a", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.34 [INFO] [stderr] Checking rand v0.4.1 [INFO] [stderr] Checking sharp-dice v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:83:13 [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] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | Ok(this) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:89:30 [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] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | Ok(this) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:90:31 [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] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | Ok(this) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:109:22 [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] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | Ok(this) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:83:13 [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] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | Ok(this) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:89:30 [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] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | Ok(this) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:90:31 [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] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | Ok(this) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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] error: could not compile `sharp-dice` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/main.rs:109:22 [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] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 131 | | Ok(this) [INFO] [stdout] 132 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "2c75948a4bfb41f85fa0ad1dfc412649a12946fdc4510ad50a39851536653a7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c75948a4bfb41f85fa0ad1dfc412649a12946fdc4510ad50a39851536653a7a", kill_on_drop: false }` [INFO] [stdout] 2c75948a4bfb41f85fa0ad1dfc412649a12946fdc4510ad50a39851536653a7a