[INFO] crate substrate-wasmtime 0.13.0-threadsafe.1 is already in cache [INFO] checking substrate-wasmtime-0.13.0-threadsafe.1 against master#45d050cde277b22a755847338f2acc2c7b834141 for pr-71393 [INFO] extracting crate substrate-wasmtime 0.13.0-threadsafe.1 into /workspace/builds/worker-11/source [INFO] validating manifest of crates.io crate substrate-wasmtime 0.13.0-threadsafe.1 on toolchain 45d050cde277b22a755847338f2acc2c7b834141 [INFO] running `"/workspace/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "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-11/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" "+45d050cde277b22a755847338f2acc2c7b834141" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "+45d050cde277b22a755847338f2acc2c7b834141" "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] a2dc4bb6bae998f7c70f7068f2921848cab05107e95a0065424b28dda495899a [INFO] running `"docker" "start" "-a" "a2dc4bb6bae998f7c70f7068f2921848cab05107e95a0065424b28dda495899a"` [INFO] [stderr] Compiling libc v0.2.67 [INFO] [stderr] Compiling proc-macro2 v1.0.9 [INFO] [stderr] Compiling syn v1.0.16 [INFO] [stderr] Compiling target-lexicon v0.10.0 [INFO] [stderr] Compiling anyhow v1.0.26 [INFO] [stderr] Compiling cranelift-codegen-shared v0.59.0 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking stable_deref_trait v1.1.1 [INFO] [stderr] Checking smallvec v1.2.0 [INFO] [stderr] Checking arrayvec v0.5.1 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Checking plain v0.2.3 [INFO] [stderr] Compiling unicode-width v0.1.7 [INFO] [stderr] Checking wasmparser v0.51.4 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling wasmtime-environ v0.12.0 [INFO] [stderr] Checking more-asserts v0.2.1 [INFO] [stderr] Checking uuid v0.8.1 [INFO] [stderr] Compiling leb128 v0.2.4 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling num-rational v0.2.3 [INFO] [stderr] Compiling proc-macro-error-attr v0.4.11 [INFO] [stderr] Compiling proc-macro-error v0.4.11 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Checking wast v10.0.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling wast v9.0.0 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Checking gimli v0.20.0 [INFO] [stderr] Checking regex v1.3.4 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Compiling aho-corasick v0.7.10 [INFO] [stderr] Checking sha2 v0.8.1 [INFO] [stderr] Checking crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Compiling jobserver v0.1.21 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling clap v2.33.0 [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 errno v0.2.4 [INFO] [stderr] Checking flate2 v1.0.13 [INFO] [stderr] Checking region v2.1.2 [INFO] [stderr] Checking filetime v0.2.8 [INFO] [stderr] Checking env_logger v0.6.2 [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Checking rayon-core v1.7.0 [INFO] [stderr] Checking directories v2.0.2 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling chrono v0.4.11 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking file-per-thread-logger v0.1.2 [INFO] [stderr] Checking rayon v1.3.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking wat v1.0.11 [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 pretty_env_logger v0.3.1 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Checking backtrace v0.3.45 [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] Compiling structopt-derive v0.4.4 [INFO] [stderr] Checking scroll v0.10.1 [INFO] [stderr] Checking thiserror v1.0.11 [INFO] [stderr] Checking yanix v0.12.0 [INFO] [stderr] Checking goblin v0.1.3 [INFO] [stderr] Compiling structopt v0.3.11 [INFO] [stderr] Compiling witx v0.8.3 [INFO] [stderr] Checking object v0.17.0 [INFO] [stderr] Checking serde v1.0.104 [INFO] [stderr] Compiling wig v0.12.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] 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] 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/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-indexes.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/import-indexes.rs:40:17 [INFO] [stderr] | [INFO] [stderr] 40 | 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-indexes.rs:41:18 [INFO] [stderr] | [INFO] [stderr] 41 | 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 `Func` [INFO] [stderr] --> tests/import-indexes.rs:44:9 [INFO] [stderr] | [INFO] [stderr] 44 | 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-indexes.rs:46:13 [INFO] [stderr] | [INFO] [stderr] 46 | 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-indexes.rs:46:51 [INFO] [stderr] | [INFO] [stderr] 46 | 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 `Func` [INFO] [stderr] --> tests/import-indexes.rs:50:9 [INFO] [stderr] | [INFO] [stderr] 50 | 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-indexes.rs:52:13 [INFO] [stderr] | [INFO] [stderr] 52 | FuncType::new(Box::new([]), Box::new([ValType::F32])), [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-indexes.rs:52:51 [INFO] [stderr] | [INFO] [stderr] 52 | FuncType::new(Box::new([]), Box::new([ValType::F32])), [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-indexes.rs:57:20 [INFO] [stderr] | [INFO] [stderr] 57 | let instance = Instance::new(&module, &imports)?; [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] --> tests/import-indexes.rs:63:9 [INFO] [stderr] | [INFO] [stderr] 63 | Val::I32(n) => assert_eq!(n, 3), [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `Callable` in this scope [INFO] [stderr] --> tests/import-indexes.rs:20:10 [INFO] [stderr] | [INFO] [stderr] 20 | impl Callable for Ret1 { [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-indexes.rs:21:34 [INFO] [stderr] | [INFO] [stderr] 21 | 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-indexes.rs:21:55 [INFO] [stderr] | [INFO] [stderr] 21 | 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-indexes.rs:21:75 [INFO] [stderr] | [INFO] [stderr] 21 | 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-indexes.rs:31:10 [INFO] [stderr] | [INFO] [stderr] 31 | impl Callable for Ret2 { [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-indexes.rs:32:34 [INFO] [stderr] | [INFO] [stderr] 32 | 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-indexes.rs:32:55 [INFO] [stderr] | [INFO] [stderr] 32 | 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: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Trap` in this scope [INFO] [stderr] --> tests/import-indexes.rs:32:75 [INFO] [stderr] | [INFO] [stderr] 32 | 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] 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 19 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[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> examples/memory.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [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[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> examples/memory.rs:65:17 [INFO] [stderr] | [INFO] [stderr] 65 | 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/memory.rs:87:18 [INFO] [stderr] | [INFO] [stderr] 87 | 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] --> examples/memory.rs:91:20 [INFO] [stderr] | [INFO] [stderr] 91 | 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 `MemoryType` [INFO] [stderr] --> examples/memory.rs:148:22 [INFO] [stderr] | [INFO] [stderr] 148 | let memorytype = MemoryType::new(Limits::new(5, Some(5))); [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `MemoryType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Limits` [INFO] [stderr] --> examples/memory.rs:148:38 [INFO] [stderr] | [INFO] [stderr] 148 | let memorytype = MemoryType::new(Limits::new(5, Some(5))); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Limits` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Memory` [INFO] [stderr] --> examples/memory.rs:149:19 [INFO] [stderr] | [INFO] [stderr] 149 | let memory2 = Memory::new(&store, memorytype); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Memory` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Extern` in this scope [INFO] [stderr] --> examples/memory.rs:6:33 [INFO] [stderr] | [INFO] [stderr] 6 | fn get_export_memory(exports: &[Extern], i: usize) -> Result { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a trait with a similar name exists [INFO] [stderr] | [INFO] [stderr] 6 | fn get_export_memory(exports: &[Extend], i: usize) -> Result { [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::Extern; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Memory` in this scope [INFO] [stderr] --> examples/memory.rs:6:62 [INFO] [stderr] | [INFO] [stderr] 6 | fn get_export_memory(exports: &[Extern], i: usize) -> Result { [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::Memory; [INFO] [stderr] | [INFO] [stderr] 3 | use wasmtime_environ::wasm::Memory; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Extern` in this scope [INFO] [stderr] --> examples/memory.rs:16:31 [INFO] [stderr] | [INFO] [stderr] 16 | fn get_export_func(exports: &[Extern], i: usize) -> Result { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: a trait with a similar name exists [INFO] [stderr] | [INFO] [stderr] 16 | fn get_export_func(exports: &[Extend], i: usize) -> Result { [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::Extern; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Func` in this scope [INFO] [stderr] --> examples/memory.rs:16:60 [INFO] [stderr] | [INFO] [stderr] 16 | fn get_export_func(exports: &[Extern], i: usize) -> Result { [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::Func; [INFO] [stderr] | [INFO] [stderr] [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[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[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: 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[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] --> 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: 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/externals.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 `GlobalType` [INFO] [stderr] --> tests/externals.rs:5:14 [INFO] [stderr] | [INFO] [stderr] 5 | let ty = GlobalType::new(ValType::I32, Mutability::Var); [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/externals.rs:5:30 [INFO] [stderr] | [INFO] [stderr] 5 | let ty = 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/externals.rs:5:44 [INFO] [stderr] | [INFO] [stderr] 5 | let ty = 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 `Global` [INFO] [stderr] --> tests/externals.rs:6:13 [INFO] [stderr] | [INFO] [stderr] 6 | assert!(Global::new(&Store::default(), ty.clone(), Val::I64(0)).is_err()); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/externals.rs:6:26 [INFO] [stderr] | [INFO] [stderr] 6 | assert!(Global::new(&Store::default(), ty.clone(), Val::I64(0)).is_err()); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/externals.rs:6:56 [INFO] [stderr] | [INFO] [stderr] 6 | assert!(Global::new(&Store::default(), ty.clone(), Val::I64(0)).is_err()); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Global` [INFO] [stderr] --> tests/externals.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | assert!(Global::new(&Store::default(), ty.clone(), Val::F32(0)).is_err()); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/externals.rs:7:26 [INFO] [stderr] | [INFO] [stderr] 7 | assert!(Global::new(&Store::default(), ty.clone(), Val::F32(0)).is_err()); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/externals.rs:7:56 [INFO] [stderr] | [INFO] [stderr] 7 | assert!(Global::new(&Store::default(), ty.clone(), Val::F32(0)).is_err()); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Global` [INFO] [stderr] --> tests/externals.rs:8:13 [INFO] [stderr] | [INFO] [stderr] 8 | assert!(Global::new(&Store::default(), ty.clone(), Val::F64(0)).is_err()); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/externals.rs:8:26 [INFO] [stderr] | [INFO] [stderr] 8 | assert!(Global::new(&Store::default(), ty.clone(), Val::F64(0)).is_err()); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/externals.rs:8:56 [INFO] [stderr] | [INFO] [stderr] 8 | assert!(Global::new(&Store::default(), ty.clone(), Val::F64(0)).is_err()); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GlobalType` [INFO] [stderr] --> tests/externals.rs:10:14 [INFO] [stderr] | [INFO] [stderr] 10 | let ty = 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/externals.rs:10:30 [INFO] [stderr] | [INFO] [stderr] 10 | let ty = 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/externals.rs:10:44 [INFO] [stderr] | [INFO] [stderr] 10 | let ty = 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/externals.rs:11:13 [INFO] [stderr] | [INFO] [stderr] 11 | let g = Global::new(&Store::default(), ty.clone(), Val::I32(0)).unwrap(); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/externals.rs:11:26 [INFO] [stderr] | [INFO] [stderr] 11 | let g = Global::new(&Store::default(), ty.clone(), Val::I32(0)).unwrap(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/externals.rs:11:56 [INFO] [stderr] | [INFO] [stderr] 11 | let g = Global::new(&Store::default(), ty.clone(), Val::I32(0)).unwrap(); [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] --> tests/externals.rs:12:19 [INFO] [stderr] | [INFO] [stderr] 12 | assert!(g.set(Val::I32(1)).is_err()); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `GlobalType` [INFO] [stderr] --> tests/externals.rs:14:14 [INFO] [stderr] | [INFO] [stderr] 14 | let ty = GlobalType::new(ValType::I32, Mutability::Var); [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/externals.rs:14:30 [INFO] [stderr] | [INFO] [stderr] 14 | let ty = 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/externals.rs:14:44 [INFO] [stderr] | [INFO] [stderr] 14 | let ty = 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 `Global` [INFO] [stderr] --> tests/externals.rs:15:13 [INFO] [stderr] | [INFO] [stderr] 15 | let g = Global::new(&Store::default(), ty.clone(), Val::I32(0)).unwrap(); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Global` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/externals.rs:15:26 [INFO] [stderr] | [INFO] [stderr] 15 | let g = Global::new(&Store::default(), ty.clone(), Val::I32(0)).unwrap(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/externals.rs:15:56 [INFO] [stderr] | [INFO] [stderr] 15 | let g = Global::new(&Store::default(), ty.clone(), Val::I32(0)).unwrap(); [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] --> tests/externals.rs:16:19 [INFO] [stderr] | [INFO] [stderr] 16 | assert!(g.set(Val::I64(0)).is_err()); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TableType` [INFO] [stderr] --> tests/externals.rs:22:14 [INFO] [stderr] | [INFO] [stderr] 22 | let ty = TableType::new(ValType::I32, Limits::new(0, Some(1))); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `TableType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/externals.rs:22:29 [INFO] [stderr] | [INFO] [stderr] 22 | let ty = TableType::new(ValType::I32, Limits::new(0, Some(1))); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Limits` [INFO] [stderr] --> tests/externals.rs:22:43 [INFO] [stderr] | [INFO] [stderr] 22 | let ty = TableType::new(ValType::I32, Limits::new(0, Some(1))); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Limits` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Table` [INFO] [stderr] --> tests/externals.rs:23:13 [INFO] [stderr] | [INFO] [stderr] 23 | assert!(Table::new(&Store::default(), ty.clone(), Val::I32(0)).is_err()); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Table` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/externals.rs:23:25 [INFO] [stderr] | [INFO] [stderr] 23 | assert!(Table::new(&Store::default(), ty.clone(), Val::I32(0)).is_err()); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/externals.rs:23:55 [INFO] [stderr] | [INFO] [stderr] 23 | assert!(Table::new(&Store::default(), ty.clone(), Val::I32(0)).is_err()); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TableType` [INFO] [stderr] --> tests/externals.rs:26:14 [INFO] [stderr] | [INFO] [stderr] 26 | let ty = TableType::new(ValType::FuncRef, Limits::new(0, Some(1))); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `TableType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/externals.rs:26:29 [INFO] [stderr] | [INFO] [stderr] 26 | let ty = TableType::new(ValType::FuncRef, Limits::new(0, Some(1))); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Limits` [INFO] [stderr] --> tests/externals.rs:26:47 [INFO] [stderr] | [INFO] [stderr] 26 | let ty = TableType::new(ValType::FuncRef, Limits::new(0, Some(1))); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Limits` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Table` [INFO] [stderr] --> tests/externals.rs:27:13 [INFO] [stderr] | [INFO] [stderr] 27 | assert!(Table::new(&Store::default(), ty.clone(), Val::I32(0)).is_err()); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Table` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/externals.rs:27:25 [INFO] [stderr] | [INFO] [stderr] 27 | assert!(Table::new(&Store::default(), ty.clone(), Val::I32(0)).is_err()); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/externals.rs:27:55 [INFO] [stderr] | [INFO] [stderr] 27 | assert!(Table::new(&Store::default(), ty.clone(), Val::I32(0)).is_err()); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TableType` [INFO] [stderr] --> tests/externals.rs:30:14 [INFO] [stderr] | [INFO] [stderr] 30 | let ty = TableType::new(ValType::FuncRef, Limits::new(0, Some(1))); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `TableType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/externals.rs:30:29 [INFO] [stderr] | [INFO] [stderr] 30 | let ty = TableType::new(ValType::FuncRef, Limits::new(0, Some(1))); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Limits` [INFO] [stderr] --> tests/externals.rs:30:47 [INFO] [stderr] | [INFO] [stderr] 30 | let ty = TableType::new(ValType::FuncRef, Limits::new(0, Some(1))); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Limits` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Table` [INFO] [stderr] --> tests/externals.rs:31:13 [INFO] [stderr] | [INFO] [stderr] 31 | let t = Table::new(&Store::default(), ty.clone(), Val::AnyRef(AnyRef::Null)).unwrap(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Table` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/externals.rs:31:25 [INFO] [stderr] | [INFO] [stderr] 31 | let t = Table::new(&Store::default(), ty.clone(), Val::AnyRef(AnyRef::Null)).unwrap(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/externals.rs:31:55 [INFO] [stderr] | [INFO] [stderr] 31 | let t = Table::new(&Store::default(), ty.clone(), Val::AnyRef(AnyRef::Null)).unwrap(); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `AnyRef` [INFO] [stderr] --> tests/externals.rs:31:67 [INFO] [stderr] | [INFO] [stderr] 31 | let t = Table::new(&Store::default(), ty.clone(), Val::AnyRef(AnyRef::Null)).unwrap(); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `AnyRef` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TableType` [INFO] [stderr] --> tests/externals.rs:36:14 [INFO] [stderr] | [INFO] [stderr] 36 | let ty = TableType::new(ValType::FuncRef, Limits::new(1, Some(1))); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `TableType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/externals.rs:36:29 [INFO] [stderr] | [INFO] [stderr] 36 | let ty = TableType::new(ValType::FuncRef, Limits::new(1, Some(1))); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Limits` [INFO] [stderr] --> tests/externals.rs:36:47 [INFO] [stderr] | [INFO] [stderr] 36 | let ty = TableType::new(ValType::FuncRef, Limits::new(1, Some(1))); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Limits` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Table` [INFO] [stderr] --> tests/externals.rs:37:13 [INFO] [stderr] | [INFO] [stderr] 37 | let t = Table::new(&Store::default(), ty.clone(), Val::AnyRef(AnyRef::Null)).unwrap(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Table` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/externals.rs:37:25 [INFO] [stderr] | [INFO] [stderr] 37 | let t = Table::new(&Store::default(), ty.clone(), Val::AnyRef(AnyRef::Null)).unwrap(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/externals.rs:37:55 [INFO] [stderr] | [INFO] [stderr] 37 | let t = Table::new(&Store::default(), ty.clone(), Val::AnyRef(AnyRef::Null)).unwrap(); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `AnyRef` [INFO] [stderr] --> tests/externals.rs:37:67 [INFO] [stderr] | [INFO] [stderr] 37 | let t = Table::new(&Store::default(), ty.clone(), Val::AnyRef(AnyRef::Null)).unwrap(); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `AnyRef` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/externals.rs:38:22 [INFO] [stderr] | [INFO] [stderr] 38 | assert!(t.set(0, Val::I32(0)).is_err()); [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] --> tests/externals.rs:39:22 [INFO] [stderr] | [INFO] [stderr] 39 | assert!(t.set(0, Val::AnyRef(AnyRef::Null)).is_ok()); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `AnyRef` [INFO] [stderr] --> tests/externals.rs:39:34 [INFO] [stderr] | [INFO] [stderr] 39 | assert!(t.set(0, Val::AnyRef(AnyRef::Null)).is_ok()); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `AnyRef` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/externals.rs:40:22 [INFO] [stderr] | [INFO] [stderr] 40 | assert!(t.set(1, Val::AnyRef(AnyRef::Null)).is_err()); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `AnyRef` [INFO] [stderr] --> tests/externals.rs:40:34 [INFO] [stderr] | [INFO] [stderr] 40 | assert!(t.set(1, Val::AnyRef(AnyRef::Null)).is_err()); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `AnyRef` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TableType` [INFO] [stderr] --> tests/externals.rs:43:14 [INFO] [stderr] | [INFO] [stderr] 43 | let ty = TableType::new(ValType::FuncRef, Limits::new(1, Some(1))); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `TableType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/externals.rs:43:29 [INFO] [stderr] | [INFO] [stderr] 43 | let ty = TableType::new(ValType::FuncRef, Limits::new(1, Some(1))); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Limits` [INFO] [stderr] --> tests/externals.rs:43:47 [INFO] [stderr] | [INFO] [stderr] 43 | let ty = TableType::new(ValType::FuncRef, Limits::new(1, Some(1))); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Limits` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Table` [INFO] [stderr] --> tests/externals.rs:44:13 [INFO] [stderr] | [INFO] [stderr] 44 | let t = Table::new(&Store::default(), ty.clone(), Val::AnyRef(AnyRef::Null)).unwrap(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Table` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/externals.rs:44:25 [INFO] [stderr] | [INFO] [stderr] 44 | let t = Table::new(&Store::default(), ty.clone(), Val::AnyRef(AnyRef::Null)).unwrap(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/externals.rs:44:55 [INFO] [stderr] | [INFO] [stderr] 44 | let t = Table::new(&Store::default(), ty.clone(), Val::AnyRef(AnyRef::Null)).unwrap(); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `AnyRef` [INFO] [stderr] --> tests/externals.rs:44:67 [INFO] [stderr] | [INFO] [stderr] 44 | let t = Table::new(&Store::default(), ty.clone(), Val::AnyRef(AnyRef::Null)).unwrap(); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `AnyRef` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/externals.rs:45:23 [INFO] [stderr] | [INFO] [stderr] 45 | assert!(t.grow(0, Val::AnyRef(AnyRef::Null)).is_ok()); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `AnyRef` [INFO] [stderr] --> tests/externals.rs:45:35 [INFO] [stderr] | [INFO] [stderr] 45 | assert!(t.grow(0, Val::AnyRef(AnyRef::Null)).is_ok()); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `AnyRef` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/externals.rs:46:23 [INFO] [stderr] | [INFO] [stderr] 46 | assert!(t.grow(1, Val::AnyRef(AnyRef::Null)).is_err()); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `AnyRef` [INFO] [stderr] --> tests/externals.rs:46:35 [INFO] [stderr] | [INFO] [stderr] 46 | assert!(t.grow(1, Val::AnyRef(AnyRef::Null)).is_err()); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `AnyRef` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `TableType` [INFO] [stderr] --> tests/externals.rs:50:14 [INFO] [stderr] | [INFO] [stderr] 50 | let ty = TableType::new(ValType::FuncRef, Limits::new(1, Some(2))); [INFO] [stderr] | ^^^^^^^^^ use of undeclared type or module `TableType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `ValType` [INFO] [stderr] --> tests/externals.rs:50:29 [INFO] [stderr] | [INFO] [stderr] 50 | let ty = TableType::new(ValType::FuncRef, Limits::new(1, Some(2))); [INFO] [stderr] | ^^^^^^^ use of undeclared type or module `ValType` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Limits` [INFO] [stderr] --> tests/externals.rs:50:47 [INFO] [stderr] | [INFO] [stderr] 50 | let ty = TableType::new(ValType::FuncRef, Limits::new(1, Some(2))); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Limits` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Table` [INFO] [stderr] --> tests/externals.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | let t = Table::new(&Store::default(), ty.clone(), Val::AnyRef(AnyRef::Null)).unwrap(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Table` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/externals.rs:51:25 [INFO] [stderr] | [INFO] [stderr] 51 | let t = Table::new(&Store::default(), ty.clone(), Val::AnyRef(AnyRef::Null)).unwrap(); [INFO] [stderr] | ^^^^^ use of undeclared type or module `Store` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/externals.rs:51:55 [INFO] [stderr] | [INFO] [stderr] 51 | let t = Table::new(&Store::default(), ty.clone(), Val::AnyRef(AnyRef::Null)).unwrap(); [INFO] [stderr] | ^^^ use of undeclared type or module `Val` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `AnyRef` [INFO] [stderr] --> tests/externals.rs:51:67 [INFO] [stderr] | [INFO] [stderr] 51 | let t = Table::new(&Store::default(), ty.clone(), Val::AnyRef(AnyRef::Null)).unwrap(); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `AnyRef` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Val` [INFO] [stderr] --> tests/externals.rs:52:23 [INFO] [stderr] | [INFO] [stderr] 52 | assert!(t.grow(1, Val::I32(0)).is_err()); [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[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[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[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 `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[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[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] 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/traps.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use wasmtime::*; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [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[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] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] error: aborting due to 77 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: 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: 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 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[E0433]: failed to resolve: use of undeclared type or module `Trap` [INFO] [stderr] --> tests/traps.rs:12:17 [INFO] [stderr] | [INFO] [stderr] 12 | Err(Trap::new("test 123")) [INFO] [stderr] | ^^^^ use of undeclared type or module `Trap` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/traps.rs:16:17 [INFO] [stderr] | [INFO] [stderr] 16 | 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/traps.rs:24:18 [INFO] [stderr] | [INFO] [stderr] 24 | 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 `FuncType` [INFO] [stderr] --> tests/traps.rs:25:22 [INFO] [stderr] | [INFO] [stderr] 25 | let hello_type = 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 `Func` [INFO] [stderr] --> tests/traps.rs:26:22 [INFO] [stderr] | [INFO] [stderr] 26 | let hello_func = Func::new(&store, hello_type, Rc::new(HelloCallback)); [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] --> tests/traps.rs:28:20 [INFO] [stderr] | [INFO] [stderr] 28 | let instance = Instance::new(&module, &[hello_func.into()])?; [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/traps.rs:42:17 [INFO] [stderr] | [INFO] [stderr] 42 | 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/traps.rs:50:18 [INFO] [stderr] | [INFO] [stderr] 50 | 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] --> tests/traps.rs:51:20 [INFO] [stderr] | [INFO] [stderr] 51 | 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 `Trap` [INFO] [stderr] --> tests/traps.rs:81:17 [INFO] [stderr] | [INFO] [stderr] 81 | Err(Trap::new("cb throw")) [INFO] [stderr] | ^^^^ use of undeclared type or module `Trap` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/traps.rs:85:17 [INFO] [stderr] | [INFO] [stderr] 85 | 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 `FuncType` [INFO] [stderr] --> tests/traps.rs:94:19 [INFO] [stderr] | [INFO] [stderr] 94 | let fn_type = 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 `Func` [INFO] [stderr] --> tests/traps.rs:95:19 [INFO] [stderr] | [INFO] [stderr] 95 | let fn_func = Func::new(&store, fn_type, Rc::new(ThrowCallback)); [INFO] [stderr] | ^^^^ use of undeclared type or module `Func` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Module` [INFO] [stderr] --> tests/traps.rs:97:18 [INFO] [stderr] | [INFO] [stderr] 97 | 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] --> tests/traps.rs:98:20 [INFO] [stderr] | [INFO] [stderr] 98 | let instance = Instance::new(&module, &[fn_func.into()])?; [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/traps.rs:118:17 [INFO] [stderr] | [INFO] [stderr] 118 | 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/traps.rs:125:18 [INFO] [stderr] | [INFO] [stderr] 125 | 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] --> tests/traps.rs:126:20 [INFO] [stderr] | [INFO] [stderr] 126 | 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 `Store` [INFO] [stderr] --> tests/traps.rs:147:17 [INFO] [stderr] | [INFO] [stderr] 147 | 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/traps.rs:157:18 [INFO] [stderr] | [INFO] [stderr] 157 | 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] --> tests/traps.rs:158:20 [INFO] [stderr] | [INFO] [stderr] 158 | let instance = Instance::new(&module, &[])?; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [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 `Store` [INFO] [stderr] --> tests/traps.rs:180:17 [INFO] [stderr] | [INFO] [stderr] 180 | 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/traps.rs:190:18 [INFO] [stderr] | [INFO] [stderr] 190 | let module = Module::new(&store, wat)?; [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Module` [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 `Instance` [INFO] [stderr] --> tests/traps.rs:191:20 [INFO] [stderr] | [INFO] [stderr] 191 | 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 `Module` [INFO] [stderr] --> tests/traps.rs:201:18 [INFO] [stderr] | [INFO] [stderr] 201 | 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] --> tests/traps.rs:202:20 [INFO] [stderr] | [INFO] [stderr] 202 | let instance = Instance::new(&module, &[bar])?; [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[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[E0432]: unresolved import `wasmtime` [INFO] [stderr] --> tests/func.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use wasmtime::{Callable, Func, FuncType, Instance, Module, Store, Trap, Val, ValType}; [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `wasmtime` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Trap` [INFO] [stderr] --> tests/traps.rs:230:17 [INFO] [stderr] | [INFO] [stderr] 230 | Err(Trap::new("user trap")) [INFO] [stderr] | ^^^^ use of undeclared type or module `Trap` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/traps.rs:234:17 [INFO] [stderr] | [INFO] [stderr] 234 | 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/traps.rs:244:18 [INFO] [stderr] | [INFO] [stderr] 244 | let module = Module::new(&store, &binary)?; [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] --> tests/traps.rs:245:15 [INFO] [stderr] | [INFO] [stderr] 245 | let sig = 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 `Func` [INFO] [stderr] --> tests/traps.rs:246:16 [INFO] [stderr] | [INFO] [stderr] 246 | let func = Func::new(&store, sig, Rc::new(ReturnTrap)); [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] --> tests/traps.rs:247:15 [INFO] [stderr] | [INFO] [stderr] 247 | let err = Instance::new(&module, &[func.into()]).err().unwrap(); [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] --> 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: aborting due to previous error [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] For more information about this error, try `rustc --explain E0432`. [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[E0433]: failed to resolve: use of undeclared type or module `Store` [INFO] [stderr] --> tests/traps.rs:262:17 [INFO] [stderr] | [INFO] [stderr] 262 | 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/traps.rs:274:18 [INFO] [stderr] | [INFO] [stderr] 274 | let module = Module::new(&store, &binary)?; [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] --> tests/traps.rs:275:15 [INFO] [stderr] | [INFO] [stderr] 275 | let sig = 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 `Func` [INFO] [stderr] --> tests/traps.rs:276:16 [INFO] [stderr] | [INFO] [stderr] 276 | let func = Func::new(&store, sig, Rc::new(Panic)); [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] --> tests/traps.rs:277:20 [INFO] [stderr] | [INFO] [stderr] 277 | let instance = Instance::new( [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Func` [INFO] [stderr] --> tests/traps.rs:281:13 [INFO] [stderr] | [INFO] [stderr] 281 | Func::wrap0(&store, || panic!("this is another panic")).into(), [INFO] [stderr] | ^^^^ use of undeclared type or module `Func` [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 `Store` [INFO] [stderr] --> tests/traps.rs:313:17 [INFO] [stderr] | [INFO] [stderr] 313 | 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/traps.rs:323:18 [INFO] [stderr] | [INFO] [stderr] 323 | let module = Module::new(&store, &binary)?; [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] --> tests/traps.rs:324:15 [INFO] [stderr] | [INFO] [stderr] 324 | let sig = 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 `Func` [INFO] [stderr] --> tests/traps.rs:325:16 [INFO] [stderr] | [INFO] [stderr] 325 | let func = Func::new(&store, sig, Rc::new(Panic)); [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] --> tests/traps.rs:327:14 [INFO] [stderr] | [INFO] [stderr] 327 | drop(Instance::new(&module, &[func.into()])); [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Func` [INFO] [stderr] --> tests/traps.rs:332:16 [INFO] [stderr] | [INFO] [stderr] 332 | let func = Func::wrap0(&store, || panic!("this is another panic")); [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] --> tests/traps.rs:334:14 [INFO] [stderr] | [INFO] [stderr] 334 | drop(Instance::new(&module, &[func.into()])); [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/traps.rs:346:17 [INFO] [stderr] | [INFO] [stderr] 346 | 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/traps.rs:355:18 [INFO] [stderr] | [INFO] [stderr] 355 | let module = Module::new(&store, &binary)?; [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/traps.rs:356:20 [INFO] [stderr] | [INFO] [stderr] 356 | 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] --> tests/traps.rs:363:21 [INFO] [stderr] | [INFO] [stderr] 363 | func.call(&[Val::F32(0)]).unwrap_err().message(), [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] --> tests/traps.rs:367:21 [INFO] [stderr] | [INFO] [stderr] 367 | func.call(&[Val::I32(0), Val::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 `Val` [INFO] [stderr] --> tests/traps.rs:367:34 [INFO] [stderr] | [INFO] [stderr] 367 | func.call(&[Val::I32(0), Val::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 `Store` [INFO] [stderr] --> tests/traps.rs:377:17 [INFO] [stderr] | [INFO] [stderr] 377 | 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/traps.rs:393:18 [INFO] [stderr] | [INFO] [stderr] 393 | let module = Module::new(&store, &binary)?; [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/traps.rs:394:15 [INFO] [stderr] | [INFO] [stderr] 394 | let err = Instance::new(&module, &[]) [INFO] [stderr] | ^^^^^^^^ use of undeclared type or module `Instance` [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `Callable` in this scope [INFO] [stderr] --> tests/traps.rs:10:10 [INFO] [stderr] | [INFO] [stderr] 10 | impl Callable for HelloCallback { [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/traps.rs:11:35 [INFO] [stderr] | [INFO] [stderr] 11 | 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/traps.rs:11:57 [INFO] [stderr] | [INFO] [stderr] 11 | 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/traps.rs:11:77 [INFO] [stderr] | [INFO] [stderr] 11 | 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/traps.rs:79:10 [INFO] [stderr] | [INFO] [stderr] 79 | impl Callable for ThrowCallback { [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/traps.rs:80:35 [INFO] [stderr] | [INFO] [stderr] 80 | 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/traps.rs:80:57 [INFO] [stderr] | [INFO] [stderr] 80 | 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/traps.rs:80:77 [INFO] [stderr] | [INFO] [stderr] 80 | 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/traps.rs:228:10 [INFO] [stderr] | [INFO] [stderr] 228 | impl Callable for ReturnTrap { [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/traps.rs:229:35 [INFO] [stderr] | [INFO] [stderr] 229 | 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/traps.rs:229:57 [INFO] [stderr] | [INFO] [stderr] 229 | 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/traps.rs:229:77 [INFO] [stderr] | [INFO] [stderr] 229 | 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[E0412]: cannot find type `Trap` in this scope [INFO] [stderr] --> tests/traps.rs:248:35 [INFO] [stderr] | [INFO] [stderr] 248 | assert_eq!(err.downcast_ref::().unwrap().message(), "user 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/traps.rs:256:10 [INFO] [stderr] | [INFO] [stderr] 256 | impl Callable for Panic { [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/traps.rs:257:35 [INFO] [stderr] | [INFO] [stderr] 257 | 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/traps.rs:257:57 [INFO] [stderr] | [INFO] [stderr] 257 | 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/traps.rs:257:77 [INFO] [stderr] | [INFO] [stderr] 257 | 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/traps.rs:307:10 [INFO] [stderr] | [INFO] [stderr] 307 | impl Callable for Panic { [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/traps.rs:308:35 [INFO] [stderr] | [INFO] [stderr] 308 | 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/traps.rs:308:57 [INFO] [stderr] | [INFO] [stderr] 308 | 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/traps.rs:308:77 [INFO] [stderr] | [INFO] [stderr] 308 | 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[E0412]: cannot find type `Trap` in this scope [INFO] [stderr] --> tests/traps.rs:397:21 [INFO] [stderr] | [INFO] [stderr] 397 | .downcast::() [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 77 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 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] [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] warning: unused import: `Context` [INFO] [stderr] --> examples/memory.rs:3:28 [INFO] [stderr] | [INFO] [stderr] 3 | use anyhow::{bail, ensure, Context as _, Error}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 11 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [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" "a2dc4bb6bae998f7c70f7068f2921848cab05107e95a0065424b28dda495899a"` [INFO] running `"docker" "rm" "-f" "a2dc4bb6bae998f7c70f7068f2921848cab05107e95a0065424b28dda495899a"` [INFO] [stdout] a2dc4bb6bae998f7c70f7068f2921848cab05107e95a0065424b28dda495899a