[INFO] cloning repository https://github.com/enigmampc/cosmwasm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/enigmampc/cosmwasm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fenigmampc%2Fcosmwasm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fenigmampc%2Fcosmwasm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a5f143d7e2e3d9a023e7dcc170ead700d4ce1af9 [INFO] checking enigmampc/cosmwasm/a5f143d7e2e3d9a023e7dcc170ead700d4ce1af9 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fenigmampc%2Fcosmwasm" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/enigmampc/cosmwasm 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 git repo https://github.com/enigmampc/cosmwasm [INFO] finished tweaking git repo https://github.com/enigmampc/cosmwasm [INFO] tweaked toml for git repo https://github.com/enigmampc/cosmwasm written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/enigmampc/cosmwasm 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] Updating git repository `https://github.com/apache/teaclave-sgx-sdk.git` [INFO] [stderr] Updating git submodule `https://github.com/WebAssembly/testsuite` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde-json-wasm v0.2.1 [INFO] [stderr] Downloaded schemars v0.7.6 [INFO] [stderr] Downloaded schemars_derive v0.7.6 [INFO] [stderr] Downloaded cbindgen v0.13.2 [INFO] [stderr] Downloaded wabt v0.9.1 [INFO] [stderr] Downloaded snafu-derive v0.6.8 [INFO] [stderr] Downloaded snafu v0.6.8 [INFO] [stderr] Downloaded wabt-sys v0.6.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4e32b186b693105634288b0ae947647139930a0090b1e7cf9435348610d6b933 [INFO] running `Command { std: "docker" "start" "-a" "4e32b186b693105634288b0ae947647139930a0090b1e7cf9435348610d6b933", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4e32b186b693105634288b0ae947647139930a0090b1e7cf9435348610d6b933", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e32b186b693105634288b0ae947647139930a0090b1e7cf9435348610d6b933", kill_on_drop: false }` [INFO] [stdout] 4e32b186b693105634288b0ae947647139930a0090b1e7cf9435348610d6b933 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8450ea2145eb06fadc3c4469a6d42e9d49f959dec47f3f8991ef6d4f8aa6af9d [INFO] running `Command { std: "docker" "start" "-a" "8450ea2145eb06fadc3c4469a6d42e9d49f959dec47f3f8991ef6d4f8aa6af9d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.38 [INFO] [stderr] Compiling libc v0.2.74 [INFO] [stderr] Compiling serde_derive v1.0.115 [INFO] [stderr] Compiling serde v1.0.115 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Compiling schemars v0.7.6 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.8 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling cbindgen v0.13.2 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Compiling cc v1.0.58 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling clap v2.33.2 [INFO] [stderr] Checking sgx_types v1.1.2 (https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.2#8f065be7) [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling cmake v0.1.44 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Checking cpuid-bool v0.1.2 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking sgx_urts v1.1.2 (https://github.com/apache/teaclave-sgx-sdk.git?rev=v1.1.2#8f065be7) [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking hex v0.4.2 [INFO] [stderr] Compiling wabt-sys v0.6.1 [INFO] [stderr] Checking parity-wasm v0.41.0 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Checking sha2 v0.9.1 [INFO] [stderr] Compiling serde_derive_internals v0.25.0 [INFO] [stderr] Compiling snafu-derive v0.6.8 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Compiling schemars_derive v0.7.6 [INFO] [stderr] Compiling derive_more v0.99.9 [INFO] [stderr] Compiling thiserror v1.0.20 [INFO] [stderr] Checking snafu v0.6.8 [INFO] [stderr] Checking serde-json-wasm v0.2.1 [INFO] [stderr] Compiling toml v0.5.6 [INFO] [stderr] Checking cosmwasm-std v0.10.0 (/opt/rustwide/workdir/packages/std) [INFO] [stderr] Checking cosmwasm-schema v0.10.0 (/opt/rustwide/workdir/packages/schema) [INFO] [stderr] Checking cosmwasm-storage v0.10.0 (/opt/rustwide/workdir/packages/storage) [INFO] [stderr] Compiling enclave-ffi-types v0.1.0 (/opt/rustwide/workdir/packages/enclave-ffi-types) [INFO] [stderr] Checking wabt v0.9.1 [INFO] [stderr] Checking cosmwasm-sgx-vm v0.10.0 (/opt/rustwide/workdir/packages/sgx-vm) [INFO] [stdout] warning: unexpected `cfg` condition value: `enclave` [INFO] [stdout] --> packages/sgx-vm/src/backends/enclave.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg(any(feature = "enclave", feature = "default-enclave"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `backtraces`, `cranelift`, `default`, `default-cranelift`, `default-enclave`, `default-singlepass`, `enclave-tests`, `iterator`, `singlepass`, and `staking` [INFO] [stdout] = help: consider adding `enclave` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_gas_left` [INFO] [stdout] --> packages/sgx-vm/src/backends/mod.rs:48:19 [INFO] [stdout] | [INFO] [stdout] 48 | pub use enclave::{get_gas_left, get_gas_used}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `imports::*` [INFO] [stdout] --> packages/sgx-vm/src/wasmi/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use imports::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `crate::backends::compile`, `crate::backends::decrease_gas_left`, `crate::backends::set_gas_left` [INFO] [stdout] --> packages/sgx-vm/src/context.rs:396:27 [INFO] [stdout] | [INFO] [stdout] 396 | use crate::backends::{compile, decrease_gas_left, set_gas_left}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | | | | [INFO] [stdout] | | | no `set_gas_left` in `backends` [INFO] [stdout] | | | help: a similar name exists in the module: `get_gas_left` [INFO] [stdout] | | no `decrease_gas_left` in `backends` [INFO] [stdout] | no `compile` in `backends` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> packages/sgx-vm/src/backends/mod.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | pub use cranelift::{backend, compile, get_gas_left, set_gas_left}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: the item is gated behind the `default-cranelift` feature [INFO] [stdout] --> packages/sgx-vm/src/backends/mod.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | #[cfg(feature = "default-cranelift")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> packages/sgx-vm/src/backends/mod.rs:45:31 [INFO] [stdout] | [INFO] [stdout] 45 | pub use singlepass::{backend, compile, get_gas_left, set_gas_left}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: the item is gated behind the `default-singlepass` feature [INFO] [stdout] --> packages/sgx-vm/src/backends/mod.rs:44:7 [INFO] [stdout] | [INFO] [stdout] 44 | #[cfg(feature = "default-singlepass")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> packages/sgx-vm/src/backends/mod.rs:42:53 [INFO] [stdout] | [INFO] [stdout] 42 | pub use cranelift::{backend, compile, get_gas_left, set_gas_left}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `default-cranelift` feature [INFO] [stdout] --> packages/sgx-vm/src/backends/mod.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | #[cfg(feature = "default-cranelift")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> packages/sgx-vm/src/backends/mod.rs:45:54 [INFO] [stdout] | [INFO] [stdout] 45 | pub use singlepass::{backend, compile, get_gas_left, set_gas_left}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `default-singlepass` feature [INFO] [stdout] --> packages/sgx-vm/src/backends/mod.rs:44:7 [INFO] [stdout] | [INFO] [stdout] 44 | #[cfg(feature = "default-singlepass")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::context::is_storage_readonly` [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:359:9 [INFO] [stdout] | [INFO] [stdout] 359 | use crate::context::is_storage_readonly; [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `set_storage_readonly` [INFO] [stdout] | no `is_storage_readonly` in `context` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> packages/sgx-vm/src/context.rs:288:8 [INFO] [stdout] | [INFO] [stdout] 288 | pub fn is_storage_readonly(ctx: &Ctx) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: the item is gated here [INFO] [stdout] --> packages/sgx-vm/src/context.rs:287:1 [INFO] [stdout] | [INFO] [stdout] 287 | #[cfg(not(feature = "default-enclave"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `esgx` in the crate root [INFO] [stdout] --> packages/sgx-vm/src/attestation.rs:179:16 [INFO] [stdout] | [INFO] [stdout] 179 | use crate::esgx::general::init_enclave_wrapper; [INFO] [stdout] | ^^^^ could not find `esgx` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::attestation::retry_quote` [INFO] [stdout] --> packages/sgx-vm/src/attestation.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | use crate::attestation::retry_quote; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `retry_quote` in `attestation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `wasmer_runtime_core` [INFO] [stdout] --> packages/sgx-vm/src/context.rs:405:9 [INFO] [stdout] | [INFO] [stdout] 405 | use wasmer_runtime_core::{imports, typed_func::Func}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `wasmer_runtime_core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `wasmer_runtime_core` [INFO] [stdout] --> packages/sgx-vm/src/context.rs:405:9 [INFO] [stdout] | [INFO] [stdout] 405 | use wasmer_runtime_core::{imports, typed_func::Func}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `wasmer_runtime_core` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::instance::init_enclave` [INFO] [stdout] --> packages/sgx-vm/src/attestation.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | use crate::instance::init_enclave as init_enclave_wrapper; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `get_enclave` [INFO] [stdout] | no `init_enclave` in `instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WasmerInstance` in this scope [INFO] [stdout] --> packages/sgx-vm/src/context.rs:424:31 [INFO] [stdout] | [INFO] [stdout] 424 | fn make_instance() -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 424 | fn make_instance() -> Box { [INFO] [stdout] | ++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NonNull` [INFO] [stdout] --> packages/sgx-vm/src/context.rs:442:28 [INFO] [stdout] | [INFO] [stdout] 442 | let instance_ptr = NonNull::from(instance.as_ref()); [INFO] [stdout] | ^^^^^^^ use of undeclared type `NonNull` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 395 + use std::ptr::NonNull; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CommunicationError` [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:545:21 [INFO] [stdout] | [INFO] [stdout] 545 | CommunicationError::RegionLengthTooBig { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `CommunicationError` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum through its public re-export [INFO] [stdout] | [INFO] [stdout] 358 + use crate::CommunicationError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WASM_PAGE_SIZE` in this scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:562:53 [INFO] [stdout] | [INFO] [stdout] 562 | assert_eq!(instance.get_memory_size(), 17 * WASM_PAGE_SIZE); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WASM_PAGE_SIZE` in this scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:567:53 [INFO] [stdout] | [INFO] [stdout] 567 | assert_eq!(instance.get_memory_size(), 19 * WASM_PAGE_SIZE); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WASM_PAGE_SIZE` in this scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:571:53 [INFO] [stdout] | [INFO] [stdout] 571 | assert_eq!(instance.get_memory_size(), 19 * WASM_PAGE_SIZE); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `enclave` [INFO] [stdout] --> packages/sgx-vm/src/backends/enclave.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg(any(feature = "enclave", feature = "default-enclave"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `backtraces`, `cranelift`, `default`, `default-cranelift`, `default-enclave`, `default-singlepass`, `enclave-tests`, `iterator`, `singlepass`, and `staking` [INFO] [stdout] = help: consider adding `enclave` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_gas_left` [INFO] [stdout] --> packages/sgx-vm/src/backends/mod.rs:48:19 [INFO] [stdout] | [INFO] [stdout] 48 | pub use enclave::{get_gas_left, get_gas_used}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mock_instance_with_gas_limit` [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:363:41 [INFO] [stdout] | [INFO] [stdout] 363 | mock_instance_with_failing_api, mock_instance_with_gas_limit, MockQuerier, MockStorage, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `coins` [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:368:15 [INFO] [stdout] | [INFO] [stdout] 368 | coin, coins, from_binary, AllBalanceResponse, BalanceResponse, BankQuery, Empty, HumanAddr, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `imports::*` [INFO] [stdout] --> packages/sgx-vm/src/wasmi/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use imports::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> packages/sgx-vm/src/context.rs:294:9 [INFO] [stdout] | [INFO] [stdout] 294 | let mut context_data = get_context_data_mut::(ctx); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `hits_module` is never read [INFO] [stdout] --> packages/sgx-vm/src/cache.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | struct Stats { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 26 | hits_module: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stats` has derived impls for the traits `Default`, `Clone`, and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `signature` is never used [INFO] [stdout] --> packages/sgx-vm/src/wasmi/results.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl InitSuccess { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn signature(&self) -> &[u8; 64] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `signature` is never read [INFO] [stdout] --> packages/sgx-vm/src/wasmi/results.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct HandleSuccess { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 40 | signature: [u8; 64], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `signature` is never used [INFO] [stdout] --> packages/sgx-vm/src/wasmi/results.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 43 | impl HandleSuccess { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn signature(&self) -> &[u8; 64] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `signature` is never read [INFO] [stdout] --> packages/sgx-vm/src/wasmi/results.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct QuerySuccess { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 68 | signature: [u8; 64], [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `signature` is never used [INFO] [stdout] --> packages/sgx-vm/src/wasmi/results.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 71 | impl QuerySuccess { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn signature(&self) -> &[u8; 64] { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Box<_, _>` [INFO] [stdout] --> packages/sgx-vm/src/context.rs:440:13 [INFO] [stdout] | [INFO] [stdout] 440 | let mut instance = Box::from(module.instantiate(&import_obj).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 441 | [INFO] [stdout] 442 | let instance_ptr = NonNull::from(instance.as_ref()); [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `instance` an explicit type, where the type for type parameter `T` is specified [INFO] [stdout] | [INFO] [stdout] 440 | let mut instance: Box = Box::from(module.instantiate(&import_obj).unwrap()); [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `set_wasmer_instance` in this scope [INFO] [stdout] --> packages/sgx-vm/src/context.rs:443:9 [INFO] [stdout] | [INFO] [stdout] 443 | set_wasmer_instance::(instance.context_mut(), Some(instance_ptr)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_storage_readonly` in this scope [INFO] [stdout] --> packages/sgx-vm/src/context.rs:542:20 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn set_storage_readonly(ctx: &mut Ctx, new_value: bool) { [INFO] [stdout] | ----------------------------------------------------------------------------------- similarly named function `set_storage_readonly` defined here [INFO] [stdout] ... [INFO] [stdout] 542 | assert_eq!(is_storage_readonly::(ctx), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `set_storage_readonly` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_storage_readonly` in this scope [INFO] [stdout] --> packages/sgx-vm/src/context.rs:553:20 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn set_storage_readonly(ctx: &mut Ctx, new_value: bool) { [INFO] [stdout] | ----------------------------------------------------------------------------------- similarly named function `set_storage_readonly` defined here [INFO] [stdout] ... [INFO] [stdout] 553 | assert_eq!(is_storage_readonly::(ctx), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `set_storage_readonly` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_storage_readonly` in this scope [INFO] [stdout] --> packages/sgx-vm/src/context.rs:557:20 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn set_storage_readonly(ctx: &mut Ctx, new_value: bool) { [INFO] [stdout] | ----------------------------------------------------------------------------------- similarly named function `set_storage_readonly` defined here [INFO] [stdout] ... [INFO] [stdout] 557 | assert_eq!(is_storage_readonly::(ctx), false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `set_storage_readonly` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `is_storage_readonly` in this scope [INFO] [stdout] --> packages/sgx-vm/src/context.rs:561:20 [INFO] [stdout] | [INFO] [stdout] 293 | pub fn set_storage_readonly(ctx: &mut Ctx, new_value: bool) { [INFO] [stdout] | ----------------------------------------------------------------------------------- similarly named function `set_storage_readonly` defined here [INFO] [stdout] ... [INFO] [stdout] 561 | assert_eq!(is_storage_readonly::(ctx), true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `set_storage_readonly` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `with_func_from_context` in this scope [INFO] [stdout] --> packages/sgx-vm/src/context.rs:593:19 [INFO] [stdout] | [INFO] [stdout] 593 | let ptr = with_func_from_context::(ctx, "allocate", |alloc_func| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `set_wasmer_instance` in this scope [INFO] [stdout] --> packages/sgx-vm/src/context.rs:607:9 [INFO] [stdout] | [INFO] [stdout] 607 | set_wasmer_instance::(instance.context_mut(), None); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `with_func_from_context` in this scope [INFO] [stdout] --> packages/sgx-vm/src/context.rs:610:19 [INFO] [stdout] | [INFO] [stdout] 588 | fn with_func_from_context_works() { [INFO] [stdout] | --------------------------------- similarly named function `with_func_from_context_works` defined here [INFO] [stdout] ... [INFO] [stdout] 610 | let res = with_func_from_context::(ctx, "allocate", |_func| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `with_func_from_context_works` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `with_func_from_context` in this scope [INFO] [stdout] --> packages/sgx-vm/src/context.rs:625:19 [INFO] [stdout] | [INFO] [stdout] 588 | fn with_func_from_context_works() { [INFO] [stdout] | --------------------------------- similarly named function `with_func_from_context_works` defined here [INFO] [stdout] ... [INFO] [stdout] 625 | let res = with_func_from_context::(ctx, "doesnt_exist", |_func| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `with_func_from_context_works` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_u32` in this scope [INFO] [stdout] --> packages/sgx-vm/src/conversion.rs:34:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn to_i32 + Display + Copy>(input: T) -> VmResult { [INFO] [stdout] | -------------------------------------------------------------------------- similarly named function `to_i32` defined here [INFO] [stdout] ... [INFO] [stdout] 34 | assert_eq!(to_u32(0usize).unwrap(), 0); [INFO] [stdout] | ^^^^^^ help: a function with a similar name exists: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_u32` in this scope [INFO] [stdout] --> packages/sgx-vm/src/conversion.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn to_i32 + Display + Copy>(input: T) -> VmResult { [INFO] [stdout] | -------------------------------------------------------------------------- similarly named function `to_i32` defined here [INFO] [stdout] ... [INFO] [stdout] 35 | assert_eq!(to_u32(1usize).unwrap(), 1); [INFO] [stdout] | ^^^^^^ help: a function with a similar name exists: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_u32` in this scope [INFO] [stdout] --> packages/sgx-vm/src/conversion.rs:36:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn to_i32 + Display + Copy>(input: T) -> VmResult { [INFO] [stdout] | -------------------------------------------------------------------------- similarly named function `to_i32` defined here [INFO] [stdout] ... [INFO] [stdout] 36 | assert_eq!(to_u32(2147483647usize).unwrap(), 2147483647); [INFO] [stdout] | ^^^^^^ help: a function with a similar name exists: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_u32` in this scope [INFO] [stdout] --> packages/sgx-vm/src/conversion.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn to_i32 + Display + Copy>(input: T) -> VmResult { [INFO] [stdout] | -------------------------------------------------------------------------- similarly named function `to_i32` defined here [INFO] [stdout] ... [INFO] [stdout] 37 | assert_eq!(to_u32(2147483648usize).unwrap(), 2147483648); [INFO] [stdout] | ^^^^^^ help: a function with a similar name exists: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_u32` in this scope [INFO] [stdout] --> packages/sgx-vm/src/conversion.rs:38:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn to_i32 + Display + Copy>(input: T) -> VmResult { [INFO] [stdout] | -------------------------------------------------------------------------- similarly named function `to_i32` defined here [INFO] [stdout] ... [INFO] [stdout] 38 | assert_eq!(to_u32(4294967295usize).unwrap(), 4294967295); [INFO] [stdout] | ^^^^^^ help: a function with a similar name exists: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_u32` in this scope [INFO] [stdout] --> packages/sgx-vm/src/conversion.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn to_i32 + Display + Copy>(input: T) -> VmResult { [INFO] [stdout] | -------------------------------------------------------------------------- similarly named function `to_i32` defined here [INFO] [stdout] ... [INFO] [stdout] 40 | match to_u32(4294967296usize) { [INFO] [stdout] | ^^^^^^ help: a function with a similar name exists: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_u32` in this scope [INFO] [stdout] --> packages/sgx-vm/src/conversion.rs:58:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn to_i32 + Display + Copy>(input: T) -> VmResult { [INFO] [stdout] | -------------------------------------------------------------------------- similarly named function `to_i32` defined here [INFO] [stdout] ... [INFO] [stdout] 58 | assert_eq!(to_u32(0u64).unwrap(), 0); [INFO] [stdout] | ^^^^^^ help: a function with a similar name exists: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_u32` in this scope [INFO] [stdout] --> packages/sgx-vm/src/conversion.rs:59:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn to_i32 + Display + Copy>(input: T) -> VmResult { [INFO] [stdout] | -------------------------------------------------------------------------- similarly named function `to_i32` defined here [INFO] [stdout] ... [INFO] [stdout] 59 | assert_eq!(to_u32(1u64).unwrap(), 1); [INFO] [stdout] | ^^^^^^ help: a function with a similar name exists: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_u32` in this scope [INFO] [stdout] --> packages/sgx-vm/src/conversion.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn to_i32 + Display + Copy>(input: T) -> VmResult { [INFO] [stdout] | -------------------------------------------------------------------------- similarly named function `to_i32` defined here [INFO] [stdout] ... [INFO] [stdout] 60 | assert_eq!(to_u32(2147483647u64).unwrap(), 2147483647); [INFO] [stdout] | ^^^^^^ help: a function with a similar name exists: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_u32` in this scope [INFO] [stdout] --> packages/sgx-vm/src/conversion.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn to_i32 + Display + Copy>(input: T) -> VmResult { [INFO] [stdout] | -------------------------------------------------------------------------- similarly named function `to_i32` defined here [INFO] [stdout] ... [INFO] [stdout] 61 | assert_eq!(to_u32(2147483648u64).unwrap(), 2147483648); [INFO] [stdout] | ^^^^^^ help: a function with a similar name exists: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_u32` in this scope [INFO] [stdout] --> packages/sgx-vm/src/conversion.rs:62:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn to_i32 + Display + Copy>(input: T) -> VmResult { [INFO] [stdout] | -------------------------------------------------------------------------- similarly named function `to_i32` defined here [INFO] [stdout] ... [INFO] [stdout] 62 | assert_eq!(to_u32(4294967295u64).unwrap(), 4294967295); [INFO] [stdout] | ^^^^^^ help: a function with a similar name exists: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_u32` in this scope [INFO] [stdout] --> packages/sgx-vm/src/conversion.rs:64:15 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn to_i32 + Display + Copy>(input: T) -> VmResult { [INFO] [stdout] | -------------------------------------------------------------------------- similarly named function `to_i32` defined here [INFO] [stdout] ... [INFO] [stdout] 64 | match to_u32(4294967296u64) { [INFO] [stdout] | ^^^^^^ help: a function with a similar name exists: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_u32` in this scope [INFO] [stdout] --> packages/sgx-vm/src/conversion.rs:82:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn to_i32 + Display + Copy>(input: T) -> VmResult { [INFO] [stdout] | -------------------------------------------------------------------------- similarly named function `to_i32` defined here [INFO] [stdout] ... [INFO] [stdout] 82 | assert_eq!(to_u32(0i32).unwrap(), 0); [INFO] [stdout] | ^^^^^^ help: a function with a similar name exists: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_u32` in this scope [INFO] [stdout] --> packages/sgx-vm/src/conversion.rs:83:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn to_i32 + Display + Copy>(input: T) -> VmResult { [INFO] [stdout] | -------------------------------------------------------------------------- similarly named function `to_i32` defined here [INFO] [stdout] ... [INFO] [stdout] 83 | assert_eq!(to_u32(1i32).unwrap(), 1); [INFO] [stdout] | ^^^^^^ help: a function with a similar name exists: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_u32` in this scope [INFO] [stdout] --> packages/sgx-vm/src/conversion.rs:84:20 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn to_i32 + Display + Copy>(input: T) -> VmResult { [INFO] [stdout] | -------------------------------------------------------------------------- similarly named function `to_i32` defined here [INFO] [stdout] ... [INFO] [stdout] 84 | assert_eq!(to_u32(2147483647i32).unwrap(), 2147483647); [INFO] [stdout] | ^^^^^^ help: a function with a similar name exists: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_u32` in this scope [INFO] [stdout] --> packages/sgx-vm/src/conversion.rs:86:15 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn to_i32 + Display + Copy>(input: T) -> VmResult { [INFO] [stdout] | -------------------------------------------------------------------------- similarly named function `to_i32` defined here [INFO] [stdout] ... [INFO] [stdout] 86 | match to_u32(-1i32) { [INFO] [stdout] | ^^^^^^ help: a function with a similar name exists: `to_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `required_features` on type `instance::Instance` [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:387:29 [INFO] [stdout] | [INFO] [stdout] 387 | assert_eq!(instance.required_features.len(), 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `inner`, `api`, `type_storage`, `type_querier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `required_features` on type `instance::Instance` [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:408:29 [INFO] [stdout] | [INFO] [stdout] 408 | assert_eq!(instance.required_features.len(), 3); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `inner`, `api`, `type_storage`, `type_querier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `required_features` on type `instance::Instance` [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:409:26 [INFO] [stdout] | [INFO] [stdout] 409 | assert!(instance.required_features.contains("nutrients")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `inner`, `api`, `type_storage`, `type_querier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `required_features` on type `instance::Instance` [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:410:26 [INFO] [stdout] | [INFO] [stdout] 410 | assert!(instance.required_features.contains("sun")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `inner`, `api`, `type_storage`, `type_querier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `required_features` on type `instance::Instance` [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:411:26 [INFO] [stdout] | [INFO] [stdout] 411 | assert!(instance.required_features.contains("water")); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `inner`, `api`, `type_storage`, `type_querier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `func` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:433:24 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `func` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 433 | match instance.func::<(), ()>(missing_function).err().unwrap() { [INFO] [stdout] | ^^^^ method not found in `Instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `func` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:445:24 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `func` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 445 | match instance.func::<(), ()>("allocate").err().unwrap() { [INFO] [stdout] | ^^^^ method not found in `Instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `allocate` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:471:39 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `allocate` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 471 | let region_ptr = instance.allocate(size).expect("error allocating"); [INFO] [stdout] | ^^^^^^^^ method not found in `Instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `deallocate` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:472:22 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `deallocate` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 472 | instance.deallocate(region_ptr).expect("error deallocating"); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `allocate` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:494:39 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `allocate` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 494 | let region_ptr = instance.allocate(size).expect("error allocating"); [INFO] [stdout] | ^^^^^^^^ method not found in `Instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_memory` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:497:18 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `write_memory` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 496 | / instance [INFO] [stdout] 497 | | .write_memory(region_ptr, &original) [INFO] [stdout] | | -^^^^^^^^^^^^ method not found in `Instance` [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_memory` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:500:18 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `read_memory` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 499 | let data = instance [INFO] [stdout] | ________________________- [INFO] [stdout] 500 | | .read_memory(region_ptr, size) [INFO] [stdout] | | -^^^^^^^^^^^ method not found in `Instance` [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `deallocate` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:503:22 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `deallocate` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 503 | instance.deallocate(region_ptr).expect("error deallocating"); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `allocate` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:535:35 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `allocate` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 535 | let region_ptr = instance.allocate(length).expect("error allocating"); [INFO] [stdout] | ^^^^^^^^ method not found in `Instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_memory` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:538:14 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `write_memory` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 537 | / instance [INFO] [stdout] 538 | | .write_memory(region_ptr, &data) [INFO] [stdout] | | -^^^^^^^^^^^^ method not found in `Instance` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `read_memory` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:541:31 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `read_memory` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 541 | let result = instance.read_memory(region_ptr, max_length); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `deallocate` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:555:18 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `deallocate` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 555 | instance.deallocate(region_ptr).expect("error deallocating"); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_memory_size` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:562:29 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `get_memory_size` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 562 | assert_eq!(instance.get_memory_size(), 17 * WASM_PAGE_SIZE); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `Instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `allocate` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:565:35 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `allocate` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 565 | let region_ptr = instance.allocate(100 * 1024).expect("error allocating"); [INFO] [stdout] | ^^^^^^^^ method not found in `Instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_memory_size` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:567:29 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `get_memory_size` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 567 | assert_eq!(instance.get_memory_size(), 19 * WASM_PAGE_SIZE); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `Instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `deallocate` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:570:18 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `deallocate` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 570 | instance.deallocate(region_ptr).expect("error deallocating"); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_memory_size` found for struct `instance::Instance` in the current scope [INFO] [stdout] --> packages/sgx-vm/src/instance.rs:571:29 [INFO] [stdout] | [INFO] [stdout] 60 | pub struct Instance { [INFO] [stdout] | --------------------------------------------------------------------------------- method `get_memory_size` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 571 | assert_eq!(instance.get_memory_size(), 19 * WASM_PAGE_SIZE); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `Instance` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> packages/sgx-vm/src/context.rs:294:9 [INFO] [stdout] | [INFO] [stdout] 294 | let mut context_data = get_context_data_mut::(ctx); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 61 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0425, E0432, E0433, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cosmwasm-sgx-vm` (lib test) due to 62 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8450ea2145eb06fadc3c4469a6d42e9d49f959dec47f3f8991ef6d4f8aa6af9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8450ea2145eb06fadc3c4469a6d42e9d49f959dec47f3f8991ef6d4f8aa6af9d", kill_on_drop: false }` [INFO] [stdout] 8450ea2145eb06fadc3c4469a6d42e9d49f959dec47f3f8991ef6d4f8aa6af9d