[INFO] fetching crate jstr 0.1.1... [INFO] checking jstr-0.1.1 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate jstr 0.1.1 into /workspace/builds/worker-6-tc1/source [INFO] validating manifest of crates.io crate jstr 0.1.1 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 crates.io crate jstr 0.1.1 [INFO] finished tweaking crates.io crate jstr 0.1.1 [INFO] tweaked toml for crates.io crate jstr 0.1.1 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 585202780f3c67ce0b6948d03e5f9eb11e61567b9ea1764ba031f1dd2ad9ba86 [INFO] running `Command { std: "docker" "start" "-a" "585202780f3c67ce0b6948d03e5f9eb11e61567b9ea1764ba031f1dd2ad9ba86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "585202780f3c67ce0b6948d03e5f9eb11e61567b9ea1764ba031f1dd2ad9ba86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "585202780f3c67ce0b6948d03e5f9eb11e61567b9ea1764ba031f1dd2ad9ba86", kill_on_drop: false }` [INFO] [stdout] 585202780f3c67ce0b6948d03e5f9eb11e61567b9ea1764ba031f1dd2ad9ba86 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] afdbe6e9ac2dda3d23b88bf655a42ae15e2afa6d09369461cd003f48d77ae22e [INFO] running `Command { std: "docker" "start" "-a" "afdbe6e9ac2dda3d23b88bf655a42ae15e2afa6d09369461cd003f48d77ae22e", kill_on_drop: false }` [INFO] [stderr] Checking jstr v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/lib.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | 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/lib.rs:20:24 [INFO] [stdout] | [INFO] [stdout] 20 | impl From for Error { [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/lib.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/lib.rs:4:16 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `try_trait` [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(try_trait)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `try_trait` [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(try_trait)] [INFO] [stdout] | ^^^^^^^^^ [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/lib.rs:67:29 [INFO] [stdout] | [INFO] [stdout] 62 | fn get_str(s: &str) -> Result<(&str, &str), Error> { [INFO] [stdout] | -------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 67 | let c = s.chars().nth(0)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(&str, &str), Error>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(&str, &str), Error>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [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/lib.rs:100:29 [INFO] [stdout] | [INFO] [stdout] 99 | fn get_num(s: &str) -> Result<(&str, &str), Error> { [INFO] [stdout] | -------------------------------------------------- this function returns a `Result` [INFO] [stdout] 100 | let c = s.chars().nth(0)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(&str, &str), Error>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(&str, &str), Error>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [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/lib.rs:67:29 [INFO] [stdout] | [INFO] [stdout] 62 | fn get_str(s: &str) -> Result<(&str, &str), Error> { [INFO] [stdout] | -------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 67 | let c = s.chars().nth(0)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(&str, &str), Error>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(&str, &str), Error>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [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/lib.rs:100:29 [INFO] [stdout] | [INFO] [stdout] 99 | fn get_num(s: &str) -> Result<(&str, &str), Error> { [INFO] [stdout] | -------------------------------------------------- this function returns a `Result` [INFO] [stdout] 100 | let c = s.chars().nth(0)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(&str, &str), Error>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(&str, &str), Error>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [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/lib.rs:128:31 [INFO] [stdout] | [INFO] [stdout] 124 | fn get_object(s: &str) -> Result<(Object, &str), Error> { [INFO] [stdout] | ------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 128 | while cur_s.chars().nth(0)? != '}' { [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(Box<[Entry<'_>]>, &str), Error>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(Box<[Entry<'_>]>, &str), Error>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [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/lib.rs:128:31 [INFO] [stdout] | [INFO] [stdout] 124 | fn get_object(s: &str) -> Result<(Object, &str), Error> { [INFO] [stdout] | ------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 128 | while cur_s.chars().nth(0)? != '}' { [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(Box<[Entry<'_>]>, &str), Error>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(Box<[Entry<'_>]>, &str), Error>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [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/lib.rs:142:31 [INFO] [stdout] | [INFO] [stdout] 138 | fn get_array(s: &str) -> Result<(Array, &str), Error> { [INFO] [stdout] | ----------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 142 | while cur_s.chars().nth(0)? != ']' { [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(Box<[Value<'_>]>, &str), Error>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(Box<[Value<'_>]>, &str), Error>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [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/lib.rs:157:29 [INFO] [stdout] | [INFO] [stdout] 156 | fn get_value(s: &str) -> Result<(Value, &str), Error> { [INFO] [stdout] | ----------------------------------------------------- this function returns a `Result` [INFO] [stdout] 157 | let c = s.chars().nth(0)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(Value<'_>, &str), Error>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(Value<'_>, &str), Error>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [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/lib.rs:142:31 [INFO] [stdout] | [INFO] [stdout] 138 | fn get_array(s: &str) -> Result<(Array, &str), Error> { [INFO] [stdout] | ----------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 142 | while cur_s.chars().nth(0)? != ']' { [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(Box<[Value<'_>]>, &str), Error>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(Box<[Value<'_>]>, &str), Error>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [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/lib.rs:157:29 [INFO] [stdout] | [INFO] [stdout] 156 | fn get_value(s: &str) -> Result<(Value, &str), Error> { [INFO] [stdout] | ----------------------------------------------------- this function returns a `Result` [INFO] [stdout] 157 | let c = s.chars().nth(0)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(Value<'_>, &str), Error>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(Value<'_>, &str), Error>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0432, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `jstr` (lib) due to 9 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 8 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0432, E0635. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `jstr` (lib test) due to 9 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "afdbe6e9ac2dda3d23b88bf655a42ae15e2afa6d09369461cd003f48d77ae22e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "afdbe6e9ac2dda3d23b88bf655a42ae15e2afa6d09369461cd003f48d77ae22e", kill_on_drop: false }` [INFO] [stdout] afdbe6e9ac2dda3d23b88bf655a42ae15e2afa6d09369461cd003f48d77ae22e