[INFO] fetching crate loalang 0.1.20... [INFO] checking loalang-0.1.20 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate loalang 0.1.20 into /workspace/builds/worker-3-tc1/source [INFO] validating manifest of crates.io crate loalang 0.1.20 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate loalang 0.1.20 [INFO] finished tweaking crates.io crate loalang 0.1.20 [INFO] tweaked toml for crates.io crate loalang 0.1.20 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate crates.io crate loalang 0.1.20 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rustyline v5.0.4 [INFO] [stderr] Downloaded filetime v0.2.8 [INFO] [stderr] Downloaded bincode v1.2.0 [INFO] [stderr] Downloaded tokio-stdin-stdout v0.1.5 [INFO] [stderr] Downloaded tokio-reactor v0.1.10 [INFO] [stderr] Downloaded serde_repr v0.1.5 [INFO] [stderr] Downloaded rgb v0.8.14 [INFO] [stderr] Downloaded security-framework-sys v0.3.3 [INFO] [stderr] Downloaded unicode-segmentation v1.5.0 [INFO] [stderr] Downloaded winconsole v0.10.0 [INFO] [stderr] Downloaded num-bigint v0.2.2 [INFO] [stderr] Downloaded http v0.1.20 [INFO] [stderr] Downloaded openssl v0.10.26 [INFO] [stderr] Downloaded reqwest v0.9.22 [INFO] [stderr] Downloaded url v2.1.0 [INFO] [stderr] Downloaded flate2 v1.0.12 [INFO] [stderr] Downloaded indexmap v1.2.0 [INFO] [stderr] Downloaded openssl-sys v0.9.53 [INFO] [stderr] Downloaded encoding_rs v0.8.20 [INFO] [stderr] Downloaded security-framework v0.3.4 [INFO] [stderr] Downloaded tokio-threadpool v0.1.16 [INFO] [stderr] Downloaded cc v1.0.46 [INFO] [stderr] Downloaded ignore v0.4.10 [INFO] [stderr] Downloaded lsp-types v0.60.0 [INFO] [stderr] Downloaded schannel v0.1.16 [INFO] [stderr] Downloaded rpassword v4.0.1 [INFO] [stderr] Downloaded synstructure v0.12.1 [INFO] [stderr] Downloaded ryu v1.0.1 [INFO] [stderr] Downloaded tar v0.4.26 [INFO] [stderr] Downloaded colored v1.8.0 [INFO] [stderr] Downloaded mime v0.3.14 [INFO] [stderr] Downloaded mime_guess v2.0.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.5 [INFO] [stderr] Downloaded blake2b_simd v0.5.8 [INFO] [stderr] Downloaded lsp-server v0.2.0 [INFO] [stderr] Downloaded peekmore v0.4.0 [INFO] [stderr] Downloaded ngrammatic v0.3.1 [INFO] [stderr] Downloaded graphql_query_derive v0.8.0 [INFO] [stderr] Downloaded jsonrpc-stdio-server v14.0.0 [INFO] [stderr] Downloaded graphql_client v0.8.0 [INFO] [stderr] Downloaded fraction v0.6.2 [INFO] [stderr] Downloaded graphql_client_codegen v0.8.0 [INFO] [stderr] Downloaded jsonrpc-core v14.0.0 [INFO] [stderr] Downloaded hyper-staticfile v0.4.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6ad9e3a197cfcba8a299eabcf02e7120f2163a9c57399ae0a1d17516ce28060f [INFO] running `Command { std: "docker" "start" "-a" "6ad9e3a197cfcba8a299eabcf02e7120f2163a9c57399ae0a1d17516ce28060f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6ad9e3a197cfcba8a299eabcf02e7120f2163a9c57399ae0a1d17516ce28060f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ad9e3a197cfcba8a299eabcf02e7120f2163a9c57399ae0a1d17516ce28060f", kill_on_drop: false }` [INFO] [stdout] 6ad9e3a197cfcba8a299eabcf02e7120f2163a9c57399ae0a1d17516ce28060f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ecf4d7661af4af400595bff0d832afb866453f22b10b5fb7118595ea20c0bf5b [INFO] running `Command { std: "docker" "start" "-a" "ecf4d7661af4af400595bff0d832afb866453f22b10b5fb7118595ea20c0bf5b", kill_on_drop: false }` [INFO] [stderr] warning: only one of `license` or `license-file` is necessary [INFO] [stderr] `license` should be used if the package license can be expressed with a standard SPDX expression. [INFO] [stderr] `license-file` should be used if the package uses a non-standard license. [INFO] [stderr] See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information. [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling proc-macro2 v1.0.5 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Compiling num-bigint v0.2.2 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling unicode-segmentation v1.5.0 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Checking strum v0.17.1 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling bincode v1.2.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking ngrammatic v0.3.1 [INFO] [stderr] Checking peekmore v0.4.0 [INFO] [stderr] Checking glob v0.3.0 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling strum_macros v0.17.1 [INFO] [stderr] Checking num v0.2.0 [INFO] [stderr] Checking fraction v0.6.2 [INFO] [stderr] Checking loalang v0.1.20 (/opt/rustwide/workdir) [INFO] [stdout] error[E0463]: can't find crate for `serde_yaml` [INFO] [stdout] --> src/lib/fixture_tests.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | extern crate serde_yaml; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `simple_logging` [INFO] [stdout] --> src/lib/fixture_tests.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | extern crate simple_logging; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/lib/generation/generation_error.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> src/lib/generation/generation_error.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `Ok` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/types.rs:816:5 [INFO] [stdout] | [INFO] [stdout] 816 | type Ok = Type; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `Error` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/types.rs:817:5 [INFO] [stdout] | [INFO] [stdout] 817 | type Error = std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `into_result` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/types.rs:819:5 [INFO] [stdout] | [INFO] [stdout] 819 | / fn into_result(self) -> Result { [INFO] [stdout] 820 | | Ok(self) [INFO] [stdout] 821 | | } [INFO] [stdout] | |_____^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_error` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/types.rs:823:5 [INFO] [stdout] | [INFO] [stdout] 823 | / fn from_error(_v: Self::Error) -> Self { [INFO] [stdout] 824 | | Type::Unknown [INFO] [stdout] 825 | | } [INFO] [stdout] | |_____^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_ok` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/types.rs:827:5 [INFO] [stdout] | [INFO] [stdout] 827 | / fn from_ok(v: Self::Ok) -> Self { [INFO] [stdout] 828 | | v [INFO] [stdout] 829 | | } [INFO] [stdout] | |_____^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `Ok` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | type Ok = TypeAssignability; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `Error` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | type Error = std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `into_result` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | / fn into_result(self) -> Result { [INFO] [stdout] 56 | | Ok(self) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_error` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / fn from_error(_v: Self::Error) -> Self { [INFO] [stdout] 60 | | // We gracefully make a NoneError into [INFO] [stdout] 61 | | // a valid type assignability, because [INFO] [stdout] 62 | | // it occurs when navigating the AST [INFO] [stdout] ... | [INFO] [stdout] 65 | | TypeAssignability::Valid [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_ok` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | / fn from_ok(v: Self::Ok) -> Self { [INFO] [stdout] 69 | | v [INFO] [stdout] 70 | | } [INFO] [stdout] | |_____^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `Ok` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/types.rs:816:5 [INFO] [stdout] | [INFO] [stdout] 816 | type Ok = Type; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `Error` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/types.rs:817:5 [INFO] [stdout] | [INFO] [stdout] 817 | type Error = std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `into_result` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/types.rs:819:5 [INFO] [stdout] | [INFO] [stdout] 819 | / fn into_result(self) -> Result { [INFO] [stdout] 820 | | Ok(self) [INFO] [stdout] 821 | | } [INFO] [stdout] | |_____^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_error` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/types.rs:823:5 [INFO] [stdout] | [INFO] [stdout] 823 | / fn from_error(_v: Self::Error) -> Self { [INFO] [stdout] 824 | | Type::Unknown [INFO] [stdout] 825 | | } [INFO] [stdout] | |_____^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_ok` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/types.rs:827:5 [INFO] [stdout] | [INFO] [stdout] 827 | / fn from_ok(v: Self::Ok) -> Self { [INFO] [stdout] 828 | | v [INFO] [stdout] 829 | | } [INFO] [stdout] | |_____^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `Ok` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | type Ok = TypeAssignability; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0437]: type `Error` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | type Error = std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `into_result` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | / fn into_result(self) -> Result { [INFO] [stdout] 56 | | Ok(self) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_error` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / fn from_error(_v: Self::Error) -> Self { [INFO] [stdout] 60 | | // We gracefully make a NoneError into [INFO] [stdout] 61 | | // a valid type assignability, because [INFO] [stdout] 62 | | // it occurs when navigating the AST [INFO] [stdout] ... | [INFO] [stdout] 65 | | TypeAssignability::Valid [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0407]: method `from_ok` is not a member of trait `std::ops::Try` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | / fn from_ok(v: Self::Ok) -> Self { [INFO] [stdout] 69 | | v [INFO] [stdout] 70 | | } [INFO] [stdout] | |_____^ not a member of trait `std::ops::Try` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/lib/semantics/types.rs:817:31 [INFO] [stdout] | [INFO] [stdout] 817 | type Error = std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | type Error = std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/lib/semantics/types.rs:817:31 [INFO] [stdout] | [INFO] [stdout] 817 | type Error = std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NoneError` in module `std::option` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:53:31 [INFO] [stdout] | [INFO] [stdout] 53 | type Error = std::option::NoneError; [INFO] [stdout] | ^^^^^^^^^ not found in `std::option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/lib/semantics/types.rs:815:6 [INFO] [stdout] | [INFO] [stdout] 815 | impl std::ops::Try for Type { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #84277 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:51:6 [INFO] [stdout] | [INFO] [stdout] 51 | impl std::ops::Try for TypeAssignability { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #84277 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/lib/semantics/types.rs:815:6 [INFO] [stdout] | [INFO] [stdout] 815 | impl std::ops::Try for Type { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #84277 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'try_trait_v2' [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:51:6 [INFO] [stdout] | [INFO] [stdout] 51 | impl std::ops::Try for TypeAssignability { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #84277 for more information [INFO] [stdout] = help: add `#![feature(try_trait_v2)]` to the crate attributes to enable [INFO] [stdout] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `try_trait` [INFO] [stdout] --> src/lib/mod.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(box_patterns, try_trait)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0635]: unknown feature `try_trait` [INFO] [stdout] --> src/lib/mod.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(box_patterns, try_trait)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Output`, `Residual`, `from_output`, `branch` [INFO] [stdout] --> src/lib/semantics/types.rs:815:1 [INFO] [stdout] | [INFO] [stdout] 815 | impl std::ops::Try for Type { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Output`, `Residual`, `from_output`, `branch` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Output = /* Type */;` [INFO] [stdout] = help: implement the missing item: `type Residual = /* Type */;` [INFO] [stdout] = help: implement the missing item: `fn from_output(_: ::Output) -> Self { todo!() }` [INFO] [stdout] = help: implement the missing item: `fn branch(self) -> ControlFlow<::Residual, ::Output> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Output`, `Residual`, `from_output`, `branch` [INFO] [stdout] --> src/lib/semantics/types.rs:815:1 [INFO] [stdout] | [INFO] [stdout] 815 | impl std::ops::Try for Type { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Output`, `Residual`, `from_output`, `branch` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Output = /* Type */;` [INFO] [stdout] = help: implement the missing item: `type Residual = /* Type */;` [INFO] [stdout] = help: implement the missing item: `fn from_output(_: ::Output) -> Self { todo!() }` [INFO] [stdout] = help: implement the missing item: `fn branch(self) -> ControlFlow<::Residual, ::Output> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Ok` not found for `Self` [INFO] [stdout] --> src/lib/semantics/types.rs:819:42 [INFO] [stdout] | [INFO] [stdout] 819 | fn into_result(self) -> Result { [INFO] [stdout] | ^^ associated type `Ok` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Ok` not found for `Self` [INFO] [stdout] --> src/lib/semantics/types.rs:819:42 [INFO] [stdout] | [INFO] [stdout] 819 | fn into_result(self) -> Result { [INFO] [stdout] | ^^ associated type `Ok` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `Self` [INFO] [stdout] --> src/lib/semantics/types.rs:819:52 [INFO] [stdout] | [INFO] [stdout] 819 | fn into_result(self) -> Result { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `Self` [INFO] [stdout] --> src/lib/semantics/types.rs:819:52 [INFO] [stdout] | [INFO] [stdout] 819 | fn into_result(self) -> Result { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `Self` [INFO] [stdout] --> src/lib/semantics/types.rs:823:29 [INFO] [stdout] | [INFO] [stdout] 823 | fn from_error(_v: Self::Error) -> Self { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `Self` [INFO] [stdout] --> src/lib/semantics/types.rs:823:29 [INFO] [stdout] | [INFO] [stdout] 823 | fn from_error(_v: Self::Error) -> Self { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Ok` not found for `Self` [INFO] [stdout] --> src/lib/semantics/types.rs:827:25 [INFO] [stdout] | [INFO] [stdout] 827 | fn from_ok(v: Self::Ok) -> Self { [INFO] [stdout] | ^^ associated type `Ok` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Ok` not found for `Self` [INFO] [stdout] --> src/lib/semantics/types.rs:827:25 [INFO] [stdout] | [INFO] [stdout] 827 | fn from_ok(v: Self::Ok) -> Self { [INFO] [stdout] | ^^ associated type `Ok` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Output`, `Residual`, `from_output`, `branch` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | impl std::ops::Try for TypeAssignability { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Output`, `Residual`, `from_output`, `branch` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Output = /* Type */;` [INFO] [stdout] = help: implement the missing item: `type Residual = /* Type */;` [INFO] [stdout] = help: implement the missing item: `fn from_output(_: ::Output) -> Self { todo!() }` [INFO] [stdout] = help: implement the missing item: `fn branch(self) -> ControlFlow<::Residual, ::Output> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `Output`, `Residual`, `from_output`, `branch` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | impl std::ops::Try for TypeAssignability { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Output`, `Residual`, `from_output`, `branch` in implementation [INFO] [stdout] | [INFO] [stdout] = help: implement the missing item: `type Output = /* Type */;` [INFO] [stdout] = help: implement the missing item: `type Residual = /* Type */;` [INFO] [stdout] = help: implement the missing item: `fn from_output(_: ::Output) -> Self { todo!() }` [INFO] [stdout] = help: implement the missing item: `fn branch(self) -> ControlFlow<::Residual, ::Output> { todo!() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Ok` not found for `Self` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:55:42 [INFO] [stdout] | [INFO] [stdout] 55 | fn into_result(self) -> Result { [INFO] [stdout] | ^^ associated type `Ok` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Ok` not found for `Self` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:55:42 [INFO] [stdout] | [INFO] [stdout] 55 | fn into_result(self) -> Result { [INFO] [stdout] | ^^ associated type `Ok` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `Self` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:55:52 [INFO] [stdout] | [INFO] [stdout] 55 | fn into_result(self) -> Result { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `Self` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:59:29 [INFO] [stdout] | [INFO] [stdout] 59 | fn from_error(_v: Self::Error) -> Self { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `Self` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:55:52 [INFO] [stdout] | [INFO] [stdout] 55 | fn into_result(self) -> Result { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Ok` not found for `Self` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:68:25 [INFO] [stdout] | [INFO] [stdout] 68 | fn from_ok(v: Self::Ok) -> Self { [INFO] [stdout] | ^^ associated type `Ok` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Error` not found for `Self` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:59:29 [INFO] [stdout] | [INFO] [stdout] 59 | fn from_error(_v: Self::Error) -> Self { [INFO] [stdout] | ^^^^^ associated type `Error` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0220]: associated type `Ok` not found for `Self` [INFO] [stdout] --> src/lib/semantics/type_assignability.rs:68:25 [INFO] [stdout] | [INFO] [stdout] 68 | fn from_ok(v: Self::Ok) -> Self { [INFO] [stdout] | ^^ associated type `Ok` not found [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:48:78 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 48 | .find_declaration(expression, DeclarationKind::Value)?, [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:52:78 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 52 | let expression = self.navigator.find_child(expression, e)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:57:78 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 57 | let expression = self.navigator.find_child(expression, e)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:65:82 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 65 | .find_declaration(expression, DeclarationKind::Value)?, [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:70:97 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 70 | self.get_type_of_declaration(&self.navigator.find_stdlib_class("Loa/String")?) [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:74:96 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 74 | .get_type_of_declaration(&self.navigator.find_stdlib_class("Loa/Character")?), [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:82:74 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 82 | let expression = self.navigator.find_node(expression)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:90:72 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 90 | let receiver = self.navigator.find_node(expression)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:91:68 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 91 | let message = self.navigator.find_node(message)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:93:77 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 93 | let selector = self.navigator.message_selector(&message)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:122:74 [INFO] [stdout] | [INFO] [stdout] 121 | .map(|pid| { [INFO] [stdout] | ----- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 122 | let param = self.navigator.find_child(list, *pid)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:146:97 [INFO] [stdout] | [INFO] [stdout] 143 | .gate(&declaration.id, || match declaration.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 146 | } => self.get_type_of_type_expression(&self.navigator.find_node(type_expression)?), [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:151:74 [INFO] [stdout] | [INFO] [stdout] 143 | .gate(&declaration.id, || match declaration.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 151 | let (name, _) = self.navigator.symbol_of(declaration)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:162:74 [INFO] [stdout] | [INFO] [stdout] 143 | .gate(&declaration.id, || match declaration.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 162 | let (name, _) = self.navigator.symbol_of(declaration)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:171:92 [INFO] [stdout] | [INFO] [stdout] 143 | .gate(&declaration.id, || match declaration.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 171 | let expression = self.navigator.find_child(declaration, expression)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:175:84 [INFO] [stdout] | [INFO] [stdout] 143 | .gate(&declaration.id, || match declaration.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 175 | self.navigator.find_child(declaration, type_expression)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:214:86 [INFO] [stdout] | [INFO] [stdout] 185 | .gate(&type_expression.id, || match type_expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 214 | .find_declaration(type_expression, DeclarationKind::Type)?, [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:223:86 [INFO] [stdout] | [INFO] [stdout] 185 | .gate(&type_expression.id, || match type_expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 223 | .find_declaration(type_expression, DeclarationKind::Type)?, [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:237:86 [INFO] [stdout] | [INFO] [stdout] 235 | .gate(&method_body.id, || match method_body.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 236 | MethodBody { expression, .. } => { [INFO] [stdout] 237 | self.get_type_of_expression(&self.navigator.find_node(expression)?) [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:248:97 [INFO] [stdout] | [INFO] [stdout] 245 | .gate(&return_type.id, || match return_type.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 248 | } => self.get_type_of_type_expression(&self.navigator.find_node(type_expression)?), [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:258:97 [INFO] [stdout] | [INFO] [stdout] 255 | .gate(¶meter_pattern.id, || match parameter_pattern.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 258 | } => self.get_type_of_type_expression(&self.navigator.find_node(type_expression)?), [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:48:78 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 48 | .find_declaration(expression, DeclarationKind::Value)?, [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [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/lib/semantics/types.rs:568:81 [INFO] [stdout] | [INFO] [stdout] 560 | pub fn get_type_of_variable(&self, variable: &Node) -> Type { [INFO] [stdout] | ----------------------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 568 | let expression = self.navigator.find_child(variable, expression)?; [INFO] [stdout] | ^ cannot use the `?` operator in a method that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:52:78 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 52 | let expression = self.navigator.find_child(expression, e)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:57:78 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 57 | let expression = self.navigator.find_child(expression, e)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [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/lib/semantics/types.rs:571:91 [INFO] [stdout] | [INFO] [stdout] 560 | pub fn get_type_of_variable(&self, variable: &Node) -> Type { [INFO] [stdout] | ----------------------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 571 | let type_expression = self.navigator.find_child(variable, type_expression)?; [INFO] [stdout] | ^ cannot use the `?` operator in a method that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:65:82 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 65 | .find_declaration(expression, DeclarationKind::Value)?, [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:70:97 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 70 | self.get_type_of_declaration(&self.navigator.find_stdlib_class("Loa/String")?) [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:74:96 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 74 | .get_type_of_declaration(&self.navigator.find_stdlib_class("Loa/Character")?), [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:82:74 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 82 | let expression = self.navigator.find_node(expression)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:90:72 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 90 | let receiver = self.navigator.find_node(expression)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:91:68 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 91 | let message = self.navigator.find_node(message)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:93:77 [INFO] [stdout] | [INFO] [stdout] 44 | .gate(&expression.id, || match expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 93 | let selector = self.navigator.message_selector(&message)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:122:74 [INFO] [stdout] | [INFO] [stdout] 121 | .map(|pid| { [INFO] [stdout] | ----- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 122 | let param = self.navigator.find_child(list, *pid)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:146:97 [INFO] [stdout] | [INFO] [stdout] 143 | .gate(&declaration.id, || match declaration.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 146 | } => self.get_type_of_type_expression(&self.navigator.find_node(type_expression)?), [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:151:74 [INFO] [stdout] | [INFO] [stdout] 143 | .gate(&declaration.id, || match declaration.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 151 | let (name, _) = self.navigator.symbol_of(declaration)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:162:74 [INFO] [stdout] | [INFO] [stdout] 143 | .gate(&declaration.id, || match declaration.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 162 | let (name, _) = self.navigator.symbol_of(declaration)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:171:92 [INFO] [stdout] | [INFO] [stdout] 143 | .gate(&declaration.id, || match declaration.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 171 | let expression = self.navigator.find_child(declaration, expression)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:175:84 [INFO] [stdout] | [INFO] [stdout] 143 | .gate(&declaration.id, || match declaration.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 175 | self.navigator.find_child(declaration, type_expression)?; [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:214:86 [INFO] [stdout] | [INFO] [stdout] 185 | .gate(&type_expression.id, || match type_expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 214 | .find_declaration(type_expression, DeclarationKind::Type)?, [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:223:86 [INFO] [stdout] | [INFO] [stdout] 185 | .gate(&type_expression.id, || match type_expression.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 223 | .find_declaration(type_expression, DeclarationKind::Type)?, [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:237:86 [INFO] [stdout] | [INFO] [stdout] 235 | .gate(&method_body.id, || match method_body.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 236 | MethodBody { expression, .. } => { [INFO] [stdout] 237 | self.get_type_of_expression(&self.navigator.find_node(expression)?) [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:248:97 [INFO] [stdout] | [INFO] [stdout] 245 | .gate(&return_type.id, || match return_type.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 248 | } => self.get_type_of_type_expression(&self.navigator.find_node(type_expression)?), [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib/semantics/types.rs:258:97 [INFO] [stdout] | [INFO] [stdout] 255 | .gate(¶meter_pattern.id, || match parameter_pattern.kind { [INFO] [stdout] | -- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 258 | } => self.get_type_of_type_expression(&self.navigator.find_node(type_expression)?), [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [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/lib/semantics/types.rs:568:81 [INFO] [stdout] | [INFO] [stdout] 560 | pub fn get_type_of_variable(&self, variable: &Node) -> Type { [INFO] [stdout] | ----------------------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 568 | let expression = self.navigator.find_child(variable, expression)?; [INFO] [stdout] | ^ cannot use the `?` operator in a method that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [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/lib/semantics/types.rs:571:91 [INFO] [stdout] | [INFO] [stdout] 560 | pub fn get_type_of_variable(&self, variable: &Node) -> Type { [INFO] [stdout] | ----------------------------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 571 | let type_expression = self.navigator.find_child(variable, type_expression)?; [INFO] [stdout] | ^ cannot use the `?` operator in a method that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [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/lib/semantics/type_assignability.rs:342:70 [INFO] [stdout] | [INFO] [stdout] 233 | / pub fn check_assignment( [INFO] [stdout] 234 | | assignee: Type, [INFO] [stdout] 235 | | assigned: Type, [INFO] [stdout] 236 | | navigator: &Navigator, [INFO] [stdout] 237 | | types: &Types, [INFO] [stdout] 238 | | invariant: bool, [INFO] [stdout] 239 | | ) -> TypeAssignability { [INFO] [stdout] | |______________________- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 342 | let assignee_class = navigator.find_node(*assignee_class)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `type_assignability::TypeAssignability` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `type_assignability::TypeAssignability` [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/lib/semantics/type_assignability.rs:343:70 [INFO] [stdout] | [INFO] [stdout] 233 | / pub fn check_assignment( [INFO] [stdout] 234 | | assignee: Type, [INFO] [stdout] 235 | | assigned: Type, [INFO] [stdout] 236 | | navigator: &Navigator, [INFO] [stdout] 237 | | types: &Types, [INFO] [stdout] 238 | | invariant: bool, [INFO] [stdout] 239 | | ) -> TypeAssignability { [INFO] [stdout] | |______________________- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 343 | let assigned_class = navigator.find_node(*assigned_class)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `type_assignability::TypeAssignability` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `type_assignability::TypeAssignability` [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/lib/semantics/type_assignability.rs:371:79 [INFO] [stdout] | [INFO] [stdout] 233 | / pub fn check_assignment( [INFO] [stdout] 234 | | assignee: Type, [INFO] [stdout] 235 | | assigned: Type, [INFO] [stdout] 236 | | navigator: &Navigator, [INFO] [stdout] 237 | | types: &Types, [INFO] [stdout] 238 | | invariant: bool, [INFO] [stdout] 239 | | ) -> TypeAssignability { [INFO] [stdout] | |______________________- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 371 | navigator.find_child(&assignee_class, type_parameter_list)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `type_assignability::TypeAssignability` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `type_assignability::TypeAssignability` [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/lib/semantics/type_assignability.rs:392:95 [INFO] [stdout] | [INFO] [stdout] 233 | / pub fn check_assignment( [INFO] [stdout] 234 | | assignee: Type, [INFO] [stdout] 235 | | assigned: Type, [INFO] [stdout] 236 | | navigator: &Navigator, [INFO] [stdout] 237 | | types: &Types, [INFO] [stdout] 238 | | invariant: bool, [INFO] [stdout] 239 | | ) -> TypeAssignability { [INFO] [stdout] | |______________________- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 392 | let parameter = navigator.find_child(&type_parameter_list, *parameter)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `type_assignability::TypeAssignability` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `type_assignability::TypeAssignability` [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/lib/semantics/type_assignability.rs:342:70 [INFO] [stdout] | [INFO] [stdout] 233 | / pub fn check_assignment( [INFO] [stdout] 234 | | assignee: Type, [INFO] [stdout] 235 | | assigned: Type, [INFO] [stdout] 236 | | navigator: &Navigator, [INFO] [stdout] 237 | | types: &Types, [INFO] [stdout] 238 | | invariant: bool, [INFO] [stdout] 239 | | ) -> TypeAssignability { [INFO] [stdout] | |______________________- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 342 | let assignee_class = navigator.find_node(*assignee_class)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `type_assignability::TypeAssignability` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `type_assignability::TypeAssignability` [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/lib/semantics/type_assignability.rs:343:70 [INFO] [stdout] | [INFO] [stdout] 233 | / pub fn check_assignment( [INFO] [stdout] 234 | | assignee: Type, [INFO] [stdout] 235 | | assigned: Type, [INFO] [stdout] 236 | | navigator: &Navigator, [INFO] [stdout] 237 | | types: &Types, [INFO] [stdout] 238 | | invariant: bool, [INFO] [stdout] 239 | | ) -> TypeAssignability { [INFO] [stdout] | |______________________- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 343 | let assigned_class = navigator.find_node(*assigned_class)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `type_assignability::TypeAssignability` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `type_assignability::TypeAssignability` [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/lib/semantics/type_assignability.rs:371:79 [INFO] [stdout] | [INFO] [stdout] 233 | / pub fn check_assignment( [INFO] [stdout] 234 | | assignee: Type, [INFO] [stdout] 235 | | assigned: Type, [INFO] [stdout] 236 | | navigator: &Navigator, [INFO] [stdout] 237 | | types: &Types, [INFO] [stdout] 238 | | invariant: bool, [INFO] [stdout] 239 | | ) -> TypeAssignability { [INFO] [stdout] | |______________________- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 371 | navigator.find_child(&assignee_class, type_parameter_list)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `type_assignability::TypeAssignability` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `type_assignability::TypeAssignability` [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/lib/semantics/type_assignability.rs:392:95 [INFO] [stdout] | [INFO] [stdout] 233 | / pub fn check_assignment( [INFO] [stdout] 234 | | assignee: Type, [INFO] [stdout] 235 | | assigned: Type, [INFO] [stdout] 236 | | navigator: &Navigator, [INFO] [stdout] 237 | | types: &Types, [INFO] [stdout] 238 | | invariant: bool, [INFO] [stdout] 239 | | ) -> TypeAssignability { [INFO] [stdout] | |______________________- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 392 | let parameter = navigator.find_child(&type_parameter_list, *parameter)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `type_assignability::TypeAssignability` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `type_assignability::TypeAssignability` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:166:56 [INFO] [stdout] | [INFO] [stdout] 160 | / fn generate_source( [INFO] [stdout] 161 | | &mut self, [INFO] [stdout] 162 | | directives: D, [INFO] [stdout] 163 | | assembly: &mut Assembly, [INFO] [stdout] 164 | | uri: &URI, [INFO] [stdout] 165 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] 166 | let root = self.analysis.navigator.root_of(uri)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:215:71 [INFO] [stdout] | [INFO] [stdout] 208 | / fn declare_global_let_binding( [INFO] [stdout] 209 | | &mut self, [INFO] [stdout] 210 | | assembly: &mut Assembly, [INFO] [stdout] 211 | | binding: &Node, [INFO] [stdout] 212 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 215 | let label = self.analysis.navigator.symbol_of(binding)?.0; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:217:89 [INFO] [stdout] | [INFO] [stdout] 208 | / fn declare_global_let_binding( [INFO] [stdout] 209 | | &mut self, [INFO] [stdout] 210 | | assembly: &mut Assembly, [INFO] [stdout] 211 | | binding: &Node, [INFO] [stdout] 212 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 217 | let expression = self.analysis.navigator.find_child(binding, expression)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:235:89 [INFO] [stdout] | [INFO] [stdout] 227 | / fn declare_let_binding( [INFO] [stdout] 228 | | &mut self, [INFO] [stdout] 229 | | assembly: &mut Assembly, [INFO] [stdout] 230 | | section: &mut Section, [INFO] [stdout] 231 | | binding: &Node, [INFO] [stdout] 232 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 235 | let expression = self.analysis.navigator.find_child(binding, expression)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:298:52 [INFO] [stdout] | [INFO] [stdout] 244 | / fn declare_class_object( [INFO] [stdout] 245 | | &mut self, [INFO] [stdout] 246 | | name: &str, [INFO] [stdout] 247 | | assembly: &mut Assembly, [INFO] [stdout] 248 | | class: &Node, [INFO] [stdout] 249 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 298 | let variable = variables.get(v)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:299:96 [INFO] [stdout] | [INFO] [stdout] 244 | / fn declare_class_object( [INFO] [stdout] 245 | | &mut self, [INFO] [stdout] 246 | | name: &str, [INFO] [stdout] 247 | | assembly: &mut Assembly, [INFO] [stdout] 248 | | class: &Node, [INFO] [stdout] 249 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 299 | let owning_class = self.analysis.navigator.closest_class_upwards(&variable)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:301:81 [INFO] [stdout] | [INFO] [stdout] 244 | / fn declare_class_object( [INFO] [stdout] 245 | | &mut self, [INFO] [stdout] 246 | | name: &str, [INFO] [stdout] 247 | | assembly: &mut Assembly, [INFO] [stdout] 248 | | class: &Node, [INFO] [stdout] 249 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 301 | self.analysis.navigator.qualified_name_of(&owning_class)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:321:84 [INFO] [stdout] | [INFO] [stdout] 244 | / fn declare_class_object( [INFO] [stdout] 245 | | &mut self, [INFO] [stdout] 246 | | name: &str, [INFO] [stdout] 247 | | assembly: &mut Assembly, [INFO] [stdout] 248 | | class: &Node, [INFO] [stdout] 249 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 321 | let arity = self.analysis.navigator.initializer_arity(&initializer)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:343:74 [INFO] [stdout] | [INFO] [stdout] 342 | fn declare_class(&mut self, assembly: &mut Assembly, class: &Node) -> GenerationResult<()> { [INFO] [stdout] | ------------------------------------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] 343 | let (qn, _, _) = self.analysis.navigator.qualified_name_of(class)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:355:82 [INFO] [stdout] | [INFO] [stdout] 342 | fn declare_class(&mut self, assembly: &mut Assembly, class: &Node) -> GenerationResult<()> { [INFO] [stdout] | ------------------------------------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 355 | let (variable_name, _) = self.analysis.navigator.symbol_of(&variable)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:393:66 [INFO] [stdout] | [INFO] [stdout] 342 | fn declare_class(&mut self, assembly: &mut Assembly, class: &Node) -> GenerationResult<()> { [INFO] [stdout] | ------------------------------------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 393 | .qualified_name_of_method(&overridden_method)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:406:73 [INFO] [stdout] | [INFO] [stdout] 342 | fn declare_class(&mut self, assembly: &mut Assembly, class: &Node) -> GenerationResult<()> { [INFO] [stdout] | ------------------------------------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 406 | let method = self.analysis.navigator.find_node(behaviour.id)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:407:86 [INFO] [stdout] | [INFO] [stdout] 342 | fn declare_class(&mut self, assembly: &mut Assembly, class: &Node) -> GenerationResult<()> { [INFO] [stdout] | ------------------------------------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 407 | let owning_class = self.analysis.navigator.closest_class_upwards(&method)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:411:77 [INFO] [stdout] | [INFO] [stdout] 342 | fn declare_class(&mut self, assembly: &mut Assembly, class: &Node) -> GenerationResult<()> { [INFO] [stdout] | ------------------------------------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 411 | self.analysis.navigator.qualified_name_of(&owning_class)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:413:85 [INFO] [stdout] | [INFO] [stdout] 342 | fn declare_class(&mut self, assembly: &mut Assembly, class: &Node) -> GenerationResult<()> { [INFO] [stdout] | ------------------------------------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 413 | let behaviour_node = self.analysis.navigator.find_node(behaviour.id)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:478:71 [INFO] [stdout] | [INFO] [stdout] 472 | / fn declare_method( [INFO] [stdout] 473 | | &mut self, [INFO] [stdout] 474 | | assembly: &mut Assembly, [INFO] [stdout] 475 | | class_name: &str, [INFO] [stdout] 476 | | method: &Node, [INFO] [stdout] 477 | | ) -> GenerationResult<(String, Label)> { [INFO] [stdout] | |__________________________________________- this function returns a `Result` [INFO] [stdout] 478 | let selector = self.analysis.navigator.method_selector(method)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(std::string::String, std::string::String), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(std::string::String, std::string::String), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:496:61 [INFO] [stdout] | [INFO] [stdout] 472 | / fn declare_method( [INFO] [stdout] 473 | | &mut self, [INFO] [stdout] 474 | | assembly: &mut Assembly, [INFO] [stdout] 475 | | class_name: &str, [INFO] [stdout] 476 | | method: &Node, [INFO] [stdout] 477 | | ) -> GenerationResult<(String, Label)> { [INFO] [stdout] | |__________________________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 496 | self.analysis.navigator.method_arity(method)? as u16, [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(std::string::String, std::string::String), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(std::string::String, std::string::String), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:527:88 [INFO] [stdout] | [INFO] [stdout] 520 | / fn generate_reference_to( [INFO] [stdout] 521 | | &mut self, [INFO] [stdout] 522 | | section: &mut Section, [INFO] [stdout] 523 | | declaration: &Node, [INFO] [stdout] 524 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 527 | let (qn, _, _) = self.analysis.navigator.qualified_name_of(declaration)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:541:67 [INFO] [stdout] | [INFO] [stdout] 520 | / fn generate_reference_to( [INFO] [stdout] 521 | | &mut self, [INFO] [stdout] 522 | | section: &mut Section, [INFO] [stdout] 523 | | declaration: &Node, [INFO] [stdout] 524 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 541 | self.analysis.navigator.symbol_of(declaration)?.0, [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:598:74 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 598 | let e = self.analysis.navigator.find_child(expression, e)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:604:74 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 604 | let e = self.analysis.navigator.find_child(expression, e)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:608:74 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 608 | let e = self.analysis.navigator.find_child(expression, e)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:166:56 [INFO] [stdout] | [INFO] [stdout] 160 | / fn generate_source( [INFO] [stdout] 161 | | &mut self, [INFO] [stdout] 162 | | directives: D, [INFO] [stdout] 163 | | assembly: &mut Assembly, [INFO] [stdout] 164 | | uri: &URI, [INFO] [stdout] 165 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] 166 | let root = self.analysis.navigator.root_of(uri)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:635:57 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 635 | .find_child(expression, let_binding)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:636:83 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 636 | let expression = self.analysis.navigator.find_child(expression, e)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:215:71 [INFO] [stdout] | [INFO] [stdout] 208 | / fn declare_global_let_binding( [INFO] [stdout] 209 | | &mut self, [INFO] [stdout] 210 | | assembly: &mut Assembly, [INFO] [stdout] 211 | | binding: &Node, [INFO] [stdout] 212 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 215 | let label = self.analysis.navigator.symbol_of(binding)?.0; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:217:89 [INFO] [stdout] | [INFO] [stdout] 208 | / fn declare_global_let_binding( [INFO] [stdout] 209 | | &mut self, [INFO] [stdout] 210 | | assembly: &mut Assembly, [INFO] [stdout] 211 | | binding: &Node, [INFO] [stdout] 212 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 217 | let expression = self.analysis.navigator.find_child(binding, expression)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:649:74 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 649 | .find_declaration(expression, DeclarationKind::Value)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:235:89 [INFO] [stdout] | [INFO] [stdout] 227 | / fn declare_let_binding( [INFO] [stdout] 228 | | &mut self, [INFO] [stdout] 229 | | assembly: &mut Assembly, [INFO] [stdout] 230 | | section: &mut Section, [INFO] [stdout] 231 | | binding: &Node, [INFO] [stdout] 232 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 235 | let expression = self.analysis.navigator.find_child(binding, expression)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:660:65 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 660 | .get_behaviour_from_message_send(expression)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:663:86 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 663 | let message = self.analysis.navigator.find_child(expression, message)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:670:83 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 670 | let expression = self.analysis.navigator.find_child(expression, r)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:673:79 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 673 | let qualified_name = self.qualified_behaviour_name(&behaviour)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:298:52 [INFO] [stdout] | [INFO] [stdout] 244 | / fn declare_class_object( [INFO] [stdout] 245 | | &mut self, [INFO] [stdout] 246 | | name: &str, [INFO] [stdout] 247 | | assembly: &mut Assembly, [INFO] [stdout] 248 | | class: &Node, [INFO] [stdout] 249 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 298 | let variable = variables.get(v)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:299:96 [INFO] [stdout] | [INFO] [stdout] 244 | / fn declare_class_object( [INFO] [stdout] 245 | | &mut self, [INFO] [stdout] 246 | | name: &str, [INFO] [stdout] 247 | | assembly: &mut Assembly, [INFO] [stdout] 248 | | class: &Node, [INFO] [stdout] 249 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 299 | let owning_class = self.analysis.navigator.closest_class_upwards(&variable)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:301:81 [INFO] [stdout] | [INFO] [stdout] 244 | / fn declare_class_object( [INFO] [stdout] 245 | | &mut self, [INFO] [stdout] 246 | | name: &str, [INFO] [stdout] 247 | | assembly: &mut Assembly, [INFO] [stdout] 248 | | class: &Node, [INFO] [stdout] 249 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 301 | self.analysis.navigator.qualified_name_of(&owning_class)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:321:84 [INFO] [stdout] | [INFO] [stdout] 244 | / fn declare_class_object( [INFO] [stdout] 245 | | &mut self, [INFO] [stdout] 246 | | name: &str, [INFO] [stdout] 247 | | assembly: &mut Assembly, [INFO] [stdout] 248 | | class: &Node, [INFO] [stdout] 249 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 321 | let arity = self.analysis.navigator.initializer_arity(&initializer)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:343:74 [INFO] [stdout] | [INFO] [stdout] 342 | fn declare_class(&mut self, assembly: &mut Assembly, class: &Node) -> GenerationResult<()> { [INFO] [stdout] | ------------------------------------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] 343 | let (qn, _, _) = self.analysis.navigator.qualified_name_of(class)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:752:94 [INFO] [stdout] | [INFO] [stdout] 743 | / fn generate_repl_line( [INFO] [stdout] 744 | | &mut self, [INFO] [stdout] 745 | | directives: D, [INFO] [stdout] 746 | | assembly: &mut Assembly, [INFO] [stdout] 747 | | repl_line: &Node, [INFO] [stdout] 748 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 752 | let statement = self.analysis.navigator.find_child(repl_line, *statement)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:355:82 [INFO] [stdout] | [INFO] [stdout] 342 | fn declare_class(&mut self, assembly: &mut Assembly, class: &Node) -> GenerationResult<()> { [INFO] [stdout] | ------------------------------------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 355 | let (variable_name, _) = self.analysis.navigator.symbol_of(&variable)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:772:61 [INFO] [stdout] | [INFO] [stdout] 761 | / fn generate_repl_statement( [INFO] [stdout] 762 | | &mut self, [INFO] [stdout] 763 | | directives: &D, [INFO] [stdout] 764 | | assembly: &mut Assembly, [INFO] [stdout] 765 | | repl_statement: &Node, [INFO] [stdout] 766 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 772 | .find_child(&repl_statement, expression)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:781:88 [INFO] [stdout] | [INFO] [stdout] 761 | / fn generate_repl_statement( [INFO] [stdout] 762 | | &mut self, [INFO] [stdout] 763 | | directives: &D, [INFO] [stdout] 764 | | assembly: &mut Assembly, [INFO] [stdout] 765 | | repl_statement: &Node, [INFO] [stdout] 766 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 781 | let symbol = self.analysis.navigator.find_child(repl_statement, symbol)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:393:66 [INFO] [stdout] | [INFO] [stdout] 342 | fn declare_class(&mut self, assembly: &mut Assembly, class: &Node) -> GenerationResult<()> { [INFO] [stdout] | ------------------------------------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 393 | .qualified_name_of_method(&overridden_method)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:788:72 [INFO] [stdout] | [INFO] [stdout] 761 | / fn generate_repl_statement( [INFO] [stdout] 762 | | &mut self, [INFO] [stdout] 763 | | directives: &D, [INFO] [stdout] 764 | | assembly: &mut Assembly, [INFO] [stdout] 765 | | repl_statement: &Node, [INFO] [stdout] 766 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 788 | .find_child(repl_statement, expression)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:406:73 [INFO] [stdout] | [INFO] [stdout] 342 | fn declare_class(&mut self, assembly: &mut Assembly, class: &Node) -> GenerationResult<()> { [INFO] [stdout] | ------------------------------------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 406 | let method = self.analysis.navigator.find_node(behaviour.id)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:796:72 [INFO] [stdout] | [INFO] [stdout] 761 | / fn generate_repl_statement( [INFO] [stdout] 762 | | &mut self, [INFO] [stdout] 763 | | directives: &D, [INFO] [stdout] 764 | | assembly: &mut Assembly, [INFO] [stdout] 765 | | repl_statement: &Node, [INFO] [stdout] 766 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 796 | .find_child(repl_statement, expression)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:407:86 [INFO] [stdout] | [INFO] [stdout] 342 | fn declare_class(&mut self, assembly: &mut Assembly, class: &Node) -> GenerationResult<()> { [INFO] [stdout] | ------------------------------------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 407 | let owning_class = self.analysis.navigator.closest_class_upwards(&method)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:411:77 [INFO] [stdout] | [INFO] [stdout] 342 | fn declare_class(&mut self, assembly: &mut Assembly, class: &Node) -> GenerationResult<()> { [INFO] [stdout] | ------------------------------------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 411 | self.analysis.navigator.qualified_name_of(&owning_class)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:822:65 [INFO] [stdout] | [INFO] [stdout] 810 | fn generate_number(&mut self, section: &mut Section, literal: &Node) -> GenerationResult<()> { [INFO] [stdout] | -------------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 822 | let class = self.analysis.navigator.find_node(class)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:413:85 [INFO] [stdout] | [INFO] [stdout] 342 | fn declare_class(&mut self, assembly: &mut Assembly, class: &Node) -> GenerationResult<()> { [INFO] [stdout] | ------------------------------------------------------------------------------------------ this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 413 | let behaviour_node = self.analysis.navigator.find_node(behaviour.id)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:823:79 [INFO] [stdout] | [INFO] [stdout] 810 | fn generate_number(&mut self, section: &mut Section, literal: &Node) -> GenerationResult<()> { [INFO] [stdout] | -------------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 823 | let (qn, _, _) = self.analysis.navigator.qualified_name_of(&class)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:478:71 [INFO] [stdout] | [INFO] [stdout] 472 | / fn declare_method( [INFO] [stdout] 473 | | &mut self, [INFO] [stdout] 474 | | assembly: &mut Assembly, [INFO] [stdout] 475 | | class_name: &str, [INFO] [stdout] 476 | | method: &Node, [INFO] [stdout] 477 | | ) -> GenerationResult<(String, Label)> { [INFO] [stdout] | |__________________________________________- this function returns a `Result` [INFO] [stdout] 478 | let selector = self.analysis.navigator.method_selector(method)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(std::string::String, std::string::String), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(std::string::String, std::string::String), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:496:61 [INFO] [stdout] | [INFO] [stdout] 472 | / fn declare_method( [INFO] [stdout] 473 | | &mut self, [INFO] [stdout] 474 | | assembly: &mut Assembly, [INFO] [stdout] 475 | | class_name: &str, [INFO] [stdout] 476 | | method: &Node, [INFO] [stdout] 477 | | ) -> GenerationResult<(String, Label)> { [INFO] [stdout] | |__________________________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 496 | self.analysis.navigator.method_arity(method)? as u16, [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(std::string::String, std::string::String), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(std::string::String, std::string::String), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:527:88 [INFO] [stdout] | [INFO] [stdout] 520 | / fn generate_reference_to( [INFO] [stdout] 521 | | &mut self, [INFO] [stdout] 522 | | section: &mut Section, [INFO] [stdout] 523 | | declaration: &Node, [INFO] [stdout] 524 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 527 | let (qn, _, _) = self.analysis.navigator.qualified_name_of(declaration)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:541:67 [INFO] [stdout] | [INFO] [stdout] 520 | / fn generate_reference_to( [INFO] [stdout] 521 | | &mut self, [INFO] [stdout] 522 | | section: &mut Section, [INFO] [stdout] 523 | | declaration: &Node, [INFO] [stdout] 524 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 541 | self.analysis.navigator.symbol_of(declaration)?.0, [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:598:74 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 598 | let e = self.analysis.navigator.find_child(expression, e)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:604:74 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 604 | let e = self.analysis.navigator.find_child(expression, e)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:608:74 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 608 | let e = self.analysis.navigator.find_child(expression, e)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:635:57 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 635 | .find_child(expression, let_binding)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:636:83 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 636 | let expression = self.analysis.navigator.find_child(expression, e)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:649:74 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 649 | .find_declaration(expression, DeclarationKind::Value)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:660:65 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 660 | .get_behaviour_from_message_send(expression)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:663:86 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 663 | let message = self.analysis.navigator.find_child(expression, message)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:670:83 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 670 | let expression = self.analysis.navigator.find_child(expression, r)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:673:79 [INFO] [stdout] | [INFO] [stdout] 584 | / fn generate_expression( [INFO] [stdout] 585 | | &mut self, [INFO] [stdout] 586 | | assembly: &mut Assembly, [INFO] [stdout] 587 | | section: &mut Section, [INFO] [stdout] 588 | | expression: &Node, [INFO] [stdout] 589 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 673 | let qualified_name = self.qualified_behaviour_name(&behaviour)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:752:94 [INFO] [stdout] | [INFO] [stdout] 743 | / fn generate_repl_line( [INFO] [stdout] 744 | | &mut self, [INFO] [stdout] 745 | | directives: D, [INFO] [stdout] 746 | | assembly: &mut Assembly, [INFO] [stdout] 747 | | repl_line: &Node, [INFO] [stdout] 748 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 752 | let statement = self.analysis.navigator.find_child(repl_line, *statement)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:772:61 [INFO] [stdout] | [INFO] [stdout] 761 | / fn generate_repl_statement( [INFO] [stdout] 762 | | &mut self, [INFO] [stdout] 763 | | directives: &D, [INFO] [stdout] 764 | | assembly: &mut Assembly, [INFO] [stdout] 765 | | repl_statement: &Node, [INFO] [stdout] 766 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 772 | .find_child(&repl_statement, expression)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:781:88 [INFO] [stdout] | [INFO] [stdout] 761 | / fn generate_repl_statement( [INFO] [stdout] 762 | | &mut self, [INFO] [stdout] 763 | | directives: &D, [INFO] [stdout] 764 | | assembly: &mut Assembly, [INFO] [stdout] 765 | | repl_statement: &Node, [INFO] [stdout] 766 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 781 | let symbol = self.analysis.navigator.find_child(repl_statement, symbol)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:788:72 [INFO] [stdout] | [INFO] [stdout] 761 | / fn generate_repl_statement( [INFO] [stdout] 762 | | &mut self, [INFO] [stdout] 763 | | directives: &D, [INFO] [stdout] 764 | | assembly: &mut Assembly, [INFO] [stdout] 765 | | repl_statement: &Node, [INFO] [stdout] 766 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 788 | .find_child(repl_statement, expression)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:796:72 [INFO] [stdout] | [INFO] [stdout] 761 | / fn generate_repl_statement( [INFO] [stdout] 762 | | &mut self, [INFO] [stdout] 763 | | directives: &D, [INFO] [stdout] 764 | | assembly: &mut Assembly, [INFO] [stdout] 765 | | repl_statement: &Node, [INFO] [stdout] 766 | | ) -> GenerationResult<()> { [INFO] [stdout] | |_____________________________- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 796 | .find_child(repl_statement, expression)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:822:65 [INFO] [stdout] | [INFO] [stdout] 810 | fn generate_number(&mut self, section: &mut Section, literal: &Node) -> GenerationResult<()> { [INFO] [stdout] | -------------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 822 | let class = self.analysis.navigator.find_node(class)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> src/lib/generation/generator.rs:823:79 [INFO] [stdout] | [INFO] [stdout] 810 | fn generate_number(&mut self, section: &mut Section, literal: &Node) -> GenerationResult<()> { [INFO] [stdout] | -------------------------------------------------------------------------------------------- this function returns a `Result` [INFO] [stdout] ... [INFO] [stdout] 823 | let (qn, _, _) = self.analysis.navigator.qualified_name_of(&class)?; [INFO] [stdout] | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), generation_error::GenerationError>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), generation_error::GenerationError>` [INFO] [stdout] = help: the trait `FromResidual>` is implemented for `Result` [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/lib/server/server.rs:136:56 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn type_at(&self, location: Location) -> semantics::Type { [INFO] [stdout] | ------------------------------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 136 | let cell = self.module_cells.get(&location.uri)?; [INFO] [stdout] | ^ cannot use the `?` operator in a method that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [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/lib/server/server.rs:137:47 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn type_at(&self, location: Location) -> semantics::Type { [INFO] [stdout] | ------------------------------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 136 | let cell = self.module_cells.get(&location.uri)?; [INFO] [stdout] 137 | let node = cell.tree.node_at(location)?; [INFO] [stdout] | ^ cannot use the `?` operator in a method that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [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/lib/server/server.rs:136:56 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn type_at(&self, location: Location) -> semantics::Type { [INFO] [stdout] | ------------------------------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 136 | let cell = self.module_cells.get(&location.uri)?; [INFO] [stdout] | ^ cannot use the `?` operator in a method that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [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/lib/server/server.rs:137:47 [INFO] [stdout] | [INFO] [stdout] 135 | pub fn type_at(&self, location: Location) -> semantics::Type { [INFO] [stdout] | ------------------------------------------------------------ this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 136 | let cell = self.module_cells.get(&location.uri)?; [INFO] [stdout] 137 | let node = cell.tree.node_at(location)?; [INFO] [stdout] | ^ cannot use the `?` operator in a method that returns `types::Type` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `types::Type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 91 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0220, E0277, E0407, E0412, E0432, E0437, E0635, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `loalang` (lib) due to 92 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 93 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0220, E0277, E0407, E0412, E0432, E0437, E0463, E0635... [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `loalang` (lib test) due to 94 previous errors [INFO] running `Command { std: "docker" "inspect" "ecf4d7661af4af400595bff0d832afb866453f22b10b5fb7118595ea20c0bf5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ecf4d7661af4af400595bff0d832afb866453f22b10b5fb7118595ea20c0bf5b", kill_on_drop: false }` [INFO] [stdout] ecf4d7661af4af400595bff0d832afb866453f22b10b5fb7118595ea20c0bf5b