[INFO] fetching crate dochy_diff 0.1.0... [INFO] checking dochy_diff-0.1.0 against try#4a23c45c7893f1416456144e3883cc48ea91722e for pr-82322 [INFO] extracting crate dochy_diff 0.1.0 into /workspace/builds/worker-14/source [INFO] validating manifest of crates.io crate dochy_diff 0.1.0 on toolchain 4a23c45c7893f1416456144e3883cc48ea91722e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate dochy_diff 0.1.0 [INFO] finished tweaking crates.io crate dochy_diff 0.1.0 [INFO] tweaked toml for crates.io crate dochy_diff 0.1.0 written to /workspace/builds/worker-14/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 37f781892dc11b44e9f2354583275e579a73887309c858ca239eafea3641c184 [INFO] running `Command { std: "docker" "start" "-a" "37f781892dc11b44e9f2354583275e579a73887309c858ca239eafea3641c184", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "37f781892dc11b44e9f2354583275e579a73887309c858ca239eafea3641c184", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37f781892dc11b44e9f2354583275e579a73887309c858ca239eafea3641c184", kill_on_drop: false }` [INFO] [stdout] 37f781892dc11b44e9f2354583275e579a73887309c858ca239eafea3641c184 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:21f1ed92105a0ef9b0d27ad8bdeb7f36f9f01ac17fffe3a3f3dc5241fc25d8f4" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 44c1b77f39981e031b2f9640d54061054be48bda553f8b07c0b6da249a44bcba [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" "44c1b77f39981e031b2f9640d54061054be48bda553f8b07c0b6da249a44bcba", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling anyhow v1.0.38 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Checking regex-syntax v0.6.22 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking with_capacity_safe v0.2.0 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking pest v2.1.3 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Checking aho-corasick v0.7.15 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Checking dochy_compaction v0.1.0 [INFO] [stderr] Checking dochy_json5 v0.1.0 [INFO] [stderr] Checking dochy_core v0.1.0 [INFO] [stderr] Checking dochy_diff v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/write/write_param.rs:70:49 [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] | | ^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), DiffError>` [INFO] [stdout] 71 | | RustParam::Int(i) => r.push(comp_int(*i.value()?)), [INFO] [stdout] ... | [INFO] [stdout] 77 | | Ok(()) [INFO] [stdout] 78 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/write/write_param.rs:71:47 [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] | | ^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 77 | | Ok(()) [INFO] [stdout] 78 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/write/write_param.rs:72:52 [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] | | ^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 77 | | Ok(()) [INFO] [stdout] 78 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/write/write_param.rs:73:50 [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] | | ^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 77 | | Ok(()) [INFO] [stdout] 78 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/write/write_param.rs:74:51 [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] | | ^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 77 | | Ok(()) [INFO] [stdout] 78 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/write/write_param.rs:75: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] 75 | | RustParam::FloatArray(s) => write_float_array(s.value()?, r), [INFO] [stdout] | | ^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), DiffError>` [INFO] [stdout] 76 | | } [INFO] [stdout] 77 | | Ok(()) [INFO] [stdout] 78 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/write/write_param.rs:70:49 [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] | | ^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), DiffError>` [INFO] [stdout] 71 | | RustParam::Int(i) => r.push(comp_int(*i.value()?)), [INFO] [stdout] ... | [INFO] [stdout] 77 | | Ok(()) [INFO] [stdout] 78 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/write/write_param.rs:71:47 [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] | | ^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 77 | | Ok(()) [INFO] [stdout] 78 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/write/write_param.rs:72:52 [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] | | ^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 77 | | Ok(()) [INFO] [stdout] 78 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/write/write_param.rs:73:50 [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] | | ^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 77 | | Ok(()) [INFO] [stdout] 78 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/write/write_param.rs:74:51 [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] | | ^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 77 | | Ok(()) [INFO] [stdout] 78 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/write/write_param.rs:75: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] 75 | | RustParam::FloatArray(s) => write_float_array(s.value()?, r), [INFO] [stdout] | | ^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), DiffError>` [INFO] [stdout] 76 | | } [INFO] [stdout] 77 | | Ok(()) [INFO] [stdout] 78 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 8 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:21:16 [INFO] [stdout] | [INFO] [stdout] 8 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:28:16 [INFO] [stdout] | [INFO] [stdout] 8 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 8 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:41:54 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 42 | | ParamType::Int => { RustParam::Int(Qv::Val(r.read()?.as_i64()?)) } [INFO] [stdout] ... | [INFO] [stdout] 51 | | Ok(p) [INFO] [stdout] 52 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:42:52 [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] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 51 | | Ok(p) [INFO] [stdout] 52 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:43:56 [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] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 51 | | Ok(p) [INFO] [stdout] 52 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:46:41 [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] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 51 | | Ok(p) [INFO] [stdout] 52 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 54 | / fn read_int_array(r : &mut Reader) -> Result{ [INFO] [stdout] 55 | | let len = r.read()?.as_i64()? as usize; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 56 | | let mut vec : Vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 57 | | for _ in 0..len{ [INFO] [stdout] ... | [INFO] [stdout] 60 | | Ok(RustIntArray::new(vec)) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 54 | / fn read_int_array(r : &mut Reader) -> Result{ [INFO] [stdout] 55 | | let len = r.read()?.as_i64()? as usize; [INFO] [stdout] 56 | | let mut vec : Vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 57 | | for _ in 0..len{ [INFO] [stdout] 58 | | vec.push(r.read()?.as_i64()?) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 59 | | } [INFO] [stdout] 60 | | Ok(RustIntArray::new(vec)) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:64:15 [INFO] [stdout] | [INFO] [stdout] 63 | / fn read_float_array(r : &mut Reader) -> Result{ [INFO] [stdout] 64 | | let len = r.read()?.as_i64()? as usize; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 65 | | let mut vec : Vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 66 | | for _ in 0..len{ [INFO] [stdout] ... | [INFO] [stdout] 69 | | Ok(RustFloatArray::new(vec)) [INFO] [stdout] 70 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 63 | / fn read_float_array(r : &mut Reader) -> Result{ [INFO] [stdout] 64 | | let len = r.read()?.as_i64()? as usize; [INFO] [stdout] 65 | | let mut vec : Vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 66 | | for _ in 0..len{ [INFO] [stdout] 67 | | vec.push(r.read()?.as_f64()?) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 68 | | } [INFO] [stdout] 69 | | Ok(RustFloatArray::new(vec)) [INFO] [stdout] 70 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/reader.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 22 | / pub(crate) fn read_u64_array(&mut self) -> Result, DiffError>{ [INFO] [stdout] 23 | | let len = self.read()?.as_i64()? as usize; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, DiffError>` [INFO] [stdout] 24 | | let mut vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 25 | | for _ in 0..len{ [INFO] [stdout] ... | [INFO] [stdout] 28 | | Ok(vec) [INFO] [stdout] 29 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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 in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/reader.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 22 | / pub(crate) fn read_u64_array(&mut self) -> Result, DiffError>{ [INFO] [stdout] 23 | | let len = self.read()?.as_i64()? as usize; [INFO] [stdout] 24 | | let mut vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 25 | | for _ in 0..len{ [INFO] [stdout] 26 | | vec.push(self.read()?.as_i64()? as u64); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, DiffError>` [INFO] [stdout] 27 | | } [INFO] [stdout] 28 | | Ok(vec) [INFO] [stdout] 29 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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 in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/reader.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 31 | / pub(crate) fn read_usize_array(&mut self) -> Result, DiffError>{ [INFO] [stdout] 32 | | let len = self.read()?.as_i64()? as usize; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, DiffError>` [INFO] [stdout] 33 | | let mut vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 34 | | for _ in 0..len{ [INFO] [stdout] ... | [INFO] [stdout] 37 | | Ok(vec) [INFO] [stdout] 38 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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 in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/reader.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 31 | / pub(crate) fn read_usize_array(&mut self) -> Result, DiffError>{ [INFO] [stdout] 32 | | let len = self.read()?.as_i64()? as usize; [INFO] [stdout] 33 | | let mut vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 34 | | for _ in 0..len{ [INFO] [stdout] 35 | | vec.push(self.read()?.as_i64()? as usize); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, DiffError>` [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | Ok(vec) [INFO] [stdout] 38 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_lists.rs:37:20 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 47 | | } [INFO] [stdout] 48 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_list.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 14 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 24 | | Ok(ListDiffR::new(vec, next_id)) [INFO] [stdout] 25 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_list.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 14 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 24 | | Ok(ListDiffR::new(vec, next_id)) [INFO] [stdout] 25 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:14:16 [INFO] [stdout] | [INFO] [stdout] 8 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_list.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 14 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 24 | | Ok(ListDiffR::new(vec, next_id)) [INFO] [stdout] 25 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:21:16 [INFO] [stdout] | [INFO] [stdout] 8 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:28:16 [INFO] [stdout] | [INFO] [stdout] 8 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_list.rs:28:8 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `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 should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_list.rs:30:15 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 34 | | } [INFO] [stdout] 35 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 8 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_list.rs:39:8 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `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 should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:41:54 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 42 | | ParamType::Int => { RustParam::Int(Qv::Val(r.read()?.as_i64()?)) } [INFO] [stdout] ... | [INFO] [stdout] 51 | | Ok(p) [INFO] [stdout] 52 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_list.rs:40:24 [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] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 43 | | Ok(CS{ prev_id, diff }) [INFO] [stdout] 44 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:42:52 [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] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 51 | | Ok(p) [INFO] [stdout] 52 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:43:56 [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] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 51 | | Ok(p) [INFO] [stdout] 52 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:46:41 [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] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 51 | | Ok(p) [INFO] [stdout] 52 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 54 | / fn read_int_array(r : &mut Reader) -> Result{ [INFO] [stdout] 55 | | let len = r.read()?.as_i64()? as usize; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 56 | | let mut vec : Vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 57 | | for _ in 0..len{ [INFO] [stdout] ... | [INFO] [stdout] 60 | | Ok(RustIntArray::new(vec)) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:58:18 [INFO] [stdout] | [INFO] [stdout] 54 | / fn read_int_array(r : &mut Reader) -> Result{ [INFO] [stdout] 55 | | let len = r.read()?.as_i64()? as usize; [INFO] [stdout] 56 | | let mut vec : Vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 57 | | for _ in 0..len{ [INFO] [stdout] 58 | | vec.push(r.read()?.as_i64()?) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 59 | | } [INFO] [stdout] 60 | | Ok(RustIntArray::new(vec)) [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:64:15 [INFO] [stdout] | [INFO] [stdout] 63 | / fn read_float_array(r : &mut Reader) -> Result{ [INFO] [stdout] 64 | | let len = r.read()?.as_i64()? as usize; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 65 | | let mut vec : Vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 66 | | for _ in 0..len{ [INFO] [stdout] ... | [INFO] [stdout] 69 | | Ok(RustFloatArray::new(vec)) [INFO] [stdout] 70 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_refs.rs:65:16 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result>, DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] 88 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_refs.rs:72:16 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result>, DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] 88 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_refs.rs:79:16 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result>, DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] 88 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_param.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 63 | / fn read_float_array(r : &mut Reader) -> Result{ [INFO] [stdout] 64 | | let len = r.read()?.as_i64()? as usize; [INFO] [stdout] 65 | | let mut vec : Vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 66 | | for _ in 0..len{ [INFO] [stdout] 67 | | vec.push(r.read()?.as_f64()?) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 68 | | } [INFO] [stdout] 69 | | Ok(RustFloatArray::new(vec)) [INFO] [stdout] 70 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_refs.rs:81:23 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result>, DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] 88 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_refs.rs:91:16 [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] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, DiffError>` [INFO] [stdout] 92 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/reader.rs:23:19 [INFO] [stdout] | [INFO] [stdout] 22 | / pub(crate) fn read_u64_array(&mut self) -> Result, DiffError>{ [INFO] [stdout] 23 | | let len = self.read()?.as_i64()? as usize; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, DiffError>` [INFO] [stdout] 24 | | let mut vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 25 | | for _ in 0..len{ [INFO] [stdout] ... | [INFO] [stdout] 28 | | Ok(vec) [INFO] [stdout] 29 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_store_ids.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | / pub fn read_stored_ids(r : &mut Reader) -> Result{ [INFO] [stdout] 6 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `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 should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/reader.rs:26:22 [INFO] [stdout] | [INFO] [stdout] 22 | / pub(crate) fn read_u64_array(&mut self) -> Result, DiffError>{ [INFO] [stdout] 23 | | let len = self.read()?.as_i64()? as usize; [INFO] [stdout] 24 | | let mut vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 25 | | for _ in 0..len{ [INFO] [stdout] 26 | | vec.push(self.read()?.as_i64()? as u64); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, DiffError>` [INFO] [stdout] 27 | | } [INFO] [stdout] 28 | | Ok(vec) [INFO] [stdout] 29 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_store_ids.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 5 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 8 | | if bits == 0{ [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] 22 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_store_ids.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 5 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] 22 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/reader.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 31 | / pub(crate) fn read_usize_array(&mut self) -> Result, DiffError>{ [INFO] [stdout] 32 | | let len = self.read()?.as_i64()? as usize; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, DiffError>` [INFO] [stdout] 33 | | let mut vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 34 | | for _ in 0..len{ [INFO] [stdout] ... | [INFO] [stdout] 37 | | Ok(vec) [INFO] [stdout] 38 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_lists_numbers.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 7 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 26 | | Ok(()) [INFO] [stdout] 27 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/reader.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 31 | / pub(crate) fn read_usize_array(&mut self) -> Result, DiffError>{ [INFO] [stdout] 32 | | let len = self.read()?.as_i64()? as usize; [INFO] [stdout] 33 | | let mut vec = vec_with_capacity_safe(len)?; [INFO] [stdout] 34 | | for _ in 0..len{ [INFO] [stdout] 35 | | vec.push(self.read()?.as_i64()? as usize); [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, DiffError>` [INFO] [stdout] 36 | | } [INFO] [stdout] 37 | | Ok(vec) [INFO] [stdout] 38 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [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] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_lists.rs:37:20 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 47 | | } [INFO] [stdout] 48 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_list.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 14 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 24 | | Ok(ListDiffR::new(vec, next_id)) [INFO] [stdout] 25 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_list.rs:18:19 [INFO] [stdout] | [INFO] [stdout] 14 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 24 | | Ok(ListDiffR::new(vec, next_id)) [INFO] [stdout] 25 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_list.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 14 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 24 | | Ok(ListDiffR::new(vec, next_id)) [INFO] [stdout] 25 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `dochy_diff` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_list.rs:28:8 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `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 should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_list.rs:30:15 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 34 | | } [INFO] [stdout] 35 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_list.rs:39:8 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `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 should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_list.rs:40:24 [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] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 43 | | Ok(CS{ prev_id, diff }) [INFO] [stdout] 44 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_refs.rs:65:16 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result>, DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] 88 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_refs.rs:72:16 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result>, DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] 88 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_refs.rs:79:16 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result>, DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] 88 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_refs.rs:81:23 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result>, DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 87 | | } [INFO] [stdout] 88 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_refs.rs:91:16 [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] | | ^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result, DiffError>` [INFO] [stdout] 92 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_store_ids.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | / pub fn read_stored_ids(r : &mut Reader) -> Result{ [INFO] [stdout] 6 | | if r.read()?.as_bool()?{ [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `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 should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_store_ids.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 5 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] 8 | | if bits == 0{ [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] 22 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_store_ids.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 5 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] 22 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/imp/read/read_lists_numbers.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 7 | / pub 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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result<(), DiffError>` [INFO] [stdout] ... | [INFO] [stdout] 26 | | Ok(()) [INFO] [stdout] 27 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "44c1b77f39981e031b2f9640d54061054be48bda553f8b07c0b6da249a44bcba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44c1b77f39981e031b2f9640d54061054be48bda553f8b07c0b6da249a44bcba", kill_on_drop: false }` [INFO] [stdout] 44c1b77f39981e031b2f9640d54061054be48bda553f8b07c0b6da249a44bcba