[INFO] fetching crate dochy_diff 0.7.1... [INFO] checking dochy_diff-0.7.1 against master#5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f for pr-87248 [INFO] extracting crate dochy_diff 0.7.1 into /workspace/builds/worker-10/source [INFO] validating manifest of crates.io crate dochy_diff 0.7.1 on toolchain 5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate dochy_diff 0.7.1 [INFO] finished tweaking crates.io crate dochy_diff 0.7.1 [INFO] tweaked toml for crates.io crate dochy_diff 0.7.1 written to /workspace/builds/worker-10/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3c5b1c06525d62ac3f66f2e27c21bee844dc241d3f023f33cfd58f4d777885b1 [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" "3c5b1c06525d62ac3f66f2e27c21bee844dc241d3f023f33cfd58f4d777885b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3c5b1c06525d62ac3f66f2e27c21bee844dc241d3f023f33cfd58f4d777885b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c5b1c06525d62ac3f66f2e27c21bee844dc241d3f023f33cfd58f4d777885b1", kill_on_drop: false }` [INFO] [stdout] 3c5b1c06525d62ac3f66f2e27c21bee844dc241d3f023f33cfd58f4d777885b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "+5a8a44196b3cf099f8c9b0156bd902eaec0b4e5f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 00971b785ccf9fcacc675c033c15d5b219b69ad215e54482248ab7068cc4d2db [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" "00971b785ccf9fcacc675c033c15d5b219b69ad215e54482248ab7068cc4d2db", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling libc v0.2.98 [INFO] [stderr] Compiling syn v1.0.74 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling anyhow v1.0.42 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking with_capacity_safe v0.3.0 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Checking dochy_compaction v0.7.1 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Checking dochy_json5 v0.7.1 [INFO] [stderr] Checking dochy_core v0.7.1 [INFO] [stderr] Checking dochy_diff v0.7.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0583]: file not found for module `test_diff` [INFO] [stdout] --> src/lib.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | mod test_diff; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: to create the module `test_diff`, create file "src/test_diff.rs" or "src/test_diff/mod.rs" [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/diff_error.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | 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/diff_error.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `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/imp/write/write_param.rs:70:58 [INFO] [stdout] | [INFO] [stdout] 68 | / fn write_param2(param : &RustParam, r : &mut Vec) -> Result<(), DiffError>{ [INFO] [stdout] 69 | | match param{ [INFO] [stdout] 70 | | RustParam::Bool(i) => r.push(KVal::Bit(*i.value()?)), [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), DiffError>` [INFO] [stdout] 71 | | RustParam::Int(i) => r.push(comp_int(*i.value()?)), [INFO] [stdout] ... | [INFO] [stdout] 78 | | Ok(()) [INFO] [stdout] 79 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), DiffError>` [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/imp/write/write_param.rs:71:56 [INFO] [stdout] | [INFO] [stdout] 68 | / fn write_param2(param : &RustParam, r : &mut Vec) -> Result<(), DiffError>{ [INFO] [stdout] 69 | | match param{ [INFO] [stdout] 70 | | RustParam::Bool(i) => r.push(KVal::Bit(*i.value()?)), [INFO] [stdout] 71 | | RustParam::Int(i) => r.push(comp_int(*i.value()?)), [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 78 | | Ok(()) [INFO] [stdout] 79 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), DiffError>` [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/imp/write/write_param.rs:72:61 [INFO] [stdout] | [INFO] [stdout] 68 | / fn write_param2(param : &RustParam, r : &mut Vec) -> Result<(), DiffError>{ [INFO] [stdout] 69 | | match param{ [INFO] [stdout] 70 | | RustParam::Bool(i) => r.push(KVal::Bit(*i.value()?)), [INFO] [stdout] 71 | | RustParam::Int(i) => r.push(comp_int(*i.value()?)), [INFO] [stdout] 72 | | RustParam::Float(f) => r.push(comp_double(*f.value()?)), [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 78 | | Ok(()) [INFO] [stdout] 79 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), DiffError>` [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/imp/write/write_param.rs:73:59 [INFO] [stdout] | [INFO] [stdout] 68 | / fn write_param2(param : &RustParam, r : &mut Vec) -> Result<(), DiffError>{ [INFO] [stdout] 69 | | match param{ [INFO] [stdout] 70 | | RustParam::Bool(i) => r.push(KVal::Bit(*i.value()?)), [INFO] [stdout] 71 | | RustParam::Int(i) => r.push(comp_int(*i.value()?)), [INFO] [stdout] 72 | | RustParam::Float(f) => r.push(comp_double(*f.value()?)), [INFO] [stdout] 73 | | RustParam::String(s) => r.push( comp_str(s.value()?.to_string())), [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 78 | | Ok(()) [INFO] [stdout] 79 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), DiffError>` [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/imp/write/write_param.rs:74:60 [INFO] [stdout] | [INFO] [stdout] 68 | / fn write_param2(param : &RustParam, r : &mut Vec) -> Result<(), DiffError>{ [INFO] [stdout] 69 | | match param{ [INFO] [stdout] 70 | | RustParam::Bool(i) => r.push(KVal::Bit(*i.value()?)), [INFO] [stdout] 71 | | RustParam::Int(i) => r.push(comp_int(*i.value()?)), [INFO] [stdout] ... | [INFO] [stdout] 74 | | RustParam::IntArray(s) => write_int_array(s.value()?, r), [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 78 | | Ok(()) [INFO] [stdout] 79 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), DiffError>` [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/imp/write/write_param.rs:75:64 [INFO] [stdout] | [INFO] [stdout] 68 | / fn write_param2(param : &RustParam, r : &mut Vec) -> Result<(), DiffError>{ [INFO] [stdout] 69 | | match param{ [INFO] [stdout] 70 | | RustParam::Bool(i) => r.push(KVal::Bit(*i.value()?)), [INFO] [stdout] 71 | | RustParam::Int(i) => r.push(comp_int(*i.value()?)), [INFO] [stdout] ... | [INFO] [stdout] 75 | | RustParam::FloatArray(s) => write_float_array(s.value()?, r), [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 78 | | Ok(()) [INFO] [stdout] 79 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), DiffError>` [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/imp/write/write_param.rs:76:55 [INFO] [stdout] | [INFO] [stdout] 68 | / fn write_param2(param : &RustParam, r : &mut Vec) -> Result<(), DiffError>{ [INFO] [stdout] 69 | | match param{ [INFO] [stdout] 70 | | RustParam::Bool(i) => r.push(KVal::Bit(*i.value()?)), [INFO] [stdout] 71 | | RustParam::Int(i) => r.push(comp_int(*i.value()?)), [INFO] [stdout] ... | [INFO] [stdout] 76 | | RustParam::Binary(s) => write_binary(s.value()?, r), [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), DiffError>` [INFO] [stdout] 77 | | } [INFO] [stdout] 78 | | Ok(()) [INFO] [stdout] 79 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), DiffError>` [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/imp/write/write_param.rs:70:58 [INFO] [stdout] | [INFO] [stdout] 68 | / fn write_param2(param : &RustParam, r : &mut Vec) -> Result<(), DiffError>{ [INFO] [stdout] 69 | | match param{ [INFO] [stdout] 70 | | RustParam::Bool(i) => r.push(KVal::Bit(*i.value()?)), [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), DiffError>` [INFO] [stdout] 71 | | RustParam::Int(i) => r.push(comp_int(*i.value()?)), [INFO] [stdout] ... | [INFO] [stdout] 78 | | Ok(()) [INFO] [stdout] 79 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), DiffError>` [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/imp/write/write_param.rs:71:56 [INFO] [stdout] | [INFO] [stdout] 68 | / fn write_param2(param : &RustParam, r : &mut Vec) -> Result<(), DiffError>{ [INFO] [stdout] 69 | | match param{ [INFO] [stdout] 70 | | RustParam::Bool(i) => r.push(KVal::Bit(*i.value()?)), [INFO] [stdout] 71 | | RustParam::Int(i) => r.push(comp_int(*i.value()?)), [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 78 | | Ok(()) [INFO] [stdout] 79 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), DiffError>` [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/imp/write/write_param.rs:72:61 [INFO] [stdout] | [INFO] [stdout] 68 | / fn write_param2(param : &RustParam, r : &mut Vec) -> Result<(), DiffError>{ [INFO] [stdout] 69 | | match param{ [INFO] [stdout] 70 | | RustParam::Bool(i) => r.push(KVal::Bit(*i.value()?)), [INFO] [stdout] 71 | | RustParam::Int(i) => r.push(comp_int(*i.value()?)), [INFO] [stdout] 72 | | RustParam::Float(f) => r.push(comp_double(*f.value()?)), [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 78 | | Ok(()) [INFO] [stdout] 79 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), DiffError>` [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/imp/write/write_param.rs:73:59 [INFO] [stdout] | [INFO] [stdout] 68 | / fn write_param2(param : &RustParam, r : &mut Vec) -> Result<(), DiffError>{ [INFO] [stdout] 69 | | match param{ [INFO] [stdout] 70 | | RustParam::Bool(i) => r.push(KVal::Bit(*i.value()?)), [INFO] [stdout] 71 | | RustParam::Int(i) => r.push(comp_int(*i.value()?)), [INFO] [stdout] 72 | | RustParam::Float(f) => r.push(comp_double(*f.value()?)), [INFO] [stdout] 73 | | RustParam::String(s) => r.push( comp_str(s.value()?.to_string())), [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 78 | | Ok(()) [INFO] [stdout] 79 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), DiffError>` [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/imp/write/write_param.rs:74:60 [INFO] [stdout] | [INFO] [stdout] 68 | / fn write_param2(param : &RustParam, r : &mut Vec) -> Result<(), DiffError>{ [INFO] [stdout] 69 | | match param{ [INFO] [stdout] 70 | | RustParam::Bool(i) => r.push(KVal::Bit(*i.value()?)), [INFO] [stdout] 71 | | RustParam::Int(i) => r.push(comp_int(*i.value()?)), [INFO] [stdout] ... | [INFO] [stdout] 74 | | RustParam::IntArray(s) => write_int_array(s.value()?, r), [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 78 | | Ok(()) [INFO] [stdout] 79 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), DiffError>` [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/imp/write/write_param.rs:75:64 [INFO] [stdout] | [INFO] [stdout] 68 | / fn write_param2(param : &RustParam, r : &mut Vec) -> Result<(), DiffError>{ [INFO] [stdout] 69 | | match param{ [INFO] [stdout] 70 | | RustParam::Bool(i) => r.push(KVal::Bit(*i.value()?)), [INFO] [stdout] 71 | | RustParam::Int(i) => r.push(comp_int(*i.value()?)), [INFO] [stdout] ... | [INFO] [stdout] 75 | | RustParam::FloatArray(s) => write_float_array(s.value()?, r), [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 78 | | Ok(()) [INFO] [stdout] 79 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), DiffError>` [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/imp/write/write_param.rs:76:55 [INFO] [stdout] | [INFO] [stdout] 68 | / fn write_param2(param : &RustParam, r : &mut Vec) -> Result<(), DiffError>{ [INFO] [stdout] 69 | | match param{ [INFO] [stdout] 70 | | RustParam::Bool(i) => r.push(KVal::Bit(*i.value()?)), [INFO] [stdout] 71 | | RustParam::Int(i) => r.push(comp_int(*i.value()?)), [INFO] [stdout] ... | [INFO] [stdout] 76 | | RustParam::Binary(s) => write_binary(s.value()?, r), [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), DiffError>` [INFO] [stdout] 77 | | } [INFO] [stdout] 78 | | Ok(()) [INFO] [stdout] 79 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), DiffError>` [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/imp/read/read_param.rs:14:35 [INFO] [stdout] | [INFO] [stdout] 8 | / pub(crate) fn read_param(meta : &MetaParam, r : &mut Reader) -> Result{ [INFO] [stdout] 9 | | match meta.var_type() { [INFO] [stdout] 10 | | VarType::Normal => { [INFO] [stdout] 11 | | read_param2(meta, r) [INFO] [stdout] ... | [INFO] [stdout] 14 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [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/imp/read/read_param.rs:21:35 [INFO] [stdout] | [INFO] [stdout] 8 | / pub(crate) fn read_param(meta : &MetaParam, r : &mut Reader) -> Result{ [INFO] [stdout] 9 | | match meta.var_type() { [INFO] [stdout] 10 | | VarType::Normal => { [INFO] [stdout] 11 | | read_param2(meta, r) [INFO] [stdout] ... | [INFO] [stdout] 21 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [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/imp/read/read_param.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 8 | / pub(crate) fn read_param(meta : &MetaParam, r : &mut Reader) -> Result{ [INFO] [stdout] 9 | | match meta.var_type() { [INFO] [stdout] 10 | | VarType::Normal => { [INFO] [stdout] 11 | | read_param2(meta, r) [INFO] [stdout] ... | [INFO] [stdout] 28 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [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/imp/read/read_param.rs:30:42 [INFO] [stdout] | [INFO] [stdout] 8 | / pub(crate) fn read_param(meta : &MetaParam, r : &mut Reader) -> Result{ [INFO] [stdout] 9 | | match meta.var_type() { [INFO] [stdout] 10 | | VarType::Normal => { [INFO] [stdout] 11 | | read_param2(meta, r) [INFO] [stdout] ... | [INFO] [stdout] 30 | | } else if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [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/imp/read/read_param.rs:41:73 [INFO] [stdout] | [INFO] [stdout] 39 | / fn read_param2(meta : &MetaParam, r : &mut Reader) -> Result { [INFO] [stdout] 40 | | let p = match meta.param_type() { [INFO] [stdout] 41 | | ParamType::Bool => { RustParam::Bool(Qv::Val(r.read()?.as_bool()?)) } [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 42 | | ParamType::Int => { RustParam::Int(Qv::Val(r.read()?.as_i64()?)) } [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok(p) [INFO] [stdout] 53 | | } [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/imp/read/read_param.rs:14:35 [INFO] [stdout] | [INFO] [stdout] 8 | / pub(crate) fn read_param(meta : &MetaParam, r : &mut Reader) -> Result{ [INFO] [stdout] 9 | | match meta.var_type() { [INFO] [stdout] 10 | | VarType::Normal => { [INFO] [stdout] 11 | | read_param2(meta, r) [INFO] [stdout] ... | [INFO] [stdout] 14 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [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/imp/read/read_param.rs:42:70 [INFO] [stdout] | [INFO] [stdout] 39 | / fn read_param2(meta : &MetaParam, r : &mut Reader) -> Result { [INFO] [stdout] 40 | | let p = match meta.param_type() { [INFO] [stdout] 41 | | ParamType::Bool => { RustParam::Bool(Qv::Val(r.read()?.as_bool()?)) } [INFO] [stdout] 42 | | ParamType::Int => { RustParam::Int(Qv::Val(r.read()?.as_i64()?)) } [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok(p) [INFO] [stdout] 53 | | } [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/imp/read/read_param.rs:21:35 [INFO] [stdout] | [INFO] [stdout] 8 | / pub(crate) fn read_param(meta : &MetaParam, r : &mut Reader) -> Result{ [INFO] [stdout] 9 | | match meta.var_type() { [INFO] [stdout] 10 | | VarType::Normal => { [INFO] [stdout] 11 | | read_param2(meta, r) [INFO] [stdout] ... | [INFO] [stdout] 21 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [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/imp/read/read_param.rs:43:74 [INFO] [stdout] | [INFO] [stdout] 39 | / fn read_param2(meta : &MetaParam, r : &mut Reader) -> Result { [INFO] [stdout] 40 | | let p = match meta.param_type() { [INFO] [stdout] 41 | | ParamType::Bool => { RustParam::Bool(Qv::Val(r.read()?.as_bool()?)) } [INFO] [stdout] 42 | | ParamType::Int => { RustParam::Int(Qv::Val(r.read()?.as_i64()?)) } [INFO] [stdout] 43 | | ParamType::Float => { RustParam::Float(Qv::Val(r.read()?.as_f64()?)) } [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok(p) [INFO] [stdout] 53 | | } [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/imp/read/read_param.rs:28:35 [INFO] [stdout] | [INFO] [stdout] 8 | / pub(crate) fn read_param(meta : &MetaParam, r : &mut Reader) -> Result{ [INFO] [stdout] 9 | | match meta.var_type() { [INFO] [stdout] 10 | | VarType::Normal => { [INFO] [stdout] 11 | | read_param2(meta, r) [INFO] [stdout] ... | [INFO] [stdout] 28 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [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/imp/read/read_param.rs:30:42 [INFO] [stdout] | [INFO] [stdout] 8 | / pub(crate) fn read_param(meta : &MetaParam, r : &mut Reader) -> Result{ [INFO] [stdout] 9 | | match meta.var_type() { [INFO] [stdout] 10 | | VarType::Normal => { [INFO] [stdout] 11 | | read_param2(meta, r) [INFO] [stdout] ... | [INFO] [stdout] 30 | | } else if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [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/imp/read/read_param.rs:46:62 [INFO] [stdout] | [INFO] [stdout] 39 | / fn read_param2(meta : &MetaParam, r : &mut Reader) -> Result { [INFO] [stdout] 40 | | let p = match meta.param_type() { [INFO] [stdout] 41 | | ParamType::Bool => { RustParam::Bool(Qv::Val(r.read()?.as_bool()?)) } [INFO] [stdout] 42 | | ParamType::Int => { RustParam::Int(Qv::Val(r.read()?.as_i64()?)) } [INFO] [stdout] ... | [INFO] [stdout] 46 | | Qv::Val(RustString::new(r.read()?.as_string()?))) [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok(p) [INFO] [stdout] 53 | | } [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/imp/read/read_param.rs:41:73 [INFO] [stdout] | [INFO] [stdout] 39 | / fn read_param2(meta : &MetaParam, r : &mut Reader) -> Result { [INFO] [stdout] 40 | | let p = match meta.param_type() { [INFO] [stdout] 41 | | ParamType::Bool => { RustParam::Bool(Qv::Val(r.read()?.as_bool()?)) } [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 42 | | ParamType::Int => { RustParam::Int(Qv::Val(r.read()?.as_i64()?)) } [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok(p) [INFO] [stdout] 53 | | } [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/imp/read/read_param.rs:42:70 [INFO] [stdout] | [INFO] [stdout] 39 | / fn read_param2(meta : &MetaParam, r : &mut Reader) -> Result { [INFO] [stdout] 40 | | let p = match meta.param_type() { [INFO] [stdout] 41 | | ParamType::Bool => { RustParam::Bool(Qv::Val(r.read()?.as_bool()?)) } [INFO] [stdout] 42 | | ParamType::Int => { RustParam::Int(Qv::Val(r.read()?.as_i64()?)) } [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok(p) [INFO] [stdout] 53 | | } [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/imp/read/read_param.rs:80:38 [INFO] [stdout] | [INFO] [stdout] 78 | / fn read_binary(r : &mut Reader) -> Result{ [INFO] [stdout] 79 | | if let KVal::Binary(b) = r.read()?{ [INFO] [stdout] 80 | | let time = r.read()?.as_i64()? as u64; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 81 | | let random = r.read()?.as_i64()? as u64; [INFO] [stdout] ... | [INFO] [stdout] 85 | | } [INFO] [stdout] 86 | | } [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/imp/read/read_param.rs:43:74 [INFO] [stdout] | [INFO] [stdout] 39 | / fn read_param2(meta : &MetaParam, r : &mut Reader) -> Result { [INFO] [stdout] 40 | | let p = match meta.param_type() { [INFO] [stdout] 41 | | ParamType::Bool => { RustParam::Bool(Qv::Val(r.read()?.as_bool()?)) } [INFO] [stdout] 42 | | ParamType::Int => { RustParam::Int(Qv::Val(r.read()?.as_i64()?)) } [INFO] [stdout] 43 | | ParamType::Float => { RustParam::Float(Qv::Val(r.read()?.as_f64()?)) } [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok(p) [INFO] [stdout] 53 | | } [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/imp/read/read_param.rs:81:40 [INFO] [stdout] | [INFO] [stdout] 78 | / fn read_binary(r : &mut Reader) -> Result{ [INFO] [stdout] 79 | | if let KVal::Binary(b) = r.read()?{ [INFO] [stdout] 80 | | let time = r.read()?.as_i64()? as u64; [INFO] [stdout] 81 | | let random = r.read()?.as_i64()? as u64; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 85 | | } [INFO] [stdout] 86 | | } [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/imp/read/read_param.rs:46:62 [INFO] [stdout] | [INFO] [stdout] 39 | / fn read_param2(meta : &MetaParam, r : &mut Reader) -> Result { [INFO] [stdout] 40 | | let p = match meta.param_type() { [INFO] [stdout] 41 | | ParamType::Bool => { RustParam::Bool(Qv::Val(r.read()?.as_bool()?)) } [INFO] [stdout] 42 | | ParamType::Int => { RustParam::Int(Qv::Val(r.read()?.as_i64()?)) } [INFO] [stdout] ... | [INFO] [stdout] 46 | | Qv::Val(RustString::new(r.read()?.as_string()?))) [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 52 | | Ok(p) [INFO] [stdout] 53 | | } [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 method that returns `Result` [INFO] [stdout] --> src/imp/read/reader.rs:22:40 [INFO] [stdout] | [INFO] [stdout] 21 | / pub(crate) fn read_u64_array(&mut self) -> Result, DiffError>{ [INFO] [stdout] 22 | | let len = self.read()?.as_i64()? as usize; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result, DiffError>` [INFO] [stdout] 23 | | let mut vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 24 | | for _ in 0..len{ [INFO] [stdout] ... | [INFO] [stdout] 27 | | Ok(vec) [INFO] [stdout] 28 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, DiffError>` [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 method that returns `Result` [INFO] [stdout] --> src/imp/read/reader.rs:25:43 [INFO] [stdout] | [INFO] [stdout] 21 | / pub(crate) fn read_u64_array(&mut self) -> Result, DiffError>{ [INFO] [stdout] 22 | | let len = self.read()?.as_i64()? as usize; [INFO] [stdout] 23 | | let mut vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 24 | | for _ in 0..len{ [INFO] [stdout] 25 | | vec.push(self.read()?.as_i64()? as u64); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result, DiffError>` [INFO] [stdout] 26 | | } [INFO] [stdout] 27 | | Ok(vec) [INFO] [stdout] 28 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, DiffError>` [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/imp/read/read_param.rs:80:38 [INFO] [stdout] | [INFO] [stdout] 78 | / fn read_binary(r : &mut Reader) -> Result{ [INFO] [stdout] 79 | | if let KVal::Binary(b) = r.read()?{ [INFO] [stdout] 80 | | let time = r.read()?.as_i64()? as u64; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 81 | | let random = r.read()?.as_i64()? as u64; [INFO] [stdout] ... | [INFO] [stdout] 85 | | } [INFO] [stdout] 86 | | } [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 method that returns `Result` [INFO] [stdout] --> src/imp/read/reader.rs:31:40 [INFO] [stdout] | [INFO] [stdout] 30 | / pub(crate) fn read_usize_array(&mut self) -> Result, DiffError>{ [INFO] [stdout] 31 | | let len = self.read()?.as_i64()? as usize; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result, DiffError>` [INFO] [stdout] 32 | | let mut vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 33 | | for _ in 0..len{ [INFO] [stdout] ... | [INFO] [stdout] 36 | | Ok(vec) [INFO] [stdout] 37 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, DiffError>` [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/imp/read/read_param.rs:81:40 [INFO] [stdout] | [INFO] [stdout] 78 | / fn read_binary(r : &mut Reader) -> Result{ [INFO] [stdout] 79 | | if let KVal::Binary(b) = r.read()?{ [INFO] [stdout] 80 | | let time = r.read()?.as_i64()? as u64; [INFO] [stdout] 81 | | let random = r.read()?.as_i64()? as u64; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 85 | | } [INFO] [stdout] 86 | | } [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 method that returns `Result` [INFO] [stdout] --> src/imp/read/reader.rs:34:43 [INFO] [stdout] | [INFO] [stdout] 30 | / pub(crate) fn read_usize_array(&mut self) -> Result, DiffError>{ [INFO] [stdout] 31 | | let len = self.read()?.as_i64()? as usize; [INFO] [stdout] 32 | | let mut vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 33 | | for _ in 0..len{ [INFO] [stdout] 34 | | vec.push(self.read()?.as_i64()? as usize); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result, DiffError>` [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | Ok(vec) [INFO] [stdout] 37 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, DiffError>` [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 method that returns `Result` [INFO] [stdout] --> src/imp/read/reader.rs:22:40 [INFO] [stdout] | [INFO] [stdout] 21 | / pub(crate) fn read_u64_array(&mut self) -> Result, DiffError>{ [INFO] [stdout] 22 | | let len = self.read()?.as_i64()? as usize; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result, DiffError>` [INFO] [stdout] 23 | | let mut vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 24 | | for _ in 0..len{ [INFO] [stdout] ... | [INFO] [stdout] 27 | | Ok(vec) [INFO] [stdout] 28 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, DiffError>` [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 method that returns `Result` [INFO] [stdout] --> src/imp/read/reader.rs:25:43 [INFO] [stdout] | [INFO] [stdout] 21 | / pub(crate) fn read_u64_array(&mut self) -> Result, DiffError>{ [INFO] [stdout] 22 | | let len = self.read()?.as_i64()? as usize; [INFO] [stdout] 23 | | let mut vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 24 | | for _ in 0..len{ [INFO] [stdout] 25 | | vec.push(self.read()?.as_i64()? as u64); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result, DiffError>` [INFO] [stdout] 26 | | } [INFO] [stdout] 27 | | Ok(vec) [INFO] [stdout] 28 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, DiffError>` [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/imp/read/read_lists.rs:37:39 [INFO] [stdout] | [INFO] [stdout] 29 | / fn read_a_list(r : &mut Reader, index : usize, offset : usize, [INFO] [stdout] 30 | | meta : &MetaTable) -> Result { [INFO] [stdout] 31 | | if let Some((_, a)) = meta.get(index + offset) { [INFO] [stdout] 32 | | match a { [INFO] [stdout] ... | [INFO] [stdout] 37 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 47 | | } [INFO] [stdout] 48 | | } [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 method that returns `Result` [INFO] [stdout] --> src/imp/read/reader.rs:31:40 [INFO] [stdout] | [INFO] [stdout] 30 | / pub(crate) fn read_usize_array(&mut self) -> Result, DiffError>{ [INFO] [stdout] 31 | | let len = self.read()?.as_i64()? as usize; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result, DiffError>` [INFO] [stdout] 32 | | let mut vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 33 | | for _ in 0..len{ [INFO] [stdout] ... | [INFO] [stdout] 36 | | Ok(vec) [INFO] [stdout] 37 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, DiffError>` [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/imp/read/read_list.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 14 | / pub(crate) fn read_list(r : &mut Reader, meta : &MetaTables) [INFO] [stdout] 15 | | -> Result{ [INFO] [stdout] 16 | | [INFO] [stdout] 17 | | let len = r.read()?.as_i64()? as usize; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 24 | | Ok(ListDiffR::new(vec, next_id)) [INFO] [stdout] 25 | | } [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 method that returns `Result` [INFO] [stdout] --> src/imp/read/reader.rs:34:43 [INFO] [stdout] | [INFO] [stdout] 30 | / pub(crate) fn read_usize_array(&mut self) -> Result, DiffError>{ [INFO] [stdout] 31 | | let len = self.read()?.as_i64()? as usize; [INFO] [stdout] 32 | | let mut vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 33 | | for _ in 0..len{ [INFO] [stdout] 34 | | vec.push(self.read()?.as_i64()? as usize); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result, DiffError>` [INFO] [stdout] 35 | | } [INFO] [stdout] 36 | | Ok(vec) [INFO] [stdout] 37 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, DiffError>` [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/imp/read/read_list.rs:18:37 [INFO] [stdout] | [INFO] [stdout] 14 | / pub(crate) fn read_list(r : &mut Reader, meta : &MetaTables) [INFO] [stdout] 15 | | -> Result{ [INFO] [stdout] 16 | | [INFO] [stdout] 17 | | let len = r.read()?.as_i64()? as usize; [INFO] [stdout] 18 | | let next_id = r.read()?.as_i64()? as u64; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 24 | | Ok(ListDiffR::new(vec, next_id)) [INFO] [stdout] 25 | | } [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/imp/read/read_list.rs:21:36 [INFO] [stdout] | [INFO] [stdout] 14 | / pub(crate) fn read_list(r : &mut Reader, meta : &MetaTables) [INFO] [stdout] 15 | | -> Result{ [INFO] [stdout] 16 | | [INFO] [stdout] 17 | | let len = r.read()?.as_i64()? as usize; [INFO] [stdout] ... | [INFO] [stdout] 21 | | let id = r.read()?.as_i64()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 24 | | Ok(ListDiffR::new(vec, next_id)) [INFO] [stdout] 25 | | } [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/imp/read/read_list.rs:28:27 [INFO] [stdout] | [INFO] [stdout] 27 | / fn read_list_item(r : &mut Reader, meta : &MetaTables) -> Result{ [INFO] [stdout] 28 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 29 | | Ok(ListItemDiffEnumR::Modify(read_list_item2(r, meta)?)) [INFO] [stdout] 30 | | } else if r.read()?.as_bool()?{ [INFO] [stdout] ... | [INFO] [stdout] 34 | | } [INFO] [stdout] 35 | | } [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/imp/read/read_lists.rs:37:39 [INFO] [stdout] | [INFO] [stdout] 29 | / fn read_a_list(r : &mut Reader, index : usize, offset : usize, [INFO] [stdout] 30 | | meta : &MetaTable) -> Result { [INFO] [stdout] 31 | | if let Some((_, a)) = meta.get(index + offset) { [INFO] [stdout] 32 | | match a { [INFO] [stdout] ... | [INFO] [stdout] 37 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 47 | | } [INFO] [stdout] 48 | | } [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/imp/read/read_list.rs:30:34 [INFO] [stdout] | [INFO] [stdout] 27 | / fn read_list_item(r : &mut Reader, meta : &MetaTables) -> Result{ [INFO] [stdout] 28 | | if r.read()?.as_bool()?{ [INFO] [stdout] 29 | | Ok(ListItemDiffEnumR::Modify(read_list_item2(r, meta)?)) [INFO] [stdout] 30 | | } else if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 34 | | } [INFO] [stdout] 35 | | } [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/imp/read/read_list.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 14 | / pub(crate) fn read_list(r : &mut Reader, meta : &MetaTables) [INFO] [stdout] 15 | | -> Result{ [INFO] [stdout] 16 | | [INFO] [stdout] 17 | | let len = r.read()?.as_i64()? as usize; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 24 | | Ok(ListDiffR::new(vec, next_id)) [INFO] [stdout] 25 | | } [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/imp/read/read_list.rs:39:27 [INFO] [stdout] | [INFO] [stdout] 37 | / fn read_cs(r : &mut Reader, meta : &MetaTables) -> Result{ [INFO] [stdout] 38 | | let mut prev_id = None; [INFO] [stdout] 39 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 40 | | prev_id = Some(r.read()?.as_i64()? as u64); [INFO] [stdout] ... | [INFO] [stdout] 43 | | Ok(CS{ prev_id, diff }) [INFO] [stdout] 44 | | } [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/imp/read/read_list.rs:18:37 [INFO] [stdout] | [INFO] [stdout] 14 | / pub(crate) fn read_list(r : &mut Reader, meta : &MetaTables) [INFO] [stdout] 15 | | -> Result{ [INFO] [stdout] 16 | | [INFO] [stdout] 17 | | let len = r.read()?.as_i64()? as usize; [INFO] [stdout] 18 | | let next_id = r.read()?.as_i64()? as u64; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 24 | | Ok(ListDiffR::new(vec, next_id)) [INFO] [stdout] 25 | | } [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/imp/read/read_list.rs:40:42 [INFO] [stdout] | [INFO] [stdout] 37 | / fn read_cs(r : &mut Reader, meta : &MetaTables) -> Result{ [INFO] [stdout] 38 | | let mut prev_id = None; [INFO] [stdout] 39 | | if r.read()?.as_bool()?{ [INFO] [stdout] 40 | | prev_id = Some(r.read()?.as_i64()? as u64); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 43 | | Ok(CS{ prev_id, diff }) [INFO] [stdout] 44 | | } [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/imp/read/read_list.rs:21:36 [INFO] [stdout] | [INFO] [stdout] 14 | / pub(crate) fn read_list(r : &mut Reader, meta : &MetaTables) [INFO] [stdout] 15 | | -> Result{ [INFO] [stdout] 16 | | [INFO] [stdout] 17 | | let len = r.read()?.as_i64()? as usize; [INFO] [stdout] ... | [INFO] [stdout] 21 | | let id = r.read()?.as_i64()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 24 | | Ok(ListDiffR::new(vec, next_id)) [INFO] [stdout] 25 | | } [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/imp/read/read_list.rs:28:27 [INFO] [stdout] | [INFO] [stdout] 27 | / fn read_list_item(r : &mut Reader, meta : &MetaTables) -> Result{ [INFO] [stdout] 28 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 29 | | Ok(ListItemDiffEnumR::Modify(read_list_item2(r, meta)?)) [INFO] [stdout] 30 | | } else if r.read()?.as_bool()?{ [INFO] [stdout] ... | [INFO] [stdout] 34 | | } [INFO] [stdout] 35 | | } [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/imp/read/read_list.rs:30:34 [INFO] [stdout] | [INFO] [stdout] 27 | / fn read_list_item(r : &mut Reader, meta : &MetaTables) -> Result{ [INFO] [stdout] 28 | | if r.read()?.as_bool()?{ [INFO] [stdout] 29 | | Ok(ListItemDiffEnumR::Modify(read_list_item2(r, meta)?)) [INFO] [stdout] 30 | | } else if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 34 | | } [INFO] [stdout] 35 | | } [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/imp/read/read_list.rs:39:27 [INFO] [stdout] | [INFO] [stdout] 37 | / fn read_cs(r : &mut Reader, meta : &MetaTables) -> Result{ [INFO] [stdout] 38 | | let mut prev_id = None; [INFO] [stdout] 39 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 40 | | prev_id = Some(r.read()?.as_i64()? as u64); [INFO] [stdout] ... | [INFO] [stdout] 43 | | Ok(CS{ prev_id, diff }) [INFO] [stdout] 44 | | } [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/imp/read/read_list.rs:40:42 [INFO] [stdout] | [INFO] [stdout] 37 | / fn read_cs(r : &mut Reader, meta : &MetaTables) -> Result{ [INFO] [stdout] 38 | | let mut prev_id = None; [INFO] [stdout] 39 | | if r.read()?.as_bool()?{ [INFO] [stdout] 40 | | prev_id = Some(r.read()?.as_i64()? as u64); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 43 | | Ok(CS{ prev_id, diff }) [INFO] [stdout] 44 | | } [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/imp/read/read_refs.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 59 | / fn read_a_ref(r : &mut Reader, p : &MetaParam) -> Result>, DiffError> { [INFO] [stdout] 60 | | match p.var_type() { [INFO] [stdout] 61 | | VarType::Normal => { [INFO] [stdout] 62 | | Ok(Some(read_val(r)?)) [INFO] [stdout] ... | [INFO] [stdout] 65 | | if r.read()?.as_bool()? { [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result>, DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] 88 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, DiffError>` [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/imp/read/read_refs.rs:72:35 [INFO] [stdout] | [INFO] [stdout] 59 | / fn read_a_ref(r : &mut Reader, p : &MetaParam) -> Result>, DiffError> { [INFO] [stdout] 60 | | match p.var_type() { [INFO] [stdout] 61 | | VarType::Normal => { [INFO] [stdout] 62 | | Ok(Some(read_val(r)?)) [INFO] [stdout] ... | [INFO] [stdout] 72 | | if r.read()?.as_bool()? { [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result>, DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] 88 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, DiffError>` [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/imp/read/read_refs.rs:79:35 [INFO] [stdout] | [INFO] [stdout] 59 | / fn read_a_ref(r : &mut Reader, p : &MetaParam) -> Result>, DiffError> { [INFO] [stdout] 60 | | match p.var_type() { [INFO] [stdout] 61 | | VarType::Normal => { [INFO] [stdout] 62 | | Ok(Some(read_val(r)?)) [INFO] [stdout] ... | [INFO] [stdout] 79 | | if r.read()?.as_bool()? { [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result>, DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] 88 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, DiffError>` [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/imp/read/read_refs.rs:81:42 [INFO] [stdout] | [INFO] [stdout] 59 | / fn read_a_ref(r : &mut Reader, p : &MetaParam) -> Result>, DiffError> { [INFO] [stdout] 60 | | match p.var_type() { [INFO] [stdout] 61 | | VarType::Normal => { [INFO] [stdout] 62 | | Ok(Some(read_val(r)?)) [INFO] [stdout] ... | [INFO] [stdout] 81 | | } else if r.read()?.as_bool()? { [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result>, DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] 88 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, DiffError>` [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/imp/read/read_refs.rs:91:37 [INFO] [stdout] | [INFO] [stdout] 90 | / fn read_val(r : &mut Reader) -> Result, DiffError>{ [INFO] [stdout] 91 | | Ok(Qv::Val(r.read()?.as_string()?)) [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result, DiffError>` [INFO] [stdout] 92 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, DiffError>` [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/imp/read/read_store_ids.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 5 | / pub(crate) fn read_stored_ids(r : &mut Reader) -> Result{ [INFO] [stdout] 6 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 7 | | let bits = r.read()?.as_i64()? as u64; [INFO] [stdout] 8 | | if bits == 0{ [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] 22 | | } [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/imp/read/read_store_ids.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 5 | / pub(crate) fn read_stored_ids(r : &mut Reader) -> Result{ [INFO] [stdout] 6 | | if r.read()?.as_bool()?{ [INFO] [stdout] 7 | | let bits = r.read()?.as_i64()? as u64; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 8 | | if bits == 0{ [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] 22 | | } [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/imp/read/read_store_ids.rs:14:31 [INFO] [stdout] | [INFO] [stdout] 5 | / pub(crate) fn read_stored_ids(r : &mut Reader) -> Result{ [INFO] [stdout] 6 | | if r.read()?.as_bool()?{ [INFO] [stdout] 7 | | let bits = r.read()?.as_i64()? as u64; [INFO] [stdout] 8 | | if bits == 0{ [INFO] [stdout] ... | [INFO] [stdout] 14 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] 22 | | } [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/imp/read/read_refs.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 59 | / fn read_a_ref(r : &mut Reader, p : &MetaParam) -> Result>, DiffError> { [INFO] [stdout] 60 | | match p.var_type() { [INFO] [stdout] 61 | | VarType::Normal => { [INFO] [stdout] 62 | | Ok(Some(read_val(r)?)) [INFO] [stdout] ... | [INFO] [stdout] 65 | | if r.read()?.as_bool()? { [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result>, DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] 88 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, DiffError>` [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/imp/read/read_lists_numbers.rs:13:43 [INFO] [stdout] | [INFO] [stdout] 7 | / pub(crate) fn read_lists_numbers(r: &mut Reader, meta: &MetaTable, n: &Vec, [INFO] [stdout] 8 | | lists: &mut Vec<(usize, Option)>) -> Result<(), DiffError>{ [INFO] [stdout] 9 | | for &id in n { [INFO] [stdout] 10 | | if let Some((_, v)) = meta.get(id) { [INFO] [stdout] ... | [INFO] [stdout] 13 | | if r.read()?.as_bool()? { [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 26 | | Ok(()) [INFO] [stdout] 27 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), DiffError>` [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/imp/read/read_refs.rs:72:35 [INFO] [stdout] | [INFO] [stdout] 59 | / fn read_a_ref(r : &mut Reader, p : &MetaParam) -> Result>, DiffError> { [INFO] [stdout] 60 | | match p.var_type() { [INFO] [stdout] 61 | | VarType::Normal => { [INFO] [stdout] 62 | | Ok(Some(read_val(r)?)) [INFO] [stdout] ... | [INFO] [stdout] 72 | | if r.read()?.as_bool()? { [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result>, DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] 88 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, DiffError>` [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/imp/read/read_refs.rs:79:35 [INFO] [stdout] | [INFO] [stdout] 59 | / fn read_a_ref(r : &mut Reader, p : &MetaParam) -> Result>, DiffError> { [INFO] [stdout] 60 | | match p.var_type() { [INFO] [stdout] 61 | | VarType::Normal => { [INFO] [stdout] 62 | | Ok(Some(read_val(r)?)) [INFO] [stdout] ... | [INFO] [stdout] 79 | | if r.read()?.as_bool()? { [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result>, DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] 88 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, DiffError>` [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/imp/read/read_refs.rs:81:42 [INFO] [stdout] | [INFO] [stdout] 59 | / fn read_a_ref(r : &mut Reader, p : &MetaParam) -> Result>, DiffError> { [INFO] [stdout] 60 | | match p.var_type() { [INFO] [stdout] 61 | | VarType::Normal => { [INFO] [stdout] 62 | | Ok(Some(read_val(r)?)) [INFO] [stdout] ... | [INFO] [stdout] 81 | | } else if r.read()?.as_bool()? { [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result>, DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] 88 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, DiffError>` [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/imp/read/read_refs.rs:91:37 [INFO] [stdout] | [INFO] [stdout] 90 | / fn read_val(r : &mut Reader) -> Result, DiffError>{ [INFO] [stdout] 91 | | Ok(Qv::Val(r.read()?.as_string()?)) [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result, DiffError>` [INFO] [stdout] 92 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, DiffError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 40 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0583. [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/imp/read/read_store_ids.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 5 | / pub(crate) fn read_stored_ids(r : &mut Reader) -> Result{ [INFO] [stdout] 6 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 7 | | let bits = r.read()?.as_i64()? as u64; [INFO] [stdout] 8 | | if bits == 0{ [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] 22 | | } [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] error: could not compile `dochy_diff` due to 41 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/imp/read/read_store_ids.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 5 | / pub(crate) fn read_stored_ids(r : &mut Reader) -> Result{ [INFO] [stdout] 6 | | if r.read()?.as_bool()?{ [INFO] [stdout] 7 | | let bits = r.read()?.as_i64()? as u64; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 8 | | if bits == 0{ [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] 22 | | } [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/imp/read/read_store_ids.rs:14:31 [INFO] [stdout] | [INFO] [stdout] 5 | / pub(crate) fn read_stored_ids(r : &mut Reader) -> Result{ [INFO] [stdout] 6 | | if r.read()?.as_bool()?{ [INFO] [stdout] 7 | | let bits = r.read()?.as_i64()? as u64; [INFO] [stdout] 8 | | if bits == 0{ [INFO] [stdout] ... | [INFO] [stdout] 14 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] 22 | | } [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/imp/read/read_lists_numbers.rs:13:43 [INFO] [stdout] | [INFO] [stdout] 7 | / pub(crate) fn read_lists_numbers(r: &mut Reader, meta: &MetaTable, n: &Vec, [INFO] [stdout] 8 | | lists: &mut Vec<(usize, Option)>) -> Result<(), DiffError>{ [INFO] [stdout] 9 | | for &id in n { [INFO] [stdout] 10 | | if let Some((_, v)) = meta.get(id) { [INFO] [stdout] ... | [INFO] [stdout] 13 | | if r.read()?.as_bool()? { [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 26 | | Ok(()) [INFO] [stdout] 27 | | } [INFO] [stdout] | |_- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), DiffError>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 39 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, 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" "00971b785ccf9fcacc675c033c15d5b219b69ad215e54482248ab7068cc4d2db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00971b785ccf9fcacc675c033c15d5b219b69ad215e54482248ab7068cc4d2db", kill_on_drop: false }` [INFO] [stdout] 00971b785ccf9fcacc675c033c15d5b219b69ad215e54482248ab7068cc4d2db