[INFO] fetching crate aranya-policy-vm 0.7.0... [INFO] checking aranya-policy-vm-0.7.0 against try#1d0e7c032bf9b905a3165592072b5cc63c491d50 for pr-133502-5 [INFO] extracting crate aranya-policy-vm 0.7.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate aranya-policy-vm 0.7.0 on toolchain 1d0e7c032bf9b905a3165592072b5cc63c491d50 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1d0e7c032bf9b905a3165592072b5cc63c491d50" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate aranya-policy-vm 0.7.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate aranya-policy-vm 0.7.0 [INFO] tweaked toml for crates.io crate aranya-policy-vm 0.7.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1d0e7c032bf9b905a3165592072b5cc63c491d50" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 161 packages to latest compatible versions [INFO] [stderr] Adding generic-array v1.1.1 (available: v1.2.0) [INFO] [stderr] Adding markdown v1.0.0-alpha.17 (available: v1.0.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1d0e7c032bf9b905a3165592072b5cc63c491d50" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1d0e7c032bf9b905a3165592072b5cc63c491d50" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8168fad5ab5938151263471125c2d00ec96cf17f298849960708e9f0a6a53117 [INFO] running `Command { std: "docker" "start" "-a" "8168fad5ab5938151263471125c2d00ec96cf17f298849960708e9f0a6a53117", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8168fad5ab5938151263471125c2d00ec96cf17f298849960708e9f0a6a53117", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8168fad5ab5938151263471125c2d00ec96cf17f298849960708e9f0a6a53117", kill_on_drop: false }` [INFO] [stdout] 8168fad5ab5938151263471125c2d00ec96cf17f298849960708e9f0a6a53117 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+1d0e7c032bf9b905a3165592072b5cc63c491d50" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a1b8578eae4c3cbc500f95319e1570b80dfe15b3ae691642e49ef3ca2ff47907 [INFO] running `Command { std: "docker" "start" "-a" "a1b8578eae4c3cbc500f95319e1570b80dfe15b3ae691642e49ef3ca2ff47907", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Compiling prettyplease v0.2.32 [INFO] [stderr] Checking ff v0.13.1 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Checking hash32 v0.2.1 [INFO] [stderr] Compiling anstyle-parse v0.2.6 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling colorchoice v1.0.3 [INFO] [stderr] Compiling anstyle-query v1.1.2 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling anstyle v1.0.10 [INFO] [stderr] Compiling spideroak-crypto-derive v0.1.0 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Checking buggy v0.1.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Compiling heapless v0.7.17 [INFO] [stderr] Checking const-default v1.0.0 [INFO] [stderr] Compiling clap_lex v0.7.4 [INFO] [stderr] Checking cobs v0.2.3 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling clap_builder v4.5.37 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling unicode-id v0.3.5 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling markdown v1.0.0-alpha.17 [INFO] [stderr] Checking spideroak-base58 v0.1.0 [INFO] [stderr] Compiling heapless v0.8.0 [INFO] [stderr] Checking sha3-utils v0.3.1 [INFO] [stderr] Compiling aranya-policy-derive v0.5.0 [INFO] [stderr] Checking siphasher v1.0.1 [INFO] [stderr] Checking hash32 v0.3.1 [INFO] [stderr] Checking half v2.6.0 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Compiling postcard-derive v0.1.2 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking der v0.7.10 [INFO] [stderr] Compiling pest v2.8.0 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking universal-hash v0.5.1 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking polyval v0.6.2 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Checking ghash v0.5.1 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking ed25519 v2.2.3 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Compiling clap v4.5.37 [INFO] [stderr] Checking aes-gcm v0.10.3 [INFO] [stderr] Compiling pest_meta v2.8.0 [INFO] [stderr] Checking ed25519-dalek v2.1.1 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking primeorder v0.13.6 [INFO] [stderr] Compiling pest_generator v2.8.0 [INFO] [stderr] Compiling pest_derive v2.8.0 [INFO] [stderr] Checking p256 v0.13.2 [INFO] [stderr] Checking p384 v0.13.1 [INFO] [stderr] Checking generic-array v1.1.1 [INFO] [stderr] Checking aranya-policy-ast v0.4.0 [INFO] [stderr] Checking ciborium v0.2.2 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Checking postcard v1.1.1 [INFO] [stderr] Checking spideroak-crypto v0.2.1 [INFO] [stderr] Compiling aranya-policy-lang v0.4.0 [INFO] [stderr] Checking aranya-crypto v0.5.0 [INFO] [stderr] Checking aranya-policy-module v0.7.0 [INFO] [stderr] Checking aranya-policy-vm v0.7.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0599]: no method named `success` found for enum `aranya_policy_module::ExitReason` in the current scope [INFO] [stdout] --> src/tests.rs:353:39 [INFO] [stdout] | [INFO] [stdout] 353 | rs.run().expect("Should succeed").success(); [INFO] [stdout] | ^^^^^^^ method not found in `ExitReason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `aranya_policy_lang` [INFO] [stdout] --> tests/vm.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use aranya_policy_lang::lang::parse_policy_str; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `aranya_policy_lang` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 11 - use aranya_policy_lang::lang::parse_policy_str; [INFO] [stdout] 11 + use aranya_policy_ast::lang::parse_policy_str; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `aranya_policy_compiler` [INFO] [stdout] --> tests/vm.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use aranya_policy_compiler::{CompileErrorType, Compiler}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `aranya_policy_compiler` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 10 - use aranya_policy_compiler::{CompileErrorType, Compiler}; [INFO] [stdout] 10 + use aranya_policy_module::{CompileErrorType, Compiler}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `aranya_policy_vm::ffi::ffi` [INFO] [stdout] --> tests/ffi.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | ffi::{ffi, FfiModule, Type}, [INFO] [stdout] | ^^^ no `ffi` in `ffi` [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these modules instead: [INFO] [stdout] crate::aranya_policy_vm::ffi [INFO] [stdout] std::ffi [INFO] [stdout] std::os::unix::ffi [INFO] [stdout] core::ffi [INFO] [stdout] aranya_policy_module::ffi [INFO] [stdout] aranya_policy_vm::ffi [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `__test_ffi` [INFO] [stdout] --> tests/ffi.rs:403:13 [INFO] [stdout] | [INFO] [stdout] 403 | use __test_ffi::{S0, S1, S2}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `__test_ffi` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `__test_ffi`, use `cargo add __test_ffi` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ffi_export` in this scope [INFO] [stdout] --> tests/ffi.rs:166:7 [INFO] [stdout] | [INFO] [stdout] 166 | #[ffi_export(def = "function add(x int, y int) int")] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ffi_export` in this scope [INFO] [stdout] --> tests/ffi.rs:176:7 [INFO] [stdout] | [INFO] [stdout] 176 | #[ffi_export(def = "function sub(x int, y int) int")] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ffi_export` in this scope [INFO] [stdout] --> tests/ffi.rs:186:7 [INFO] [stdout] | [INFO] [stdout] 186 | #[ffi_export(def = "function concat(a string, b string) string")] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ffi_export` in this scope [INFO] [stdout] --> tests/ffi.rs:196:7 [INFO] [stdout] | [INFO] [stdout] 196 | #[ffi_export(def = "function renamed_identity(id_input id) id")] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ffi_export` in this scope [INFO] [stdout] --> tests/ffi.rs:206:7 [INFO] [stdout] | [INFO] [stdout] 206 | #[ffi_export(def = "function no_args() int")] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ffi_export` in this scope [INFO] [stdout] --> tests/ffi.rs:215:7 [INFO] [stdout] | [INFO] [stdout] 215 | #[ffi_export(def = "function custom_type(label int) int")] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ffi_export` in this scope [INFO] [stdout] --> tests/ffi.rs:225:7 [INFO] [stdout] | [INFO] [stdout] 225 | #[ffi_export(def = "function custom_type_optional(label optional int) optional int")] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ffi_export` in this scope [INFO] [stdout] --> tests/ffi.rs:235:7 [INFO] [stdout] | [INFO] [stdout] 235 | #[ffi_export(def = "function custom_def(a int, b bytes) bool")] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `ffi_export` in this scope [INFO] [stdout] --> tests/ffi.rs:245:7 [INFO] [stdout] | [INFO] [stdout] 245 | #[ffi_export(def = r#" [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `S0` in this scope [INFO] [stdout] --> tests/ffi.rs:254:12 [INFO] [stdout] | [INFO] [stdout] 254 | a: S0, [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `S1` in this scope [INFO] [stdout] --> tests/ffi.rs:255:12 [INFO] [stdout] | [INFO] [stdout] 255 | b: S1, [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `S2` in this scope [INFO] [stdout] --> tests/ffi.rs:256:17 [INFO] [stdout] | [INFO] [stdout] 256 | ) -> Result { [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 165 | impl TestModule<'_, T, G> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `S2` in this scope [INFO] [stdout] --> tests/ffi.rs:257:12 [INFO] [stdout] | [INFO] [stdout] 257 | Ok(S2 { a, b }) [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `success` found for enum `ExitReason` in the current scope [INFO] [stdout] --> tests/vm.rs:90:10 [INFO] [stdout] | [INFO] [stdout] 84 | / call_action( [INFO] [stdout] 85 | | &mut rs, [INFO] [stdout] 86 | | &io, [INFO] [stdout] 87 | | name, [INFO] [stdout] 88 | | [Value::Id(Id::default()), Value::Bytes(vec![0, 255, 42])], [INFO] [stdout] 89 | | )? [INFO] [stdout] 90 | | .success(); [INFO] [stdout] | | -^^^^^^^ method not found in `ExitReason` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TestModule<'_, (), ()>: FfiModule` is not satisfied [INFO] [stdout] --> tests/ffi.rs:269:36 [INFO] [stdout] | [INFO] [stdout] 269 | let mut state = TestState::new(TestModule::<'_, (), ()>::new()); [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FfiModule` is not implemented for `TestModule<'_, (), ()>` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `TestState::::new` [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ required by this bound in `TestState::::new` [INFO] [stdout] 31 | fn new(module: M) -> Self { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:273:15 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `push` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 273 | state.push(1i64); [INFO] [stdout] | ^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `push`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:274:15 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `push` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 274 | state.push(2i64); [INFO] [stdout] | ^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `push`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `success` found for enum `ExitReason` in the current scope [INFO] [stdout] --> tests/vm.rs:162:10 [INFO] [stdout] | [INFO] [stdout] 156 | / call_action( [INFO] [stdout] 157 | | &mut rs, [INFO] [stdout] 158 | | &io, [INFO] [stdout] 159 | | name, [INFO] [stdout] 160 | | [Value::Id(Id::default()), Value::Int(3)], [INFO] [stdout] 161 | | )? [INFO] [stdout] 162 | | .success(); [INFO] [stdout] | | -^^^^^^^ method not found in `ExitReason` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `call` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:275:15 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `call` not found for this struct because it doesn't satisfy `_: FnOnce<_>` [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 275 | state.call("add").expect("`test::add` should not fail"); [INFO] [stdout] | ^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TestState, DefaultEngine>: FnOnce<_>` [INFO] [stdout] note: the traits `FfiModule` and `FnOnce` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/1d0e7c032bf9b905a3165592072b5cc63c491d50/library/core/src/ops/function.rs:242:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `call`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FfiModule` [INFO] [stdout] candidate #2: `Fn` [INFO] [stdout] candidate #3: `MachineIO` [INFO] [stdout] candidate #4: `cipher::block::BlockClosure` [INFO] [stdout] candidate #5: `cipher::stream_core::StreamClosure` [INFO] [stdout] candidate #6: `universal_hash::UhfClosure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `pop` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:276:25 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `pop` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 276 | let got = state.pop::().expect("should have got an `i64`"); [INFO] [stdout] | ^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `pop`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] candidate #2: `postcard::de::flavors::Flavor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_empty` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:278:23 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `is_empty` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 278 | assert!(state.is_empty()); [INFO] [stdout] | ^^^^^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `is_empty`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `ExactSizeIterator` [INFO] [stdout] candidate #2: `RangeBounds` [INFO] [stdout] candidate #3: `aead::Buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `success` found for enum `ExitReason` in the current scope [INFO] [stdout] --> tests/vm.rs:197:56 [INFO] [stdout] | [INFO] [stdout] 197 | call_action(&mut rs, &io, name, [Value::from(3)])?.success(); [INFO] [stdout] | ^^^^^^^ method not found in `ExitReason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:283:15 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `push` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 283 | state.push(i64::MAX); [INFO] [stdout] | ^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `push`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:284:15 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `push` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 284 | state.push(1i64); [INFO] [stdout] | ^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `push`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `call` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:286:14 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `call` not found for this struct because it doesn't satisfy `_: FnOnce<_>` [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 285 | let err = state [INFO] [stdout] | ___________________- [INFO] [stdout] 286 | | .call("add") [INFO] [stdout] | | -^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TestState, DefaultEngine>: FnOnce<_>` [INFO] [stdout] note: the traits `FfiModule` and `FnOnce` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/1d0e7c032bf9b905a3165592072b5cc63c491d50/library/core/src/ops/function.rs:242:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `call`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FfiModule` [INFO] [stdout] candidate #2: `Fn` [INFO] [stdout] candidate #3: `MachineIO` [INFO] [stdout] candidate #4: `cipher::block::BlockClosure` [INFO] [stdout] candidate #5: `cipher::stream_core::StreamClosure` [INFO] [stdout] candidate #6: `universal_hash::UhfClosure` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aranya-policy-vm` (lib test) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: the method `is_empty` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:293:23 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `is_empty` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 293 | assert!(state.is_empty()); [INFO] [stdout] | ^^^^^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `is_empty`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `ExactSizeIterator` [INFO] [stdout] candidate #2: `RangeBounds` [INFO] [stdout] candidate #3: `aead::Buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:298:15 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `push` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 298 | state.push(10i64); [INFO] [stdout] | ^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `push`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `success` found for enum `ExitReason` in the current scope [INFO] [stdout] --> tests/vm.rs:270:64 [INFO] [stdout] | [INFO] [stdout] 270 | call_action(&mut rs, &io, action_name, Vec::::new())?.success(); [INFO] [stdout] | ^^^^^^^ method not found in `ExitReason` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:299:15 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `push` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 299 | state.push(2i64); [INFO] [stdout] | ^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `push`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `call` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:300:15 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `call` not found for this struct because it doesn't satisfy `_: FnOnce<_>` [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 300 | state.call("sub").expect("`test::sub` should not fail"); [INFO] [stdout] | ^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TestState, DefaultEngine>: FnOnce<_>` [INFO] [stdout] note: the traits `FfiModule` and `FnOnce` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/1d0e7c032bf9b905a3165592072b5cc63c491d50/library/core/src/ops/function.rs:242:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `call`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FfiModule` [INFO] [stdout] candidate #2: `Fn` [INFO] [stdout] candidate #3: `MachineIO` [INFO] [stdout] candidate #4: `cipher::block::BlockClosure` [INFO] [stdout] candidate #5: `cipher::stream_core::StreamClosure` [INFO] [stdout] candidate #6: `universal_hash::UhfClosure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `pop` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:301:25 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `pop` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 301 | let got = state.pop::().expect("should have got an `i64`"); [INFO] [stdout] | ^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `pop`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] candidate #2: `postcard::de::flavors::Flavor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_empty` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:303:23 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `is_empty` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 303 | assert!(state.is_empty()); [INFO] [stdout] | ^^^^^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `is_empty`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `ExactSizeIterator` [INFO] [stdout] candidate #2: `RangeBounds` [INFO] [stdout] candidate #3: `aead::Buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:308:15 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `push` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 308 | state.push(i64::MIN); [INFO] [stdout] | ^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `push`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `success` found for enum `ExitReason` in the current scope [INFO] [stdout] --> tests/vm.rs:321:10 [INFO] [stdout] | [INFO] [stdout] 318 | / machine [INFO] [stdout] 319 | | .call_command_policy(name, &self_data, dummy_envelope(), &io, ctx) [INFO] [stdout] 320 | | .expect("Could not call command policy") [INFO] [stdout] 321 | | .success(); [INFO] [stdout] | | -^^^^^^^ method not found in `ExitReason` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:309:15 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `push` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 309 | state.push(2i64); [INFO] [stdout] | ^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `push`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `call` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:311:14 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `call` not found for this struct because it doesn't satisfy `_: FnOnce<_>` [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 310 | let err = state [INFO] [stdout] | ___________________- [INFO] [stdout] 311 | | .call("sub") [INFO] [stdout] | | -^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TestState, DefaultEngine>: FnOnce<_>` [INFO] [stdout] note: the traits `FfiModule` and `FnOnce` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/1d0e7c032bf9b905a3165592072b5cc63c491d50/library/core/src/ops/function.rs:242:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `call`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FfiModule` [INFO] [stdout] candidate #2: `Fn` [INFO] [stdout] candidate #3: `MachineIO` [INFO] [stdout] candidate #4: `cipher::block::BlockClosure` [INFO] [stdout] candidate #5: `cipher::stream_core::StreamClosure` [INFO] [stdout] candidate #6: `universal_hash::UhfClosure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_empty` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:318:23 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `is_empty` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 318 | assert!(state.is_empty()); [INFO] [stdout] | ^^^^^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `is_empty`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `ExactSizeIterator` [INFO] [stdout] candidate #2: `RangeBounds` [INFO] [stdout] candidate #3: `aead::Buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:323:15 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `push` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 323 | state.push("hello, "); [INFO] [stdout] | ^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `push`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:324:15 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `push` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 324 | state.push("world!"); [INFO] [stdout] | ^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `push`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `call` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:326:14 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `call` not found for this struct because it doesn't satisfy `_: FnOnce<_>` [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 325 | / state [INFO] [stdout] 326 | | .call("concat") [INFO] [stdout] | | -^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TestState, DefaultEngine>: FnOnce<_>` [INFO] [stdout] note: the traits `FfiModule` and `FnOnce` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/1d0e7c032bf9b905a3165592072b5cc63c491d50/library/core/src/ops/function.rs:242:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `call`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FfiModule` [INFO] [stdout] candidate #2: `Fn` [INFO] [stdout] candidate #3: `MachineIO` [INFO] [stdout] candidate #4: `cipher::block::BlockClosure` [INFO] [stdout] candidate #5: `cipher::stream_core::StreamClosure` [INFO] [stdout] candidate #6: `universal_hash::UhfClosure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `pop` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:328:25 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `pop` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 328 | let got = state.pop::().expect("should have got a `String`"); [INFO] [stdout] | ^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `pop`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] candidate #2: `postcard::de::flavors::Flavor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `success` found for enum `ExitReason` in the current scope [INFO] [stdout] --> tests/vm.rs:430:10 [INFO] [stdout] | [INFO] [stdout] 428 | / rs.call_seal(name, &this_data) [INFO] [stdout] 429 | | .expect("Could not call command policy") [INFO] [stdout] 430 | | .success(); [INFO] [stdout] | | -^^^^^^^ method not found in `ExitReason` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `is_empty` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:333:23 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `is_empty` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 333 | assert!(state.is_empty()); [INFO] [stdout] | ^^^^^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `is_empty`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `ExactSizeIterator` [INFO] [stdout] candidate #2: `RangeBounds` [INFO] [stdout] candidate #3: `aead::Buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:341:15 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `push` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 341 | state.push(b); [INFO] [stdout] | ^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `push`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:342:15 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `push` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 342 | state.push(a); [INFO] [stdout] | ^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `push`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `success` found for enum `ExitReason` in the current scope [INFO] [stdout] --> tests/vm.rs:453:10 [INFO] [stdout] | [INFO] [stdout] 451 | / rs.call_open(name, dummy_envelope()) [INFO] [stdout] 452 | | .expect("Could not call command policy") [INFO] [stdout] 453 | | .success(); [INFO] [stdout] | | -^^^^^^^ method not found in `ExitReason` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `call` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:346:18 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `call` not found for this struct because it doesn't satisfy `_: FnOnce<_>` [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 345 | / state [INFO] [stdout] 346 | | .call("renamed_identity") [INFO] [stdout] | | -^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TestState, DefaultEngine>: FnOnce<_>` [INFO] [stdout] note: the traits `FfiModule` and `FnOnce` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/1d0e7c032bf9b905a3165592072b5cc63c491d50/library/core/src/ops/function.rs:242:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `call`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FfiModule` [INFO] [stdout] candidate #2: `Fn` [INFO] [stdout] candidate #3: `MachineIO` [INFO] [stdout] candidate #4: `cipher::block::BlockClosure` [INFO] [stdout] candidate #5: `cipher::stream_core::StreamClosure` [INFO] [stdout] candidate #6: `universal_hash::UhfClosure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `pop` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:348:29 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `pop` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 348 | let got = state.pop::().expect("should have got an `Id`"); [INFO] [stdout] | ^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `pop`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] candidate #2: `postcard::de::flavors::Flavor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `success` found for enum `ExitReason` in the current scope [INFO] [stdout] --> tests/vm.rs:481:14 [INFO] [stdout] | [INFO] [stdout] 479 | / machine [INFO] [stdout] 480 | | .call_command_policy(name, &self_struct, dummy_envelope(), &io, ctx)? [INFO] [stdout] 481 | | .success(); [INFO] [stdout] | | -^^^^^^^ method not found in `ExitReason` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `len` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:353:30 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `len` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 353 | assert_eq!(state.len(), len, "should be one argument remaining"); [INFO] [stdout] | ^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `len`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `ExactSizeIterator` [INFO] [stdout] candidate #2: `Len` [INFO] [stdout] candidate #3: `aead::Buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:359:15 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `push` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 359 | state.push("existing arg"); [INFO] [stdout] | ^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `push`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `call` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:361:14 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `call` not found for this struct because it doesn't satisfy `_: FnOnce<_>` [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 360 | / state [INFO] [stdout] 361 | | .call("no_args") [INFO] [stdout] | | -^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TestState, DefaultEngine>: FnOnce<_>` [INFO] [stdout] note: the traits `FfiModule` and `FnOnce` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/1d0e7c032bf9b905a3165592072b5cc63c491d50/library/core/src/ops/function.rs:242:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `call`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FfiModule` [INFO] [stdout] candidate #2: `Fn` [INFO] [stdout] candidate #3: `MachineIO` [INFO] [stdout] candidate #4: `cipher::block::BlockClosure` [INFO] [stdout] candidate #5: `cipher::stream_core::StreamClosure` [INFO] [stdout] candidate #6: `universal_hash::UhfClosure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `pop` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:363:25 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `pop` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 363 | let got = state.pop::().expect("should have got an `i64`"); [INFO] [stdout] | ^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `pop`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] candidate #2: `postcard::de::flavors::Flavor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `success` found for enum `ExitReason` in the current scope [INFO] [stdout] --> tests/vm.rs:494:14 [INFO] [stdout] | [INFO] [stdout] 492 | / machine [INFO] [stdout] 493 | | .call_command_policy("Clear", &self_struct, dummy_envelope(), &io, ctx)? [INFO] [stdout] 494 | | .success(); [INFO] [stdout] | | -^^^^^^^ method not found in `ExitReason` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `len` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:369:26 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `len` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 369 | assert_eq!(state.len(), 1, "should be one item on the stack"); [INFO] [stdout] | ^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `len`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `ExactSizeIterator` [INFO] [stdout] candidate #2: `Len` [INFO] [stdout] candidate #3: `aead::Buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `pop` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:370:25 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `pop` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 370 | let got = state.pop::().expect("should have got a `String`"); [INFO] [stdout] | ^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `pop`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] candidate #2: `postcard::de::flavors::Flavor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:376:15 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `push` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 376 | state.push(TestModule::<(), ()>::CUSTOM_TYPE_ARG); [INFO] [stdout] | ^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `FfiModule` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `push`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Stack` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `success` found for enum `ExitReason` in the current scope [INFO] [stdout] --> tests/vm.rs:518:14 [INFO] [stdout] | [INFO] [stdout] 516 | / machine [INFO] [stdout] 517 | | .call_command_policy(name, &self_struct, dummy_envelope(), &io, ctx)? [INFO] [stdout] 518 | | .success(); [INFO] [stdout] | | -^^^^^^^ method not found in `ExitReason` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `call` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:378:14 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `call` not found for this struct because it doesn't satisfy `_: FnOnce<_>` [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 377 | / state [INFO] [stdout] 378 | | .call("custom_type") [INFO] [stdout] | | -^^^^ method cannot be called on `TestState, DefaultEngine>` due to unsatisfied trait bounds [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestModule<'_, (), ()>: FfiModule` was not satisfied [INFO] [stdout] --> tests/ffi.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 30 | impl TestState> { [INFO] [stdout] | ^^^^^^^^^ -------------------------------- [INFO] [stdout] | | [INFO] [stdout] | unsatisfied trait bound introduced here [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `TestState, DefaultEngine>: FnOnce<_>` [INFO] [stdout] note: the traits `FfiModule` and `FnOnce` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/ffi.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait FfiModule { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/1d0e7c032bf9b905a3165592072b5cc63c491d50/library/core/src/ops/function.rs:242:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `call`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `FfiModule` [INFO] [stdout] candidate #2: `Fn` [INFO] [stdout] candidate #3: `MachineIO` [INFO] [stdout] candidate #4: `cipher::block::BlockClosure` [INFO] [stdout] candidate #5: `cipher::stream_core::StreamClosure` [INFO] [stdout] candidate #6: `universal_hash::UhfClosure` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `pop` exists for struct `TestState, DefaultEngine>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/ffi.rs:380:25 [INFO] [stdout] | [INFO] [stdout] 23 | struct TestState { [INFO] [stdout] | ---------------------- method `pop` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 124 | struct TestModule<'a, T, G> { [INFO] [stdout] | --------------------------- doesn't satisfy `TestModule<'_, (), ()>: FfiModule` [INFO] [stdout] ... [INFO] [stdout] 380 | let got = state.pop::