[INFO] cloning repository https://github.com/aranajhonny/private-lucet [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aranajhonny/private-lucet" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faranajhonny%2Fprivate-lucet", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faranajhonny%2Fprivate-lucet'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aa8b968d40cf998845643ce02f1a40c098b139ff [INFO] testing aranajhonny/private-lucet against 1.77.0 for beta-1.78-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faranajhonny%2Fprivate-lucet" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aranajhonny/private-lucet on toolchain 1.77.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.77.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/aranajhonny/private-lucet [INFO] removed 0 missing examples [INFO] finished tweaking git repo https://github.com/aranajhonny/private-lucet [INFO] tweaked toml for git repo https://github.com/aranajhonny/private-lucet written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/aranajhonny/private-lucet already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.77.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/wasmerio/inkwell` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ctor v0.1.10 [INFO] [stderr] Downloaded page_size v0.4.1 [INFO] [stderr] Downloaded typetag v0.1.4 [INFO] [stderr] Downloaded inventory-impl v0.1.4 [INFO] [stderr] Downloaded inventory v0.1.4 [INFO] [stderr] Downloaded llvm-sys v80.1.1 [INFO] [stderr] Downloaded cranelift-native v0.44.0 [INFO] [stderr] Downloaded wasmer-clif-fork-frontend v0.44.0 [INFO] [stderr] Downloaded cargo_toml v0.6.4 [INFO] [stderr] Downloaded cranelift-entity v0.44.0 [INFO] [stderr] Downloaded cranelift-codegen-shared v0.44.0 [INFO] [stderr] Downloaded raw-cpuid v6.1.0 [INFO] [stderr] Downloaded structopt-derive v0.3.3 [INFO] [stderr] Downloaded wabt v0.9.2 [INFO] [stderr] Downloaded generational-arena v0.2.3 [INFO] [stderr] Downloaded structopt v0.3.3 [INFO] [stderr] Downloaded cbindgen v0.9.1 [INFO] [stderr] Downloaded wabt-sys v0.7.0 [INFO] [stderr] Downloaded dynasm v0.3.2 [INFO] [stderr] Downloaded dynasmrt v0.3.1 [INFO] [stderr] Downloaded typetag-impl v0.1.4 [INFO] [stderr] Downloaded field-offset v0.1.1 [INFO] [stderr] Downloaded wasmparser v0.39.1 [INFO] [stderr] Downloaded cranelift-bforest v0.44.0 [INFO] [stderr] Downloaded cranelift-codegen-meta v0.44.0 [INFO] [stderr] Downloaded cranelift-codegen v0.44.0 [INFO] [stderr] Downloaded goblin v0.0.24 [INFO] [stderr] Downloaded erased-serde v0.3.9 [INFO] [stderr] Downloaded target-lexicon v0.8.1 [INFO] [stderr] Downloaded enum-methods v0.0.8 [INFO] [stderr] Downloaded wasmer-clif-fork-wasm v0.44.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.77.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 99f804008f709f450aeb4e264193ef23db552fa32ce41f0b6d8ee1af614be600 [INFO] running `Command { std: "docker" "start" "-a" "99f804008f709f450aeb4e264193ef23db552fa32ce41f0b6d8ee1af614be600", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "99f804008f709f450aeb4e264193ef23db552fa32ce41f0b6d8ee1af614be600", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99f804008f709f450aeb4e264193ef23db552fa32ce41f0b6d8ee1af614be600", kill_on_drop: false }` [INFO] [stdout] 99f804008f709f450aeb4e264193ef23db552fa32ce41f0b6d8ee1af614be600 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.77.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64cbcc33baaeabeeba5456e3876cfe14cee02bc818b128425f76612e5dee5321 [INFO] running `Command { std: "docker" "start" "-a" "64cbcc33baaeabeeba5456e3876cfe14cee02bc818b128425f76612e5dee5321", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.3 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling libc v0.2.65 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Compiling cc v1.0.46 [INFO] [stderr] Compiling arrayvec v0.4.11 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling nodrop v0.1.13 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling ryu v1.0.0 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling autocfg v0.1.6 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling scopeguard v1.0.0 [INFO] [stderr] Compiling smallvec v0.6.10 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Compiling cranelift-entity v0.44.0 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling arrayref v0.3.5 [INFO] [stderr] Compiling constant_time_eq v0.1.4 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling cranelift-codegen-shared v0.44.0 [INFO] [stderr] Compiling blake2b_simd v0.5.8 [INFO] [stderr] Compiling cranelift-codegen-meta v0.44.0 [INFO] [stderr] Compiling bincode v1.1.4 [INFO] [stderr] Compiling indexmap v1.3.0 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Compiling nix v0.15.0 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling lock_api v0.3.1 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling wasmparser v0.39.1 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling generic-array v0.12.3 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling page_size v0.4.1 [INFO] [stderr] Compiling errno v0.2.4 [INFO] [stderr] Compiling cranelift-bforest v0.44.0 [INFO] [stderr] Compiling hex v0.3.2 [INFO] [stderr] Compiling wasmer-runtime-core v0.9.0 (/opt/rustwide/workdir/lib/runtime-core) [INFO] [stderr] Compiling crossbeam-epoch v0.7.2 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling raw-cpuid v6.1.0 [INFO] [stderr] Compiling rayon-core v1.6.0 [INFO] [stderr] Compiling crossbeam-deque v0.7.1 [INFO] [stderr] Compiling crossbeam-queue v0.1.2 [INFO] [stderr] Compiling num_cpus v1.10.1 [INFO] [stderr] Compiling getrandom v0.1.12 [INFO] [stderr] Compiling either v1.5.2 [INFO] [stderr] Compiling rayon v1.2.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling cmake v0.1.42 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling wabt-sys v0.7.0 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling failure v0.1.5 [INFO] [stderr] Compiling unicode-width v0.1.6 [INFO] [stderr] Compiling unicode-segmentation v1.3.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling wasmer-wasi-tests v0.9.0 (/opt/rustwide/workdir/lib/wasi-tests) [INFO] [stderr] Compiling rand v0.7.2 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Compiling proc-macro-error v0.2.6 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling inventory-impl v0.1.4 [INFO] [stderr] Compiling ctor v0.1.10 [INFO] [stderr] Compiling ghost v0.1.1 [INFO] [stderr] Compiling typetag-impl v0.1.4 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling atty v0.2.13 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling structopt-derive v0.3.3 [INFO] [stderr] Compiling inventory v0.1.4 [INFO] [stderr] Compiling cranelift-codegen v0.44.0 [INFO] [stderr] Compiling structopt v0.3.3 [INFO] [stderr] Compiling serde_json v1.0.40 [INFO] [stderr] Compiling target-lexicon v0.8.1 [INFO] [stderr] Compiling serde_bytes v0.11.2 [INFO] [stderr] Compiling serde-bench v0.0.7 [INFO] [stderr] Compiling erased-serde v0.3.9 [INFO] [stderr] Compiling generational-arena v0.2.3 [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> lib/runtime-core/src/typed_func.rs:366:44 [INFO] [stdout] | [INFO] [stdout] 366 | impl< $( $x ),* > WasmTypeList for ( $( $x ),* ) [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 530 | impl_traits!([transparent] S1, A); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_traits` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 366 - impl< $( $x ),* > WasmTypeList for ( $( $x ),* ) [INFO] [stdout] 366 + impl< $( $x ),* > WasmTypeList for $x [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> lib/runtime-core/src/typed_func.rs:441:59 [INFO] [stdout] | [INFO] [stdout] 441 | impl< $( $x, )* Rets, Trap, FN > ExternalFunction<( $( $x ),* ), Rets> for FN [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 530 | impl_traits!([transparent] S1, A); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_traits` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 441 - impl< $( $x, )* Rets, Trap, FN > ExternalFunction<( $( $x ),* ), Rets> for FN [INFO] [stdout] 441 + impl< $( $x, )* Rets, Trap, FN > ExternalFunction<$x, Rets> for FN [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> lib/runtime-core/src/typed_func.rs:499:44 [INFO] [stdout] | [INFO] [stdout] 499 | impl<'a $( , $x )*, Rets> Func<'a, ( $( $x ),* ), Rets, Wasm> [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 530 | impl_traits!([transparent] S1, A); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_traits` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 499 - impl<'a $( , $x )*, Rets> Func<'a, ( $( $x ),* ), Rets, Wasm> [INFO] [stdout] 499 + impl<'a $( , $x )*, Rets> Func<'a, $x, Rets, Wasm> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling typetag v0.1.4 [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> lib/runtime-core/src/error.rs:195:50 [INFO] [stdout] | [INFO] [stdout] 195 | let expected: &FuncSig = expected.borrow(); [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `FuncSig` does not implement `Borrow`, so calling `borrow` on `&FuncSig` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> lib/runtime-core/src/instance.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | unsafe { Box::from_raw(self.vmctx) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 39 | unsafe { let _ = Box::from_raw(self.vmctx); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `LocalMemoryIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | memory_index: LocalMemoryIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | delta: Pages, [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pages(pub u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `LocalMemoryIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | memory_index: LocalMemoryIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:37:6 [INFO] [stdout] | [INFO] [stdout] 37 | ) -> Pages { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pages(pub u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `LocalMemoryIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | memory_index: LocalMemoryIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | delta: Pages, [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pages(pub u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `LocalMemoryIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | memory_index: LocalMemoryIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:66:6 [INFO] [stdout] | [INFO] [stdout] 66 | ) -> Pages { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pages(pub u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `ImportedMemoryIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:79:26 [INFO] [stdout] | [INFO] [stdout] 79 | import_memory_index: ImportedMemoryIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | delta: Pages, [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pages(pub u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `ImportedMemoryIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:101:26 [INFO] [stdout] | [INFO] [stdout] 101 | import_memory_index: ImportedMemoryIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:102:6 [INFO] [stdout] | [INFO] [stdout] 102 | ) -> Pages { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pages(pub u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `ImportedMemoryIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:114:19 [INFO] [stdout] | [INFO] [stdout] 114 | memory_index: ImportedMemoryIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | delta: Pages, [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pages(pub u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `ImportedMemoryIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:133:19 [INFO] [stdout] | [INFO] [stdout] 133 | memory_index: ImportedMemoryIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:134:6 [INFO] [stdout] | [INFO] [stdout] 134 | ) -> Pages { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pages(pub u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `LocalTableIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:147:18 [INFO] [stdout] | [INFO] [stdout] 147 | table_index: LocalTableIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `LocalTableIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:156:71 [INFO] [stdout] | [INFO] [stdout] 156 | pub unsafe extern "C" fn local_table_size(ctx: &vm::Ctx, table_index: LocalTableIndex) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wasmer-wasi v0.9.0 (/opt/rustwide/workdir/lib/wasi) [INFO] [stderr] Compiling wasmer-middleware-common v0.9.0 (/opt/rustwide/workdir/lib/middleware-common) [INFO] [stderr] Compiling wasmer-emscripten v0.9.0 (/opt/rustwide/workdir/lib/emscripten) [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> lib/emscripten/src/lib.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | { FuncSig::new(vec![], vec![Type::I32]) }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 88 - { FuncSig::new(vec![], vec![Type::I32]) }; [INFO] [stdout] 88 + FuncSig::new(vec![], vec![Type::I32]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> lib/emscripten/src/lib.rs:114:37 [INFO] [stdout] | [INFO] [stdout] 114 | pub dyn_call_v: Option>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 114 - pub dyn_call_v: Option>, [INFO] [stdout] 114 + pub dyn_call_v: Option>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> lib/emscripten/src/lib.rs:171:40 [INFO] [stdout] | [INFO] [stdout] 171 | pub stack_restore: Option>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 171 - pub stack_restore: Option>, [INFO] [stdout] 171 + pub stack_restore: Option>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> lib/emscripten/src/env/unix/mod.rs:248:21 [INFO] [stdout] | [INFO] [stdout] 248 | let mut pg = prev_guest.deref_mut(ctx.memory(0)).unwrap().get_mut(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> lib/emscripten/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | unused_mut, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> lib/emscripten/src/env/unix/mod.rs:293:17 [INFO] [stdout] | [INFO] [stdout] 293 | let mut current_guest_node = current_guest_node_ptr [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> lib/emscripten/src/syscalls/unix.rs:668:17 [INFO] [stdout] | [INFO] [stdout] 668 | let mut address_mut = unsafe { address.deref_mut(ctx.memory(0)).unwrap().get_mut() }; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> lib/wasi/src/syscalls/mod.rs:34:36 [INFO] [stdout] | [INFO] [stdout] 34 | unsafe { state::get_wasi_state(&mut *(ctx as *const Ctx as *mut Ctx)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: `#[warn(invalid_reference_casting)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> lib/wasi/src/syscalls/mod.rs:77:22 [INFO] [stdout] | [INFO] [stdout] 77 | unsafe { &mut *(bytes as *const [_] as *mut [_] as *mut [u8]) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: even for types with interior mutability, the only legal way to obtain a mutable pointer from a shared reference is through `UnsafeCell::get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> lib/wasi/src/macros.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | }}; [INFO] [stdout] | ______^ [INFO] [stdout] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stdout] 16 | | let opt: Option<_> = $expr; [INFO] [stdout] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stdout] ... | [INFO] [stdout] | [INFO] [stdout] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> lib/wasi/src/macros.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | }}; [INFO] [stdout] | ______^ [INFO] [stdout] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stdout] 16 | | let opt: Option<_> = $expr; [INFO] [stdout] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stdout] ... | [INFO] [stdout] | [INFO] [stdout] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> lib/wasi/src/macros.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | }}; [INFO] [stdout] | ______^ [INFO] [stdout] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stdout] 16 | | let opt: Option<_> = $expr; [INFO] [stdout] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stdout] ... | [INFO] [stdout] | [INFO] [stdout] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> lib/wasi/src/macros.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | }}; [INFO] [stdout] | ______^ [INFO] [stdout] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stdout] 16 | | let opt: Option<_> = $expr; [INFO] [stdout] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stdout] ... | [INFO] [stdout] | [INFO] [stdout] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> lib/wasi/src/macros.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | }}; [INFO] [stdout] | ______^ [INFO] [stdout] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stdout] 16 | | let opt: Option<_> = $expr; [INFO] [stdout] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stdout] ... | [INFO] [stdout] | [INFO] [stdout] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> lib/wasi/src/macros.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | }}; [INFO] [stdout] | ______^ [INFO] [stdout] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stdout] 16 | | let opt: Option<_> = $expr; [INFO] [stdout] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stdout] ... | [INFO] [stdout] | [INFO] [stdout] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> lib/wasi/src/macros.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | }}; [INFO] [stdout] | ______^ [INFO] [stdout] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stdout] 16 | | let opt: Option<_> = $expr; [INFO] [stdout] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stdout] ... | [INFO] [stdout] | [INFO] [stdout] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> lib/wasi/src/syscalls/mod.rs:2462:25 [INFO] [stdout] | [INFO] [stdout] 2462 | let u8_buffer = &mut *(buf as *const [_] as *mut [_] as *mut [u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: even for types with interior mutability, the only legal way to obtain a mutable pointer from a shared reference is through `UnsafeCell::get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wasmer-clif-fork-frontend v0.44.0 [INFO] [stderr] Compiling wasmer-clif-fork-wasm v0.44.0 [INFO] [stderr] Compiling cranelift-native v0.44.0 [INFO] [stderr] Compiling wasmer-clif-backend v0.9.0 (/opt/rustwide/workdir/lib/clif-backend) [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wabt v0.9.2 [INFO] [stderr] Compiling wasmer-runtime v0.9.0 (/opt/rustwide/workdir/lib/runtime) [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wasmer-middleware-common-tests v0.9.0 (/opt/rustwide/workdir/lib/middleware-common-tests) [INFO] [stderr] Compiling wasmer v0.9.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::panic` [INFO] [stdout] --> src/webassembly.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::panic; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | unused_imports, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/kwasmd.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | Listen(Listen), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/bin/kwasmd.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | dead_code, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 25 | Listen(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `socket` is never read [INFO] [stdout] --> src/bin/kwasmd.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 29 | struct Listen { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 30 | #[structopt(long = "socket")] [INFO] [stdout] 31 | socket: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Listen` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 50.57s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: cranelift-codegen-meta v0.44.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 4` [INFO] running `Command { std: "docker" "inspect" "64cbcc33baaeabeeba5456e3876cfe14cee02bc818b128425f76612e5dee5321", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64cbcc33baaeabeeba5456e3876cfe14cee02bc818b128425f76612e5dee5321", kill_on_drop: false }` [INFO] [stdout] 64cbcc33baaeabeeba5456e3876cfe14cee02bc818b128425f76612e5dee5321 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.77.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1d97747f1a94409f4718427954106755267dfffdfe6c45579b7986fdb413f68a [INFO] running `Command { std: "docker" "start" "-a" "1d97747f1a94409f4718427954106755267dfffdfe6c45579b7986fdb413f68a", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> lib/runtime-core/src/typed_func.rs:366:44 [INFO] [stdout] | [INFO] [stdout] 366 | impl< $( $x ),* > WasmTypeList for ( $( $x ),* ) [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 530 | impl_traits!([transparent] S1, A); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] = note: this warning originates in the macro `impl_traits` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 366 - impl< $( $x ),* > WasmTypeList for ( $( $x ),* ) [INFO] [stdout] 366 + impl< $( $x ),* > WasmTypeList for $x [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> lib/runtime-core/src/typed_func.rs:441:59 [INFO] [stdout] | [INFO] [stdout] 441 | impl< $( $x, )* Rets, Trap, FN > ExternalFunction<( $( $x ),* ), Rets> for FN [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 530 | impl_traits!([transparent] S1, A); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_traits` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 441 - impl< $( $x, )* Rets, Trap, FN > ExternalFunction<( $( $x ),* ), Rets> for FN [INFO] [stdout] 441 + impl< $( $x, )* Rets, Trap, FN > ExternalFunction<$x, Rets> for FN [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> lib/runtime-core/src/typed_func.rs:499:44 [INFO] [stdout] | [INFO] [stdout] 499 | impl<'a $( , $x )*, Rets> Func<'a, ( $( $x ),* ), Rets, Wasm> [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 530 | impl_traits!([transparent] S1, A); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `impl_traits` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 499 - impl<'a $( , $x )*, Rets> Func<'a, ( $( $x ),* ), Rets, Wasm> [INFO] [stdout] 499 + impl<'a $( , $x )*, Rets> Func<'a, $x, Rets, Wasm> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> lib/runtime-core/src/error.rs:195:50 [INFO] [stdout] | [INFO] [stdout] 195 | let expected: &FuncSig = expected.borrow(); [INFO] [stdout] | ^^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `FuncSig` does not implement `Borrow`, so calling `borrow` on `&FuncSig` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> lib/runtime-core/src/instance.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | unsafe { Box::from_raw(self.vmctx) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 39 | unsafe { let _ = Box::from_raw(self.vmctx); }; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `LocalMemoryIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | memory_index: LocalMemoryIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | delta: Pages, [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pages(pub u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `LocalMemoryIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:36:19 [INFO] [stdout] | [INFO] [stdout] 36 | memory_index: LocalMemoryIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:37:6 [INFO] [stdout] | [INFO] [stdout] 37 | ) -> Pages { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pages(pub u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `LocalMemoryIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:46:19 [INFO] [stdout] | [INFO] [stdout] 46 | memory_index: LocalMemoryIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 47 | delta: Pages, [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pages(pub u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `LocalMemoryIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | memory_index: LocalMemoryIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:66:6 [INFO] [stdout] | [INFO] [stdout] 66 | ) -> Pages { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pages(pub u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `ImportedMemoryIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:79:26 [INFO] [stdout] | [INFO] [stdout] 79 | import_memory_index: ImportedMemoryIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 80 | delta: Pages, [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pages(pub u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `ImportedMemoryIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:101:26 [INFO] [stdout] | [INFO] [stdout] 101 | import_memory_index: ImportedMemoryIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:102:6 [INFO] [stdout] | [INFO] [stdout] 102 | ) -> Pages { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pages(pub u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `ImportedMemoryIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:114:19 [INFO] [stdout] | [INFO] [stdout] 114 | memory_index: ImportedMemoryIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | delta: Pages, [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pages(pub u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `ImportedMemoryIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:133:19 [INFO] [stdout] | [INFO] [stdout] 133 | memory_index: ImportedMemoryIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:134:6 [INFO] [stdout] | [INFO] [stdout] 134 | ) -> Pages { [INFO] [stdout] | ^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Pages(pub u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `LocalTableIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:147:18 [INFO] [stdout] | [INFO] [stdout] 147 | table_index: LocalTableIndex, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` fn uses type `LocalTableIndex`, which is not FFI-safe [INFO] [stdout] --> lib/runtime-core/src/vmcalls.rs:156:71 [INFO] [stdout] | [INFO] [stdout] 156 | pub unsafe extern "C" fn local_table_size(ctx: &vm::Ctx, table_index: LocalTableIndex) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stdout] | [INFO] [stdout] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stdout] = note: this struct has unspecified layout [INFO] [stdout] note: the type is defined here [INFO] [stdout] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stdout] | [INFO] [stdout] 440 | pub struct $ty (u32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 468 | / define_map_index![ [INFO] [stdout] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stdout] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stdout] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stdout] 472 | | ]; [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> lib/wasi/src/syscalls/mod.rs:34:36 [INFO] [stdout] | [INFO] [stdout] 34 | unsafe { state::get_wasi_state(&mut *(ctx as *const Ctx as *mut Ctx)) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: `#[warn(invalid_reference_casting)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> lib/wasi/src/syscalls/mod.rs:77:22 [INFO] [stdout] | [INFO] [stdout] 77 | unsafe { &mut *(bytes as *const [_] as *mut [_] as *mut [u8]) }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: even for types with interior mutability, the only legal way to obtain a mutable pointer from a shared reference is through `UnsafeCell::get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> lib/wasi/src/macros.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | }}; [INFO] [stdout] | ______^ [INFO] [stdout] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stdout] 16 | | let opt: Option<_> = $expr; [INFO] [stdout] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stdout] ... | [INFO] [stdout] | [INFO] [stdout] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> lib/wasi/src/macros.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | }}; [INFO] [stdout] | ______^ [INFO] [stdout] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stdout] 16 | | let opt: Option<_> = $expr; [INFO] [stdout] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stdout] ... | [INFO] [stdout] | [INFO] [stdout] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> lib/wasi/src/macros.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | }}; [INFO] [stdout] | ______^ [INFO] [stdout] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stdout] 16 | | let opt: Option<_> = $expr; [INFO] [stdout] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stdout] ... | [INFO] [stdout] | [INFO] [stdout] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> lib/wasi/src/macros.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | }}; [INFO] [stdout] | ______^ [INFO] [stdout] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stdout] 16 | | let opt: Option<_> = $expr; [INFO] [stdout] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stdout] ... | [INFO] [stdout] | [INFO] [stdout] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> lib/wasi/src/macros.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | }}; [INFO] [stdout] | ______^ [INFO] [stdout] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stdout] 16 | | let opt: Option<_> = $expr; [INFO] [stdout] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stdout] ... | [INFO] [stdout] | [INFO] [stdout] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> lib/wasi/src/macros.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | }}; [INFO] [stdout] | ______^ [INFO] [stdout] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stdout] 16 | | let opt: Option<_> = $expr; [INFO] [stdout] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stdout] ... | [INFO] [stdout] | [INFO] [stdout] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> lib/wasi/src/macros.rs:14:6 [INFO] [stdout] | [INFO] [stdout] 14 | }}; [INFO] [stdout] | ______^ [INFO] [stdout] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stdout] 16 | | let opt: Option<_> = $expr; [INFO] [stdout] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stdout] ... | [INFO] [stdout] | [INFO] [stdout] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> lib/wasi/src/syscalls/mod.rs:2462:25 [INFO] [stdout] | [INFO] [stdout] 2462 | let u8_buffer = &mut *(buf as *const [_] as *mut [_] as *mut [u8]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: even for types with interior mutability, the only legal way to obtain a mutable pointer from a shared reference is through `UnsafeCell::get` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around block return value [INFO] [stdout] --> lib/emscripten/src/lib.rs:88:9 [INFO] [stdout] | [INFO] [stdout] 88 | { FuncSig::new(vec![], vec![Type::I32]) }; [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 88 - { FuncSig::new(vec![], vec![Type::I32]) }; [INFO] [stdout] 88 + FuncSig::new(vec![], vec![Type::I32]); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> lib/emscripten/src/lib.rs:114:37 [INFO] [stdout] | [INFO] [stdout] 114 | pub dyn_call_v: Option>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 114 - pub dyn_call_v: Option>, [INFO] [stdout] 114 + pub dyn_call_v: Option>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> lib/emscripten/src/lib.rs:171:40 [INFO] [stdout] | [INFO] [stdout] 171 | pub stack_restore: Option>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 171 - pub stack_restore: Option>, [INFO] [stdout] 171 + pub stack_restore: Option>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> lib/emscripten/src/env/unix/mod.rs:248:21 [INFO] [stdout] | [INFO] [stdout] 248 | let mut pg = prev_guest.deref_mut(ctx.memory(0)).unwrap().get_mut(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> lib/emscripten/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | unused_mut, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> lib/emscripten/src/env/unix/mod.rs:293:17 [INFO] [stdout] | [INFO] [stdout] 293 | let mut current_guest_node = current_guest_node_ptr [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> lib/emscripten/src/syscalls/unix.rs:668:17 [INFO] [stdout] | [INFO] [stdout] 668 | let mut address_mut = unsafe { address.deref_mut(ctx.memory(0)).unwrap().get_mut() }; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::panic` [INFO] [stdout] --> src/webassembly.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::panic; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | unused_imports, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wasmer v0.9.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::panic` [INFO] [stdout] --> src/webassembly.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::panic; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | unused_imports, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> examples/plugin.rs:154:39 [INFO] [stdout] | [INFO] [stdout] 154 | let entry_point = instance.func::<(i32), i32>("plugin_entrypoint").unwrap(); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 154 - let entry_point = instance.func::<(i32), i32>("plugin_entrypoint").unwrap(); [INFO] [stdout] 154 + let entry_point = instance.func::("plugin_entrypoint").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bin/kwasmd.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | Listen(Listen), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/bin/kwasmd.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | dead_code, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 25 | Listen(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `socket` is never read [INFO] [stdout] --> src/bin/kwasmd.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 29 | struct Listen { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 30 | #[structopt(long = "socket")] [INFO] [stdout] 31 | socket: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Listen` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.86s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: cranelift-codegen-meta v0.44.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 4` [INFO] running `Command { std: "docker" "inspect" "1d97747f1a94409f4718427954106755267dfffdfe6c45579b7986fdb413f68a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d97747f1a94409f4718427954106755267dfffdfe6c45579b7986fdb413f68a", kill_on_drop: false }` [INFO] [stdout] 1d97747f1a94409f4718427954106755267dfffdfe6c45579b7986fdb413f68a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.77.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d0151dced90da54450ab816c177e0b72e7cce3b3b9336dd55aa0d729e8c5258d [INFO] running `Command { std: "docker" "start" "-a" "d0151dced90da54450ab816c177e0b72e7cce3b3b9336dd55aa0d729e8c5258d", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> lib/runtime-core/src/typed_func.rs:366:44 [INFO] [stderr] | [INFO] [stderr] 366 | impl< $( $x ),* > WasmTypeList for ( $( $x ),* ) [INFO] [stderr] | ^^^^^ ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 530 | impl_traits!([transparent] S1, A); [INFO] [stderr] | --------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] = note: this warning originates in the macro `impl_traits` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 366 - impl< $( $x ),* > WasmTypeList for ( $( $x ),* ) [INFO] [stderr] 366 + impl< $( $x ),* > WasmTypeList for $x [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> lib/runtime-core/src/typed_func.rs:441:59 [INFO] [stderr] | [INFO] [stderr] 441 | impl< $( $x, )* Rets, Trap, FN > ExternalFunction<( $( $x ),* ), Rets> for FN [INFO] [stderr] | ^^^^^ ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 530 | impl_traits!([transparent] S1, A); [INFO] [stderr] | --------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `impl_traits` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 441 - impl< $( $x, )* Rets, Trap, FN > ExternalFunction<( $( $x ),* ), Rets> for FN [INFO] [stderr] 441 + impl< $( $x, )* Rets, Trap, FN > ExternalFunction<$x, Rets> for FN [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> lib/runtime-core/src/typed_func.rs:499:44 [INFO] [stderr] | [INFO] [stderr] 499 | impl<'a $( , $x )*, Rets> Func<'a, ( $( $x ),* ), Rets, Wasm> [INFO] [stderr] | ^^^^^ ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 530 | impl_traits!([transparent] S1, A); [INFO] [stderr] | --------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `impl_traits` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 499 - impl<'a $( , $x )*, Rets> Func<'a, ( $( $x ),* ), Rets, Wasm> [INFO] [stderr] 499 + impl<'a $( , $x )*, Rets> Func<'a, $x, Rets, Wasm> [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stderr] --> lib/runtime-core/src/error.rs:195:50 [INFO] [stderr] | [INFO] [stderr] 195 | let expected: &FuncSig = expected.borrow(); [INFO] [stderr] | ^^^^^^^^^ help: remove this redundant call [INFO] [stderr] | [INFO] [stderr] = note: the type `FuncSig` does not implement `Borrow`, so calling `borrow` on `&FuncSig` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stderr] --> lib/runtime-core/src/instance.rs:39:18 [INFO] [stderr] | [INFO] [stderr] 39 | unsafe { Box::from_raw(self.vmctx) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 39 | unsafe { let _ = Box::from_raw(self.vmctx); }; [INFO] [stderr] | +++++++ + [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `LocalMemoryIndex`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:17:19 [INFO] [stderr] | [INFO] [stderr] 17 | memory_index: LocalMemoryIndex, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stderr] | [INFO] [stderr] 440 | pub struct $ty (u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 468 | / define_map_index![ [INFO] [stderr] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stderr] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stderr] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stderr] 472 | | ]; [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] = note: `#[warn(improper_ctypes_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:18:12 [INFO] [stderr] | [INFO] [stderr] 18 | delta: Pages, [INFO] [stderr] | ^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct Pages(pub u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `LocalMemoryIndex`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:36:19 [INFO] [stderr] | [INFO] [stderr] 36 | memory_index: LocalMemoryIndex, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stderr] | [INFO] [stderr] 440 | pub struct $ty (u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 468 | / define_map_index![ [INFO] [stderr] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stderr] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stderr] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stderr] 472 | | ]; [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:37:6 [INFO] [stderr] | [INFO] [stderr] 37 | ) -> Pages { [INFO] [stderr] | ^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct Pages(pub u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `LocalMemoryIndex`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:46:19 [INFO] [stderr] | [INFO] [stderr] 46 | memory_index: LocalMemoryIndex, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stderr] | [INFO] [stderr] 440 | pub struct $ty (u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 468 | / define_map_index![ [INFO] [stderr] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stderr] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stderr] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stderr] 472 | | ]; [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:47:12 [INFO] [stderr] | [INFO] [stderr] 47 | delta: Pages, [INFO] [stderr] | ^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct Pages(pub u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `LocalMemoryIndex`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:65:19 [INFO] [stderr] | [INFO] [stderr] 65 | memory_index: LocalMemoryIndex, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stderr] | [INFO] [stderr] 440 | pub struct $ty (u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 468 | / define_map_index![ [INFO] [stderr] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stderr] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stderr] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stderr] 472 | | ]; [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:66:6 [INFO] [stderr] | [INFO] [stderr] 66 | ) -> Pages { [INFO] [stderr] | ^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct Pages(pub u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `ImportedMemoryIndex`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:79:26 [INFO] [stderr] | [INFO] [stderr] 79 | import_memory_index: ImportedMemoryIndex, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stderr] | [INFO] [stderr] 440 | pub struct $ty (u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 468 | / define_map_index![ [INFO] [stderr] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stderr] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stderr] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stderr] 472 | | ]; [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:80:12 [INFO] [stderr] | [INFO] [stderr] 80 | delta: Pages, [INFO] [stderr] | ^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct Pages(pub u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `ImportedMemoryIndex`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:101:26 [INFO] [stderr] | [INFO] [stderr] 101 | import_memory_index: ImportedMemoryIndex, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stderr] | [INFO] [stderr] 440 | pub struct $ty (u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 468 | / define_map_index![ [INFO] [stderr] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stderr] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stderr] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stderr] 472 | | ]; [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:102:6 [INFO] [stderr] | [INFO] [stderr] 102 | ) -> Pages { [INFO] [stderr] | ^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct Pages(pub u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `ImportedMemoryIndex`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:114:19 [INFO] [stderr] | [INFO] [stderr] 114 | memory_index: ImportedMemoryIndex, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stderr] | [INFO] [stderr] 440 | pub struct $ty (u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 468 | / define_map_index![ [INFO] [stderr] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stderr] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stderr] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stderr] 472 | | ]; [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:115:12 [INFO] [stderr] | [INFO] [stderr] 115 | delta: Pages, [INFO] [stderr] | ^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct Pages(pub u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `ImportedMemoryIndex`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:133:19 [INFO] [stderr] | [INFO] [stderr] 133 | memory_index: ImportedMemoryIndex, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stderr] | [INFO] [stderr] 440 | pub struct $ty (u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 468 | / define_map_index![ [INFO] [stderr] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stderr] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stderr] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stderr] 472 | | ]; [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `Pages`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:134:6 [INFO] [stderr] | [INFO] [stderr] 134 | ) -> Pages { [INFO] [stderr] | ^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/units.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | pub struct Pages(pub u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `LocalTableIndex`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:147:18 [INFO] [stderr] | [INFO] [stderr] 147 | table_index: LocalTableIndex, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stderr] | [INFO] [stderr] 440 | pub struct $ty (u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 468 | / define_map_index![ [INFO] [stderr] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stderr] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stderr] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stderr] 472 | | ]; [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` fn uses type `LocalTableIndex`, which is not FFI-safe [INFO] [stderr] --> lib/runtime-core/src/vmcalls.rs:156:71 [INFO] [stderr] | [INFO] [stderr] 156 | pub unsafe extern "C" fn local_table_size(ctx: &vm::Ctx, table_index: LocalTableIndex) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ not FFI-safe [INFO] [stderr] | [INFO] [stderr] = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct [INFO] [stderr] = note: this struct has unspecified layout [INFO] [stderr] note: the type is defined here [INFO] [stderr] --> lib/runtime-core/src/types.rs:440:9 [INFO] [stderr] | [INFO] [stderr] 440 | pub struct $ty (u32); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 468 | / define_map_index![ [INFO] [stderr] 469 | | FuncIndex, MemoryIndex, TableIndex, GlobalIndex, [INFO] [stderr] 470 | | | local: LocalFuncIndex, LocalMemoryIndex, LocalTableIndex, LocalGlobalIndex, [INFO] [stderr] 471 | | | imported: ImportedFuncIndex, ImportedMemoryIndex, ImportedTableIndex, ImportedGlobalIndex, [INFO] [stderr] 472 | | ]; [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] = note: this warning originates in the macro `define_map_index` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `wasmer-runtime-core` (lib) generated 23 warnings (run `cargo fix --lib -p wasmer-runtime-core` to apply 4 suggestions) [INFO] [stderr] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stderr] --> lib/wasi/src/syscalls/mod.rs:34:36 [INFO] [stderr] | [INFO] [stderr] 34 | unsafe { state::get_wasi_state(&mut *(ctx as *const Ctx as *mut Ctx)) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, visit [INFO] [stderr] = note: `#[warn(invalid_reference_casting)]` on by default [INFO] [stderr] [INFO] [stderr] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stderr] --> lib/wasi/src/syscalls/mod.rs:77:22 [INFO] [stderr] | [INFO] [stderr] 77 | unsafe { &mut *(bytes as *const [_] as *mut [_] as *mut [u8]) }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, visit [INFO] [stderr] = note: even for types with interior mutability, the only legal way to obtain a mutable pointer from a shared reference is through `UnsafeCell::get` [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> lib/wasi/src/macros.rs:14:6 [INFO] [stderr] | [INFO] [stderr] 14 | }}; [INFO] [stderr] | ______^ [INFO] [stderr] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stderr] 16 | | let opt: Option<_> = $expr; [INFO] [stderr] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stderr] ... | [INFO] [stderr] | [INFO] [stderr] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stderr] = note: `#[warn(noop_method_call)]` on by default [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> lib/wasi/src/macros.rs:14:6 [INFO] [stderr] | [INFO] [stderr] 14 | }}; [INFO] [stderr] | ______^ [INFO] [stderr] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stderr] 16 | | let opt: Option<_> = $expr; [INFO] [stderr] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stderr] ... | [INFO] [stderr] | [INFO] [stderr] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stderr] --> lib/wasi/src/macros.rs:14:6 [INFO] [stderr] | [INFO] [stderr] 14 | }}; [INFO] [stderr] | ______^ [INFO] [stderr] 15 | | ($expr:expr, $e:expr) => {{ [INFO] [stderr] 16 | | let opt: Option<_> = $expr; [INFO] [stderr] 17 | | wasi_try!(opt.ok_or($e)) [INFO] [stderr] ... | [INFO] [stderr] | [INFO] [stderr] = note: the type `Fd` does not implement `Clone`, so calling `clone` on `&Fd` copies the reference, which does not do anything and can be removed [INFO] [stderr] [INFO] [stderr] warning: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stderr] --> lib/wasi/src/syscalls/mod.rs:2462:25 [INFO] [stderr] | [INFO] [stderr] 2462 | let u8_buffer = &mut *(buf as *const [_] as *mut [_] as *mut [u8]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, visit [INFO] [stderr] = note: even for types with interior mutability, the only legal way to obtain a mutable pointer from a shared reference is through `UnsafeCell::get` [INFO] [stderr] [INFO] [stderr] warning: `wasmer-wasi` (lib) generated 10 warnings (4 duplicates) (run `cargo fix --lib -p wasmer-wasi` to apply 3 suggestions) [INFO] [stderr] warning: unnecessary braces around block return value [INFO] [stderr] --> lib/emscripten/src/lib.rs:88:9 [INFO] [stderr] | [INFO] [stderr] 88 | { FuncSig::new(vec![], vec![Type::I32]) }; [INFO] [stderr] | ^^ ^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_braces)]` on by default [INFO] [stderr] help: remove these braces [INFO] [stderr] | [INFO] [stderr] 88 - { FuncSig::new(vec![], vec![Type::I32]) }; [INFO] [stderr] 88 + FuncSig::new(vec![], vec![Type::I32]); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> lib/emscripten/src/lib.rs:114:37 [INFO] [stderr] | [INFO] [stderr] 114 | pub dyn_call_v: Option>, [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 114 - pub dyn_call_v: Option>, [INFO] [stderr] 114 + pub dyn_call_v: Option>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> lib/emscripten/src/lib.rs:171:40 [INFO] [stderr] | [INFO] [stderr] 171 | pub stack_restore: Option>, [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 171 - pub stack_restore: Option>, [INFO] [stderr] 171 + pub stack_restore: Option>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> lib/emscripten/src/env/unix/mod.rs:248:21 [INFO] [stderr] | [INFO] [stderr] 248 | let mut pg = prev_guest.deref_mut(ctx.memory(0)).unwrap().get_mut(); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> lib/emscripten/src/lib.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | unused_mut, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> lib/emscripten/src/env/unix/mod.rs:293:17 [INFO] [stderr] | [INFO] [stderr] 293 | let mut current_guest_node = current_guest_node_ptr [INFO] [stderr] | ----^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> lib/emscripten/src/syscalls/unix.rs:668:17 [INFO] [stderr] | [INFO] [stderr] 668 | let mut address_mut = unsafe { address.deref_mut(ctx.memory(0)).unwrap().get_mut() }; [INFO] [stderr] | ----^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: `wasmer-emscripten` (lib) generated 6 warnings (run `cargo fix --lib -p wasmer-emscripten` to apply 6 suggestions) [INFO] [stderr] warning: unused import: `std::panic` [INFO] [stderr] --> src/webassembly.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::panic; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | unused_imports, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `wasmer` (lib) generated 1 warning (run `cargo fix --lib -p wasmer` to apply 1 suggestion) [INFO] [stderr] warning: `wasmer` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/bin/kwasmd.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 25 | Listen(Listen), [INFO] [stderr] | ------ ^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | field in this variant [INFO] [stderr] | [INFO] [stderr] note: the lint level is defined here [INFO] [stderr] --> src/bin/kwasmd.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | dead_code, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stderr] | [INFO] [stderr] 25 | Listen(()), [INFO] [stderr] | ~~ [INFO] [stderr] [INFO] [stderr] warning: field `socket` is never read [INFO] [stderr] --> src/bin/kwasmd.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 29 | struct Listen { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] 30 | #[structopt(long = "socket")] [INFO] [stderr] 31 | socket: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Listen` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> examples/plugin.rs:154:39 [INFO] [stderr] | [INFO] [stderr] 154 | let entry_point = instance.func::<(i32), i32>("plugin_entrypoint").unwrap(); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 154 - let entry_point = instance.func::<(i32), i32>("plugin_entrypoint").unwrap(); [INFO] [stderr] 154 + let entry_point = instance.func::("plugin_entrypoint").unwrap(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `wasmer` (bin "kwasmd" test) generated 2 warnings [INFO] [stderr] warning: `wasmer` (example "plugin") generated 1 warning (run `cargo fix --example "plugin"` to apply 1 suggestion) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: cranelift-codegen-meta v0.44.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 4` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/wasmer-f6b01acb59c09e3b) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/bin/kwasmd.rs (/opt/rustwide/target/debug/deps/kwasmd-e7c96514ea2dcf4e) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/bin/wasmer.rs (/opt/rustwide/target/debug/deps/wasmer-86ded74aa658e983) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test filesystem_cache_should_work ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests wasmer [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "d0151dced90da54450ab816c177e0b72e7cce3b3b9336dd55aa0d729e8c5258d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0151dced90da54450ab816c177e0b72e7cce3b3b9336dd55aa0d729e8c5258d", kill_on_drop: false }` [INFO] [stdout] d0151dced90da54450ab816c177e0b72e7cce3b3b9336dd55aa0d729e8c5258d