[INFO] fetching crate pahi-olin 0.2.0... [INFO] checking pahi-olin-0.2.0 against try#4a23c45c7893f1416456144e3883cc48ea91722e for pr-82322 [INFO] extracting crate pahi-olin 0.2.0 into /workspace/builds/worker-3/source [INFO] validating manifest of crates.io crate pahi-olin 0.2.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 pahi-olin 0.2.0 [INFO] finished tweaking crates.io crate pahi-olin 0.2.0 [INFO] tweaked toml for crates.io crate pahi-olin 0.2.0 written to /workspace/builds/worker-3/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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded owo-colors v1.3.0 [INFO] [stderr] Downloaded wasmer-clif-fork-wasm v0.59.0 [INFO] [stderr] Downloaded eyre v0.6.5 [INFO] [stderr] Downloaded cranelift-entity v0.59.0 [INFO] [stderr] Downloaded errno v0.2.7 [INFO] [stderr] Downloaded errno-dragonfly v0.1.1 [INFO] [stderr] Downloaded wasmer-clif-fork-frontend v0.59.0 [INFO] [stderr] Downloaded wasmparser v0.51.4 [INFO] [stderr] Downloaded serde-bench v0.0.7 [INFO] [stderr] Downloaded page_size v0.4.2 [INFO] [stderr] Downloaded target-lexicon v0.10.0 [INFO] [stderr] Downloaded gimli v0.20.0 [INFO] [stderr] Downloaded color-spantrace v0.1.6 [INFO] [stderr] Downloaded tracing-error v0.1.2 [INFO] [stderr] Downloaded cranelift-native v0.59.0 [INFO] [stderr] Downloaded cranelift-bforest v0.59.0 [INFO] [stderr] Downloaded cranelift-codegen-shared v0.59.0 [INFO] [stderr] Downloaded wasmer-win-exception-handler v0.17.1 [INFO] [stderr] Downloaded wasmer-runtime-core v0.17.1 [INFO] [stderr] Downloaded raw-cpuid v7.0.4 [INFO] [stderr] Downloaded color-eyre v0.5.10 [INFO] [stderr] Downloaded wasmer-clif-backend v0.17.1 [INFO] [stderr] Downloaded cranelift-codegen-meta v0.59.0 [INFO] [stderr] Downloaded wasmer-runtime v0.17.1 [INFO] [stderr] Downloaded cranelift-codegen v0.59.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5f3b5fb87787eda33979f5fb9ca08e108ed5094c6cb2d4b8fb6e7b4a2dcfffed [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" "5f3b5fb87787eda33979f5fb9ca08e108ed5094c6cb2d4b8fb6e7b4a2dcfffed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5f3b5fb87787eda33979f5fb9ca08e108ed5094c6cb2d4b8fb6e7b4a2dcfffed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f3b5fb87787eda33979f5fb9ca08e108ed5094c6cb2d4b8fb6e7b4a2dcfffed", kill_on_drop: false }` [INFO] [stdout] 5f3b5fb87787eda33979f5fb9ca08e108ed5094c6cb2d4b8fb6e7b4a2dcfffed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 95962bb8e07e28279ac5d6985ef333c25e06df50a75f40297b04f9b3da019d0e [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" "95962bb8e07e28279ac5d6985ef333c25e06df50a75f40297b04f9b3da019d0e", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.87 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling serde v1.0.123 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Checking byteorder v1.4.2 [INFO] [stderr] Compiling cranelift-entity v0.59.0 [INFO] [stderr] Compiling target-lexicon v0.10.0 [INFO] [stderr] Compiling cranelift-codegen-shared v0.59.0 [INFO] [stderr] Checking smallvec v1.6.1 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Checking once_cell v1.7.2 [INFO] [stderr] Compiling rayon-core v1.9.0 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling nix v0.15.0 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking wasmparser v0.51.4 [INFO] [stderr] Checking pin-project-lite v0.2.5 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling eyre v0.6.5 [INFO] [stderr] Checking owo-colors v1.3.0 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling blake3 v0.3.7 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking sharded-slab v0.1.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling cranelift-codegen-meta v0.59.0 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Checking thread_local v1.1.3 [INFO] [stderr] Checking cranelift-bforest v0.59.0 [INFO] [stderr] Checking tinyvec v1.1.1 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.3 [INFO] [stderr] Compiling memoffset v0.6.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling rayon v1.5.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking log v0.4.14 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Checking unicode-normalization v0.1.17 [INFO] [stderr] Compiling raw-cpuid v7.0.4 [INFO] [stderr] Checking tracing-subscriber v0.2.16 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking crossbeam-epoch v0.9.3 [INFO] [stderr] Checking crossbeam-channel v0.5.0 [INFO] [stderr] Checking crossbeam-deque v0.8.0 [INFO] [stderr] Checking generic-array v0.12.4 [INFO] [stderr] Compiling openssl v0.10.32 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Checking idna v0.2.2 [INFO] [stderr] Checking parking_lot_core v0.7.2 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking errno v0.2.7 [INFO] [stderr] Checking page_size v0.4.2 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking dirs-sys v0.3.5 [INFO] [stderr] Checking backtrace v0.3.56 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking dirs v3.0.1 [INFO] [stderr] Checking parking_lot v0.10.2 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking url v2.2.1 [INFO] [stderr] Compiling wasmer-runtime-core v0.17.1 [INFO] [stderr] Checking bincode v1.3.1 [INFO] [stderr] Checking serde-bench v0.0.7 [INFO] [stderr] Checking serde_bytes v0.11.5 [INFO] [stderr] Checking gimli v0.20.0 [INFO] [stderr] Compiling cranelift-codegen v0.59.0 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling tracing-attributes v0.1.13 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking thiserror v1.0.24 [INFO] [stderr] Checking tracing v0.1.25 [INFO] [stderr] Checking tracing-error v0.1.2 [INFO] [stderr] Checking color-spantrace v0.1.6 [INFO] [stderr] Checking color-eyre v0.5.10 [INFO] [stderr] Checking wasmer-clif-fork-frontend v0.59.0 [INFO] [stderr] Checking cranelift-native v0.59.0 [INFO] [stderr] Checking wasmer-clif-fork-wasm v0.59.0 [INFO] [stderr] Checking wasmer-clif-backend v0.17.1 [INFO] [stderr] Checking wasmer-runtime v0.17.1 [INFO] [stderr] Checking pahi-olin v0.2.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/abi/env.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 4 | / pub fn get( [INFO] [stdout] 5 | | ctx: &mut Ctx, [INFO] [stdout] 6 | | key_ptr: WasmPtr, [INFO] [stdout] 7 | | key_len: u32, [INFO] [stdout] ... | [INFO] [stdout] 12 | | let key = key_ptr.get_utf8_string(memory, key_len)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 38 | | } [INFO] [stdout] 39 | | } [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/abi/env.rs:19:41 [INFO] [stdout] | [INFO] [stdout] 4 | / pub fn get( [INFO] [stdout] 5 | | ctx: &mut Ctx, [INFO] [stdout] 6 | | key_ptr: WasmPtr, [INFO] [stdout] 7 | | key_len: u32, [INFO] [stdout] ... | [INFO] [stdout] 19 | | let memory_writer = value_ptr.deref_mut(memory, 0, value.len() as u32)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 38 | | } [INFO] [stdout] 39 | | } [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/abi/resource.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 94 | / pub fn read( [INFO] [stdout] 95 | | ctx: &mut Ctx, [INFO] [stdout] 96 | | fd: u32, [INFO] [stdout] 97 | | ptr: WasmPtr, [INFO] [stdout] ... | [INFO] [stdout] 108 | | let res = res.as_mut()?; [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 130 | | } [INFO] [stdout] 131 | | } [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/abi/resource.rs:122:37 [INFO] [stdout] | [INFO] [stdout] 94 | / pub fn read( [INFO] [stdout] 95 | | ctx: &mut Ctx, [INFO] [stdout] 96 | | fd: u32, [INFO] [stdout] 97 | | ptr: WasmPtr, [INFO] [stdout] ... | [INFO] [stdout] 122 | | let memory_writer = ptr.deref_mut(memory, 0, len)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 130 | | } [INFO] [stdout] 131 | | } [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/abi/resource.rs:148:20 [INFO] [stdout] | [INFO] [stdout] 133 | / pub fn write( [INFO] [stdout] 134 | | ctx: &mut Ctx, [INFO] [stdout] 135 | | fd: u32, [INFO] [stdout] 136 | | ptr: WasmPtr, [INFO] [stdout] ... | [INFO] [stdout] 148 | | let res = &mut res.as_mut()?; [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 161 | | Ok(len as i32) [INFO] [stdout] 162 | | } [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/abi/resource.rs:149:18 [INFO] [stdout] | [INFO] [stdout] 133 | / pub fn write( [INFO] [stdout] 134 | | ctx: &mut Ctx, [INFO] [stdout] 135 | | fd: u32, [INFO] [stdout] 136 | | ptr: WasmPtr, [INFO] [stdout] ... | [INFO] [stdout] 149 | | let reader = ptr.deref(memory, 0, len)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 161 | | Ok(len as i32) [INFO] [stdout] 162 | | } [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/abi/resource.rs:173:20 [INFO] [stdout] | [INFO] [stdout] 164 | / pub fn flush(ctx: &mut Ctx, fd: u32) -> Result { [INFO] [stdout] 165 | | let (_, env) = Process::get_memory_and_environment(ctx, 0); [INFO] [stdout] 166 | | env.log_call("resource_flush".to_string()); [INFO] [stdout] 167 | | [INFO] [stdout] ... | [INFO] [stdout] 173 | | let res = &mut res.as_mut()?; [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 179 | | Ok(0) [INFO] [stdout] 180 | | } [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/abi/env.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 4 | / pub fn get( [INFO] [stdout] 5 | | ctx: &mut Ctx, [INFO] [stdout] 6 | | key_ptr: WasmPtr, [INFO] [stdout] 7 | | key_len: u32, [INFO] [stdout] ... | [INFO] [stdout] 12 | | let key = key_ptr.get_utf8_string(memory, key_len)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 38 | | } [INFO] [stdout] 39 | | } [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/abi/env.rs:19:41 [INFO] [stdout] | [INFO] [stdout] 4 | / pub fn get( [INFO] [stdout] 5 | | ctx: &mut Ctx, [INFO] [stdout] 6 | | key_ptr: WasmPtr, [INFO] [stdout] 7 | | key_len: u32, [INFO] [stdout] ... | [INFO] [stdout] 19 | | let memory_writer = value_ptr.deref_mut(memory, 0, value.len() as u32)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 38 | | } [INFO] [stdout] 39 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `pahi-olin` [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/abi/resource.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 94 | / pub fn read( [INFO] [stdout] 95 | | ctx: &mut Ctx, [INFO] [stdout] 96 | | fd: u32, [INFO] [stdout] 97 | | ptr: WasmPtr, [INFO] [stdout] ... | [INFO] [stdout] 108 | | let res = res.as_mut()?; [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 130 | | } [INFO] [stdout] 131 | | } [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/abi/resource.rs:122:37 [INFO] [stdout] | [INFO] [stdout] 94 | / pub fn read( [INFO] [stdout] 95 | | ctx: &mut Ctx, [INFO] [stdout] 96 | | fd: u32, [INFO] [stdout] 97 | | ptr: WasmPtr, [INFO] [stdout] ... | [INFO] [stdout] 122 | | let memory_writer = ptr.deref_mut(memory, 0, len)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 130 | | } [INFO] [stdout] 131 | | } [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/abi/resource.rs:148:20 [INFO] [stdout] | [INFO] [stdout] 133 | / pub fn write( [INFO] [stdout] 134 | | ctx: &mut Ctx, [INFO] [stdout] 135 | | fd: u32, [INFO] [stdout] 136 | | ptr: WasmPtr, [INFO] [stdout] ... | [INFO] [stdout] 148 | | let res = &mut res.as_mut()?; [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 161 | | Ok(len as i32) [INFO] [stdout] 162 | | } [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/abi/resource.rs:149:18 [INFO] [stdout] | [INFO] [stdout] 133 | / pub fn write( [INFO] [stdout] 134 | | ctx: &mut Ctx, [INFO] [stdout] 135 | | fd: u32, [INFO] [stdout] 136 | | ptr: WasmPtr, [INFO] [stdout] ... | [INFO] [stdout] 149 | | let reader = ptr.deref(memory, 0, len)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 161 | | Ok(len as i32) [INFO] [stdout] 162 | | } [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/abi/resource.rs:173:20 [INFO] [stdout] | [INFO] [stdout] 164 | / pub fn flush(ctx: &mut Ctx, fd: u32) -> Result { [INFO] [stdout] 165 | | let (_, env) = Process::get_memory_and_environment(ctx, 0); [INFO] [stdout] 166 | | env.log_call("resource_flush".to_string()); [INFO] [stdout] 167 | | [INFO] [stdout] ... | [INFO] [stdout] 173 | | let res = &mut res.as_mut()?; [INFO] [stdout] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 179 | | Ok(0) [INFO] [stdout] 180 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 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" "95962bb8e07e28279ac5d6985ef333c25e06df50a75f40297b04f9b3da019d0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "95962bb8e07e28279ac5d6985ef333c25e06df50a75f40297b04f9b3da019d0e", kill_on_drop: false }` [INFO] [stdout] 95962bb8e07e28279ac5d6985ef333c25e06df50a75f40297b04f9b3da019d0e