[INFO] crate substrate-wasmtime 0.13.0-threadsafe.1 is already in cache [INFO] checking substrate-wasmtime-0.13.0-threadsafe.1 against try#d7b51666469c792a8a3f40849607739bae1e705e for pr-71665 [INFO] extracting crate substrate-wasmtime 0.13.0-threadsafe.1 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate substrate-wasmtime 0.13.0-threadsafe.1 on toolchain d7b51666469c792a8a3f40849607739bae1e705e [INFO] running `"/workspace/cargo-home/bin/cargo" "+d7b51666469c792a8a3f40849607739bae1e705e" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate substrate-wasmtime 0.13.0-threadsafe.1 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate substrate-wasmtime 0.13.0-threadsafe.1 [INFO] tweaked toml for crates.io crate substrate-wasmtime 0.13.0-threadsafe.1 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate crates.io crate substrate-wasmtime 0.13.0-threadsafe.1 already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+d7b51666469c792a8a3f40849607739bae1e705e" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+d7b51666469c792a8a3f40849607739bae1e705e" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 99a357e7bf74245245036160e35f2ac97a4f414d3a1b3d8000a8bec97404afc3 [INFO] running `"docker" "start" "-a" "99a357e7bf74245245036160e35f2ac97a4f414d3a1b3d8000a8bec97404afc3"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.9 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling target-lexicon v0.10.0 [INFO] [stderr] Compiling cranelift-codegen-shared v0.59.0 [INFO] [stderr] Checking smallvec v1.2.0 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Checking arrayvec v0.5.1 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Checking adler32 v1.0.4 [INFO] [stderr] Checking wasmparser v0.51.4 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Checking fake-simd v0.1.2 [INFO] [stderr] Compiling wasmtime-environ v0.12.0 [INFO] [stderr] Compiling regex-syntax v0.6.16 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking parity-wasm v0.41.0 [INFO] [stderr] Checking uuid v0.8.1 [INFO] [stderr] Checking more-asserts v0.2.1 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling leb128 v0.2.4 [INFO] [stderr] Checking remove_dir_all v0.5.2 [INFO] [stderr] Compiling proc-macro-error-attr v0.4.11 [INFO] [stderr] Compiling proc-macro-error v0.4.11 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-rational v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking miniz_oxide v0.3.6 [INFO] [stderr] Checking wast v10.0.0 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking memchr v2.3.3 [INFO] [stderr] Compiling wast v9.0.0 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Compiling regex v1.3.4 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking num_cpus v1.12.0 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking flate2 v1.0.13 [INFO] [stderr] Checking errno v0.2.4 [INFO] [stderr] Checking region v2.1.2 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking filetime v0.2.8 [INFO] [stderr] Compiling jobserver v0.1.21 [INFO] [stderr] Checking gimli v0.20.0 [INFO] [stderr] Checking crossbeam-queue v0.2.1 [INFO] [stderr] Compiling syn v1.0.16 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Checking directories v2.0.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking wat v1.0.11 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Checking chrono v0.4.11 [INFO] [stderr] Compiling env_logger v0.6.2 [INFO] [stderr] Checking sha2 v0.8.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking file-per-thread-logger v0.1.2 [INFO] [stderr] Checking pretty_env_logger v0.3.1 [INFO] [stderr] Compiling zstd-sys v1.4.15+zstd.1.4.4 [INFO] [stderr] Compiling backtrace-sys v0.1.34 [INFO] [stderr] Compiling raw-cpuid v7.0.3 [INFO] [stderr] Compiling substrate-wasmtime-runtime v0.13.0-threadsafe.1 [INFO] [stderr] Checking rayon v1.3.0 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Compiling thiserror-impl v1.0.11 [INFO] [stderr] Compiling scroll_derive v0.10.1 [INFO] [stderr] Checking backtrace v0.3.45 [INFO] [stderr] Checking scroll v0.10.1 [INFO] [stderr] Checking goblin v0.1.3 [INFO] [stderr] Compiling structopt-derive v0.4.4 [INFO] [stderr] Checking thiserror v1.0.11 [INFO] [stderr] Checking yanix v0.12.0 [INFO] [stderr] Compiling structopt v0.3.11 [INFO] [stderr] Compiling witx v0.8.3 [INFO] [stderr] Checking object v0.17.0 [INFO] [stderr] Compiling wig v0.12.0 [INFO] [stderr] Checking wasi-common v0.12.0 [INFO] [stderr] Checking cranelift-entity v0.59.0 [INFO] [stderr] Checking toml v0.5.6 [INFO] [stderr] Checking bincode v1.2.1 [INFO] [stderr] Checking string-interner v0.7.1 [INFO] [stderr] Checking wasmtime-profiling v0.12.0 [INFO] [stderr] Checking faerie v0.14.0 [INFO] [stderr] Checking cranelift-bforest v0.59.0 [INFO] [stderr] Compiling cranelift-codegen-meta v0.59.0 [INFO] [stderr] Checking zstd-safe v2.0.3+zstd.1.4.4 [INFO] [stderr] Checking zstd v0.5.1+zstd.1.4.4 [INFO] [stderr] Compiling cranelift-codegen v0.59.0 [INFO] [stderr] Checking cranelift-frontend v0.59.0 [INFO] [stderr] Checking cranelift-native v0.59.0 [INFO] [stderr] Checking cranelift-wasm v0.59.0 [INFO] [stderr] Checking wasmtime-debug v0.12.0 [INFO] [stderr] Checking substrate-wasmtime-jit v0.13.0-threadsafe.1 [INFO] [stderr] Checking substrate-wasmtime v0.13.0-threadsafe.1 (/opt/rustwide/workdir) [INFO] [stderr] warning: unnecessary braces around assigned value [INFO] [stderr] --> src/runtime.rs:228:33 [INFO] [stderr] | [INFO] [stderr] 228 | self.profiler = { Some(Arc::new(Mutex::new(Box::new(JitDumpAgent::default())))) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_braces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary braces around assigned value [INFO] [stderr] --> src/runtime.rs:230:34 [INFO] [stderr] | [INFO] [stderr] 230 | _ => self.profiler = { None }, [INFO] [stderr] | ^^^^^^^^ help: remove these braces [INFO] [stderr] [INFO] [stderr] warning: unnecessary braces around assigned value [INFO] [stderr] --> src/runtime.rs:228:33 [INFO] [stderr] | [INFO] [stderr] 228 | self.profiler = { Some(Arc::new(Mutex::new(Box::new(JitDumpAgent::default())))) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_braces)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary braces around assigned value [INFO] [stderr] --> src/runtime.rs:230:34 [INFO] [stderr] | [INFO] [stderr] 230 | _ => self.profiler = { None }, [INFO] [stderr] | ^^^^^^^^ help: remove these braces [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] warning: 2 warnings emitted [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> examples/hello.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> examples/hello.rs:11:17 [INFO] [stderr] | [INFO] [stderr] 11 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> examples/hello.rs:21:18 [INFO] [stderr] | [INFO] [stderr] 21 | let module = Module::new(&store, wat).context("> Error compiling module!")?; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Func` [INFO] [stderr] --> examples/hello.rs:26:22 [INFO] [stderr] | [INFO] [stderr] 26 | let hello_func = Func::wrap0(&store, || { [INFO] [stderr] | ^^^^ use of undeclared type or module `Func` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Instance` [INFO] [stderr] --> examples/hello.rs:36:20 [INFO] [stderr] | [INFO] [stderr] 36 | let instance = Instance::new(&module, &imports).context("> Error instantiating module!")?; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> tests/name.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/name.rs:5:17 [INFO] [stderr] | [INFO] [stderr] 5 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> tests/name.rs:12:18 [INFO] [stderr] | [INFO] [stderr] 12 | let module = Module::new(&store, wat)?; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/name.rs:20:17 [INFO] [stderr] | [INFO] [stderr] 20 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> tests/name.rs:27:18 [INFO] [stderr] | [INFO] [stderr] 27 | let module = Module::new(&store, wat)?; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> tests/name.rs:30:18 [INFO] [stderr] | [INFO] [stderr] 30 | let module = Module::new_with_name(&store, wat, "override")?; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> examples/gcd.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> examples/gcd.rs:39:17 [INFO] [stderr] | [INFO] [stderr] 39 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> examples/gcd.rs:40:18 [INFO] [stderr] | [INFO] [stderr] 40 | let module = Module::new(&store, WAT)?; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Instance` [INFO] [stderr] --> examples/gcd.rs:52:20 [INFO] [stderr] | [INFO] [stderr] 52 | let instance = Instance::new(&module, &[])?; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/gcd.rs:56:29 [INFO] [stderr] | [INFO] [stderr] 56 | let result = gcd.call(&[Val::from(6i32), Val::from(27i32)])?; [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/gcd.rs:56:46 [INFO] [stderr] | [INFO] [stderr] 56 | let result = gcd.call(&[Val::from(6i32), Val::from(27i32)])?; [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> tests/import_calling_export.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] warning: unused import: `Context` [INFO] [stderr] --> examples/hello.rs:3:22 [INFO] [stderr] | [INFO] [stderr] 3 | use anyhow::{ensure, Context as _, Result}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> tests/invoke_func_via_table.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/invoke_func_via_table.rs:6:17 [INFO] [stderr] | [INFO] [stderr] 6 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> tests/invoke_func_via_table.rs:16:18 [INFO] [stderr] | [INFO] [stderr] 16 | let module = Module::new(&store, wat).context("> Error compiling module!")?; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Instance` [INFO] [stderr] --> tests/invoke_func_via_table.rs:17:20 [INFO] [stderr] | [INFO] [stderr] 17 | let instance = Instance::new(&module, &[]).context("> Error instantiating module!")?; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/import_calling_export.rs:34:17 [INFO] [stderr] | [INFO] [stderr] 34 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> tests/import_calling_export.rs:35:18 [INFO] [stderr] | [INFO] [stderr] 35 | let module = Module::new(&store, WAT).expect("failed to create module"); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Func` [INFO] [stderr] --> tests/import_calling_export.rs:41:25 [INFO] [stderr] | [INFO] [stderr] 41 | let callback_func = Func::new( [INFO] [stderr] | ^^^^ use of undeclared type or module `Func` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `FuncType` [INFO] [stderr] --> tests/import_calling_export.rs:43:9 [INFO] [stderr] | [INFO] [stderr] 43 | FuncType::new(Box::new([]), Box::new([])), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `FuncType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Instance` [INFO] [stderr] --> tests/import_calling_export.rs:49:9 [INFO] [stderr] | [INFO] [stderr] 49 | Instance::new(&module, imports.as_slice()).expect("failed to instantiate module"); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> examples/multi.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] error: could not compile `substrate-wasmtime`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/import_calling_export.rs:84:26 [INFO] [stderr] | [INFO] [stderr] 84 | results[0] = Val::I64(228); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/import_calling_export.rs:89:17 [INFO] [stderr] | [INFO] [stderr] 89 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> tests/import_calling_export.rs:90:18 [INFO] [stderr] | [INFO] [stderr] 90 | let module = Module::new(&store, WAT).expect("failed to create module"); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Func` [INFO] [stderr] --> tests/import_calling_export.rs:94:25 [INFO] [stderr] | [INFO] [stderr] 94 | let callback_func = Func::new( [INFO] [stderr] | ^^^^ use of undeclared type or module `Func` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `FuncType` [INFO] [stderr] --> tests/import_calling_export.rs:96:9 [INFO] [stderr] | [INFO] [stderr] 96 | FuncType::new(Box::new([]), Box::new([ValType::I32])), [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `FuncType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/import_calling_export.rs:96:47 [INFO] [stderr] | [INFO] [stderr] 96 | FuncType::new(Box::new([]), Box::new([ValType::I32])), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Instance` [INFO] [stderr] --> tests/import_calling_export.rs:102:9 [INFO] [stderr] | [INFO] [stderr] 102 | Instance::new(&module, imports.as_slice()).expect("failed to instantiate module"); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Func` in this scope [INFO] [stderr] --> tests/import_calling_export.rs:19:35 [INFO] [stderr] | [INFO] [stderr] 19 | pub other: RefCell>, [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Func; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `Callable` in this scope [INFO] [stderr] --> tests/import_calling_export.rs:22:10 [INFO] [stderr] | [INFO] [stderr] 22 | impl Callable for Callback { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Callable; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Val` in this scope [INFO] [stderr] --> tests/import_calling_export.rs:23:35 [INFO] [stderr] | [INFO] [stderr] 23 | fn call(&self, _params: &[Val], _results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Val; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Val` in this scope [INFO] [stderr] --> tests/import_calling_export.rs:23:57 [INFO] [stderr] | [INFO] [stderr] 23 | fn call(&self, _params: &[Val], _results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Val; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Trap` in this scope [INFO] [stderr] --> tests/import_calling_export.rs:23:77 [INFO] [stderr] | [INFO] [stderr] 23 | fn call(&self, _params: &[Val], _results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Trap; [INFO] [stderr] | [INFO] [stderr] 1 | use wasmtime_runtime::Trap; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `Callable` in this scope [INFO] [stderr] --> tests/import_calling_export.rs:81:10 [INFO] [stderr] | [INFO] [stderr] 81 | impl Callable for EvilCallback { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Callable; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Val` in this scope [INFO] [stderr] --> tests/import_calling_export.rs:82:35 [INFO] [stderr] | [INFO] [stderr] 82 | fn call(&self, _params: &[Val], results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Val; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Val` in this scope [INFO] [stderr] --> tests/import_calling_export.rs:82:56 [INFO] [stderr] | [INFO] [stderr] 82 | fn call(&self, _params: &[Val], results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Val; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Trap` in this scope [INFO] [stderr] --> tests/import_calling_export.rs:82:76 [INFO] [stderr] | [INFO] [stderr] 82 | fn call(&self, _params: &[Val], results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 1 | use substrate_wasmtime::Trap; [INFO] [stderr] | [INFO] [stderr] 1 | use wasmtime_runtime::Trap; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:14:22 [INFO] [stderr] | [INFO] [stderr] 14 | results[0] = Val::I64(args[1].unwrap_i64() + 1); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:15:22 [INFO] [stderr] | [INFO] [stderr] 15 | results[1] = Val::I32(args[0].unwrap_i32() + 1); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Engine` [INFO] [stderr] --> examples/multi.rs:48:18 [INFO] [stderr] | [INFO] [stderr] 48 | let engine = Engine::new(Config::new().wasm_multi_value(true)); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Engine` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Config` [INFO] [stderr] --> examples/multi.rs:48:30 [INFO] [stderr] | [INFO] [stderr] 48 | let engine = Engine::new(Config::new().wasm_multi_value(true)); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Config` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> examples/multi.rs:49:17 [INFO] [stderr] | [INFO] [stderr] 49 | let store = Store::new(&engine); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> examples/multi.rs:53:18 [INFO] [stderr] | [INFO] [stderr] 53 | let module = Module::new(&store, WAT).context("Error compiling module!")?; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `FuncType` [INFO] [stderr] --> examples/multi.rs:57:25 [INFO] [stderr] | [INFO] [stderr] 57 | let callback_type = FuncType::new( [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `FuncType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> examples/multi.rs:58:19 [INFO] [stderr] | [INFO] [stderr] 58 | Box::new([ValType::I32, ValType::I64]), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> examples/multi.rs:58:33 [INFO] [stderr] | [INFO] [stderr] 58 | Box::new([ValType::I32, ValType::I64]), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> examples/multi.rs:59:19 [INFO] [stderr] | [INFO] [stderr] 59 | Box::new([ValType::I64, ValType::I32]), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> examples/multi.rs:59:33 [INFO] [stderr] | [INFO] [stderr] 59 | Box::new([ValType::I64, ValType::I32]), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Func` [INFO] [stderr] --> examples/multi.rs:61:25 [INFO] [stderr] | [INFO] [stderr] 61 | let callback_func = Func::new(&store, callback_type, Rc::new(Callback)); [INFO] [stderr] | ^^^^ use of undeclared type or module `Func` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Instance` [INFO] [stderr] --> examples/multi.rs:67:9 [INFO] [stderr] | [INFO] [stderr] 67 | Instance::new(&module, imports.as_slice()).context("Error instantiating module!")?; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:80:21 [INFO] [stderr] | [INFO] [stderr] 80 | let args = vec![Val::I32(1), Val::I64(3)]; [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:80:34 [INFO] [stderr] | [INFO] [stderr] 80 | let args = vec![Val::I32(1), Val::I64(3)]; [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:94:9 [INFO] [stderr] | [INFO] [stderr] 94 | Val::I64(0), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:95:9 [INFO] [stderr] | [INFO] [stderr] 95 | Val::I64(1), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:96:9 [INFO] [stderr] | [INFO] [stderr] 96 | Val::I64(2), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:97:9 [INFO] [stderr] | [INFO] [stderr] 97 | Val::I64(3), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:98:9 [INFO] [stderr] | [INFO] [stderr] 98 | Val::I64(4), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:99:9 [INFO] [stderr] | [INFO] [stderr] 99 | Val::I64(5), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:100:9 [INFO] [stderr] | [INFO] [stderr] 100 | Val::I64(6), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:101:9 [INFO] [stderr] | [INFO] [stderr] 101 | Val::I64(7), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:102:9 [INFO] [stderr] | [INFO] [stderr] 102 | Val::I64(8), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> examples/multi.rs:103:9 [INFO] [stderr] | [INFO] [stderr] 103 | Val::I64(9), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> tests/globals.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `Callable` in this scope [INFO] [stderr] --> examples/multi.rs:9:6 [INFO] [stderr] | [INFO] [stderr] 9 | impl Callable for Callback { [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use substrate_wasmtime::Callable; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Val` in this scope [INFO] [stderr] --> examples/multi.rs:10:28 [INFO] [stderr] | [INFO] [stderr] 10 | fn call(&self, args: &[Val], results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use substrate_wasmtime::Val; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Val` in this scope [INFO] [stderr] --> examples/multi.rs:10:49 [INFO] [stderr] | [INFO] [stderr] 10 | fn call(&self, args: &[Val], results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 3 | use substrate_wasmtime::Val; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Trap` in this scope [INFO] [stderr] --> examples/multi.rs:10:69 [INFO] [stderr] | [INFO] [stderr] 10 | fn call(&self, args: &[Val], results: &mut [Val]) -> Result<(), Trap> { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 3 | use substrate_wasmtime::Trap; [INFO] [stderr] | [INFO] [stderr] 3 | use wasmtime_runtime::Trap; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/globals.rs:5:17 [INFO] [stderr] | [INFO] [stderr] 5 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Global` [INFO] [stderr] --> tests/globals.rs:6:13 [INFO] [stderr] | [INFO] [stderr] 6 | let g = Global::new( [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GlobalType` [INFO] [stderr] --> tests/globals.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 8 | GlobalType::new(ValType::I32, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `GlobalType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/globals.rs:8:25 [INFO] [stderr] | [INFO] [stderr] 8 | GlobalType::new(ValType::I32, Mutability::Const), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Mutability` [INFO] [stderr] --> tests/globals.rs:8:39 [INFO] [stderr] | [INFO] [stderr] 8 | GlobalType::new(ValType::I32, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `Mutability` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Global` [INFO] [stderr] --> tests/globals.rs:14:13 [INFO] [stderr] | [INFO] [stderr] 14 | let g = Global::new( [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GlobalType` [INFO] [stderr] --> tests/globals.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | GlobalType::new(ValType::I32, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `GlobalType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/globals.rs:16:25 [INFO] [stderr] | [INFO] [stderr] 16 | GlobalType::new(ValType::I32, Mutability::Const), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Mutability` [INFO] [stderr] --> tests/globals.rs:16:39 [INFO] [stderr] | [INFO] [stderr] 16 | GlobalType::new(ValType::I32, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `Mutability` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Global` [INFO] [stderr] --> tests/globals.rs:21:13 [INFO] [stderr] | [INFO] [stderr] 21 | let g = Global::new( [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GlobalType` [INFO] [stderr] --> tests/globals.rs:23:9 [INFO] [stderr] | [INFO] [stderr] 23 | GlobalType::new(ValType::I64, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `GlobalType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/globals.rs:23:25 [INFO] [stderr] | [INFO] [stderr] 23 | GlobalType::new(ValType::I64, Mutability::Const), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Mutability` [INFO] [stderr] --> tests/globals.rs:23:39 [INFO] [stderr] | [INFO] [stderr] 23 | GlobalType::new(ValType::I64, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `Mutability` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Global` [INFO] [stderr] --> tests/globals.rs:28:13 [INFO] [stderr] | [INFO] [stderr] 28 | let g = Global::new( [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GlobalType` [INFO] [stderr] --> tests/globals.rs:30:9 [INFO] [stderr] | [INFO] [stderr] 30 | GlobalType::new(ValType::F32, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `GlobalType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/globals.rs:30:25 [INFO] [stderr] | [INFO] [stderr] 30 | GlobalType::new(ValType::F32, Mutability::Const), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Mutability` [INFO] [stderr] --> tests/globals.rs:30:39 [INFO] [stderr] | [INFO] [stderr] 30 | GlobalType::new(ValType::F32, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `Mutability` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Global` [INFO] [stderr] --> tests/globals.rs:35:13 [INFO] [stderr] | [INFO] [stderr] 35 | let g = Global::new( [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GlobalType` [INFO] [stderr] --> tests/globals.rs:37:9 [INFO] [stderr] | [INFO] [stderr] 37 | GlobalType::new(ValType::F64, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `GlobalType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/globals.rs:37:25 [INFO] [stderr] | [INFO] [stderr] 37 | GlobalType::new(ValType::F64, Mutability::Const), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Mutability` [INFO] [stderr] --> tests/globals.rs:37:39 [INFO] [stderr] | [INFO] [stderr] 37 | GlobalType::new(ValType::F64, Mutability::Const), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `Mutability` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/globals.rs:46:17 [INFO] [stderr] | [INFO] [stderr] 46 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Global` [INFO] [stderr] --> tests/globals.rs:47:13 [INFO] [stderr] | [INFO] [stderr] 47 | let g = Global::new( [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GlobalType` [INFO] [stderr] --> tests/globals.rs:49:9 [INFO] [stderr] | [INFO] [stderr] 49 | GlobalType::new(ValType::I32, Mutability::Var), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `GlobalType` [INFO] [stderr] [INFO] [stderr] error: aborting due to 22 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0405, E0412, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0405`. [INFO] [stderr] error: could not compile `substrate-wasmtime`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to 30 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0405, E0412, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0405`. [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/globals.rs:49:25 [INFO] [stderr] | [INFO] [stderr] 49 | GlobalType::new(ValType::I32, Mutability::Var), [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Mutability` [INFO] [stderr] --> tests/globals.rs:49:39 [INFO] [stderr] | [INFO] [stderr] 49 | GlobalType::new(ValType::I32, Mutability::Var), [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `Mutability` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/globals.rs:64:17 [INFO] [stderr] | [INFO] [stderr] 64 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> tests/globals.rs:65:18 [INFO] [stderr] | [INFO] [stderr] 65 | let module = Module::new( [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Instance` [INFO] [stderr] --> tests/globals.rs:72:20 [INFO] [stderr] | [INFO] [stderr] 72 | let instance = Instance::new(&module, &[])?; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Instance` [INFO] [stderr] --> tests/globals.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | Instance::new(&module, &[])?; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error: could not compile `substrate-wasmtime`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `substrate-wasmtime`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `substrate-wasmtime`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: unused import: `Context` [INFO] [stderr] --> tests/invoke_func_via_table.rs:1:14 [INFO] [stderr] | [INFO] [stderr] 1 | use anyhow::{Context as _, Result}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `substrate-wasmtime`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to 31 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `substrate-wasmtime`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> tests/host-segfault.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 14 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/host-segfault.rs:31:25 [INFO] [stderr] | [INFO] [stderr] 31 | let store = Store::default(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> tests/host-segfault.rs:32:26 [INFO] [stderr] | [INFO] [stderr] 32 | let module = Module::new(&store, "(module)").unwrap(); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Instance` [INFO] [stderr] --> tests/host-segfault.rs:33:29 [INFO] [stderr] | [INFO] [stderr] 33 | let _instance = Instance::new(&module, &[]).unwrap(); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `substrate-wasmtime`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "99a357e7bf74245245036160e35f2ac97a4f414d3a1b3d8000a8bec97404afc3"` [INFO] running `"docker" "rm" "-f" "99a357e7bf74245245036160e35f2ac97a4f414d3a1b3d8000a8bec97404afc3"` [INFO] [stdout] 99a357e7bf74245245036160e35f2ac97a4f414d3a1b3d8000a8bec97404afc3