[INFO] fetching crate jstr 0.1.1... [INFO] checking jstr-0.1.1 against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] extracting crate jstr 0.1.1 into /workspace/builds/worker-11/source [INFO] validating manifest of crates.io crate jstr 0.1.1 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 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-11/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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] 02722ec74163e4b4eab2429c627efe996aff79fc05f03afc35784c7d42a9aeef [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" "02722ec74163e4b4eab2429c627efe996aff79fc05f03afc35784c7d42a9aeef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "02722ec74163e4b4eab2429c627efe996aff79fc05f03afc35784c7d42a9aeef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02722ec74163e4b4eab2429c627efe996aff79fc05f03afc35784c7d42a9aeef", kill_on_drop: false }` [INFO] [stdout] 02722ec74163e4b4eab2429c627efe996aff79fc05f03afc35784c7d42a9aeef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 524d9838891668eb00547c6664c513ec83767bc1f592ee7b765e55a4d4ba47c2 [INFO] running `Command { std: "docker" "start" "-a" "524d9838891668eb00547c6664c513ec83767bc1f592ee7b765e55a4d4ba47c2", 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] warning: unused imports: `Display`, `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[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`, `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[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] 63 | | let mut esc = false; [INFO] [stdout] 64 | | let mut index: usize = 0; [INFO] [stdout] 65 | | let mut valid = false; [INFO] [stdout] 66 | | [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] 96 | | } [INFO] [stdout] 97 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(&str, &str), 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/lib.rs:67:29 [INFO] [stdout] | [INFO] [stdout] 62 | / fn get_str(s: &str) -> Result<(&str, &str), Error> { [INFO] [stdout] 63 | | let mut esc = false; [INFO] [stdout] 64 | | let mut index: usize = 0; [INFO] [stdout] 65 | | let mut valid = false; [INFO] [stdout] 66 | | [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] 96 | | } [INFO] [stdout] 97 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(&str, &str), 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/lib.rs:100:29 [INFO] [stdout] | [INFO] [stdout] 99 | / fn get_num(s: &str) -> Result<(&str, &str), Error> { [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] 101 | | if !(c.is_digit(10) || c == '-') { [INFO] [stdout] 102 | | return Err(Error::new(c, 0)); [INFO] [stdout] ... | [INFO] [stdout] 109 | | return Err(Error::NoEnd); [INFO] [stdout] 110 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(&str, &str), 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/lib.rs:100:29 [INFO] [stdout] | [INFO] [stdout] 99 | / fn get_num(s: &str) -> Result<(&str, &str), Error> { [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] 101 | | if !(c.is_digit(10) || c == '-') { [INFO] [stdout] 102 | | return Err(Error::new(c, 0)); [INFO] [stdout] ... | [INFO] [stdout] 109 | | return Err(Error::NoEnd); [INFO] [stdout] 110 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(&str, &str), 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/lib.rs:128:31 [INFO] [stdout] | [INFO] [stdout] 124 | / fn get_object(s: &str) -> Result<(Object, &str), Error> { [INFO] [stdout] 125 | | let mut cur_s = &s[1..]; [INFO] [stdout] 126 | | let mut object = vec![]; [INFO] [stdout] 127 | | [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] 135 | | return Ok((Object::from(object), &cur_s[1..])); [INFO] [stdout] 136 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(Box<[Entry<'_>]>, &str), 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/lib.rs:128:31 [INFO] [stdout] | [INFO] [stdout] 124 | / fn get_object(s: &str) -> Result<(Object, &str), Error> { [INFO] [stdout] 125 | | let mut cur_s = &s[1..]; [INFO] [stdout] 126 | | let mut object = vec![]; [INFO] [stdout] 127 | | [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] 135 | | return Ok((Object::from(object), &cur_s[1..])); [INFO] [stdout] 136 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(Box<[Entry<'_>]>, &str), 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/lib.rs:142:31 [INFO] [stdout] | [INFO] [stdout] 138 | / fn get_array(s: &str) -> Result<(Array, &str), Error> { [INFO] [stdout] 139 | | let mut cur_s = &s[1..]; [INFO] [stdout] 140 | | let mut array = vec![]; [INFO] [stdout] 141 | | [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] 149 | | return Ok((Array::from(array), &cur_s[1..])); [INFO] [stdout] 150 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(Box<[Value<'_>]>, &str), 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/lib.rs:157:29 [INFO] [stdout] | [INFO] [stdout] 156 | / fn get_value(s: &str) -> Result<(Value, &str), Error> { [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] 158 | | [INFO] [stdout] 159 | | if c == '"' { [INFO] [stdout] ... | [INFO] [stdout] 191 | | return Err(Error::BadChar(c, 0)); [INFO] [stdout] 192 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(Value<'_>, &str), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [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] 139 | | let mut cur_s = &s[1..]; [INFO] [stdout] 140 | | let mut array = vec![]; [INFO] [stdout] 141 | | [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] 149 | | return Ok((Array::from(array), &cur_s[1..])); [INFO] [stdout] 150 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(Box<[Value<'_>]>, &str), 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/lib.rs:157:29 [INFO] [stdout] | [INFO] [stdout] 156 | / fn get_value(s: &str) -> Result<(Value, &str), Error> { [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] 158 | | [INFO] [stdout] 159 | | if c == '"' { [INFO] [stdout] ... | [INFO] [stdout] 191 | | return Err(Error::BadChar(c, 0)); [INFO] [stdout] 192 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(Value<'_>, &str), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jstr` due to 8 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 7 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0432. [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" "524d9838891668eb00547c6664c513ec83767bc1f592ee7b765e55a4d4ba47c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "524d9838891668eb00547c6664c513ec83767bc1f592ee7b765e55a4d4ba47c2", kill_on_drop: false }` [INFO] [stdout] 524d9838891668eb00547c6664c513ec83767bc1f592ee7b765e55a4d4ba47c2