[INFO] fetching crate chasm-rs 0.1.0... [INFO] checking chasm-rs-0.1.0 against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] extracting crate chasm-rs 0.1.0 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate chasm-rs 0.1.0 [INFO] finished tweaking crates.io crate chasm-rs 0.1.0 [INFO] tweaked toml for crates.io crate chasm-rs 0.1.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate chasm-rs 0.1.0 on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 31 packages to latest compatible versions [INFO] [stderr] Adding logos v0.12.1 (available: v0.15.0) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.12) [INFO] [stderr] Adding wasmi v0.9.1 (available: v0.47.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d27383061f55452382ed3c82c043f97705cd9576601835dc847de3e4567349a4 [INFO] running `Command { std: "docker" "start" "-a" "d27383061f55452382ed3c82c043f97705cd9576601835dc847de3e4567349a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d27383061f55452382ed3c82c043f97705cd9576601835dc847de3e4567349a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d27383061f55452382ed3c82c043f97705cd9576601835dc847de3e4567349a4", kill_on_drop: false }` [INFO] [stdout] d27383061f55452382ed3c82c043f97705cd9576601835dc847de3e4567349a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b911fde817e53bd3747c91619c858b80cca6d106e41508485f7b850f1803be3c [INFO] running `Command { std: "docker" "start" "-a" "b911fde817e53bd3747c91619c858b80cca6d106e41508485f7b850f1803be3c", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking parity-wasm v0.42.2 [INFO] [stderr] Checking downcast-rs v1.2.1 [INFO] [stderr] Checking constant_time_eq v0.3.1 [INFO] [stderr] Checking memory_units v0.3.0 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Checking leb128 v0.2.5 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking arrayref v0.3.9 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Checking wasmi-validation v0.4.1 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking wasmi v0.9.1 [INFO] [stderr] Compiling logos-derive v0.12.1 [INFO] [stderr] Checking logos v0.12.1 [INFO] [stderr] Checking chasm-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | drop(&mut vector); [INFO] [stdout] | ^^^^^-----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Vec` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | wasm!(&mut w, (functype (vec f32) (vec))); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 45 - drop(&mut vector); [INFO] [stdout] 45 + let _ = &mut vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | drop(&mut n); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut u64` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | wasm!(&mut w, (functype (vec f32) (vec))); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 46 - drop(&mut n); [INFO] [stdout] 46 + let _ = &mut n; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | drop(&mut vector); [INFO] [stdout] | ^^^^^-----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Vec` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | wasm!(&mut w, (functype (vec f32) (vec))); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 45 - drop(&mut vector); [INFO] [stdout] 45 + let _ = &mut vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | drop(&mut n); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut u64` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | wasm!(&mut w, (functype (vec f32) (vec))); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 46 - drop(&mut n); [INFO] [stdout] 46 + let _ = &mut n; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | drop(&mut vector); [INFO] [stdout] | ^^^^^-----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Vec` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | wasm!(&mut w, (vec)); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 45 - drop(&mut vector); [INFO] [stdout] 45 + let _ = &mut vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | drop(&mut n); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut u64` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | wasm!(&mut w, (vec)); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 46 - drop(&mut n); [INFO] [stdout] 46 + let _ = &mut n; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | drop(&mut vector); [INFO] [stdout] | ^^^^^-----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Vec` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / wasm!(&mut binary, [INFO] [stdout] 87 | | (section import (vec [INFO] [stdout] 88 | | (import "env" "print" (function 0x0)) [INFO] [stdout] 89 | | (import "env" "memory" (memory 1)))) [INFO] [stdout] 90 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 45 - drop(&mut vector); [INFO] [stdout] 45 + let _ = &mut vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | drop(&mut n); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut u64` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / wasm!(&mut binary, [INFO] [stdout] 87 | | (section import (vec [INFO] [stdout] 88 | | (import "env" "print" (function 0x0)) [INFO] [stdout] 89 | | (import "env" "memory" (memory 1)))) [INFO] [stdout] 90 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 46 - drop(&mut n); [INFO] [stdout] 46 + let _ = &mut n; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | drop(&mut vector); [INFO] [stdout] | ^^^^^-----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Vec` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | wasm!(&mut binary, (section export (vec (export "main" function 0x1)))); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 45 - drop(&mut vector); [INFO] [stdout] 45 + let _ = &mut vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | drop(&mut n); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut u64` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | wasm!(&mut binary, (section export (vec (export "main" function 0x1)))); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 46 - drop(&mut n); [INFO] [stdout] 46 + let _ = &mut n; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | drop(&mut vector); [INFO] [stdout] | ^^^^^-----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Vec` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | wasm!(&mut w, (functype (vec f32) (vec))); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_references)]` on by default [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 45 - drop(&mut vector); [INFO] [stdout] 45 + let _ = &mut vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | drop(&mut n); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut u64` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | wasm!(&mut w, (functype (vec f32) (vec))); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 46 - drop(&mut n); [INFO] [stdout] 46 + let _ = &mut n; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | drop(&mut vector); [INFO] [stdout] | ^^^^^-----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Vec` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | wasm!(&mut w, (functype (vec f32) (vec))); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 45 - drop(&mut vector); [INFO] [stdout] 45 + let _ = &mut vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | drop(&mut n); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut u64` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | wasm!(&mut w, (functype (vec f32) (vec))); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 46 - drop(&mut n); [INFO] [stdout] 46 + let _ = &mut n; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | drop(&mut vector); [INFO] [stdout] | ^^^^^-----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Vec` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | wasm!(&mut w, (vec)); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 45 - drop(&mut vector); [INFO] [stdout] 45 + let _ = &mut vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | drop(&mut n); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut u64` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | wasm!(&mut w, (vec)); [INFO] [stdout] | -------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 46 - drop(&mut n); [INFO] [stdout] 46 + let _ = &mut n; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | drop(&mut vector); [INFO] [stdout] | ^^^^^-----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Vec` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / wasm!(&mut binary, [INFO] [stdout] 87 | | (section import (vec [INFO] [stdout] 88 | | (import "env" "print" (function 0x0)) [INFO] [stdout] 89 | | (import "env" "memory" (memory 1)))) [INFO] [stdout] 90 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 45 - drop(&mut vector); [INFO] [stdout] 45 + let _ = &mut vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | drop(&mut n); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut u64` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | / wasm!(&mut binary, [INFO] [stdout] 87 | | (section import (vec [INFO] [stdout] 88 | | (import "env" "print" (function 0x0)) [INFO] [stdout] 89 | | (import "env" "memory" (memory 1)))) [INFO] [stdout] 90 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 46 - drop(&mut n); [INFO] [stdout] 46 + let _ = &mut n; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | drop(&mut vector); [INFO] [stdout] | ^^^^^-----------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut Vec` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | wasm!(&mut binary, (section export (vec (export "main" function 0x1)))); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 45 - drop(&mut vector); [INFO] [stdout] 45 + let _ = &mut vector; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a reference instead of an owned value does nothing [INFO] [stdout] --> src/wasm_macro.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | drop(&mut n); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `&mut u64` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | wasm!(&mut binary, (section export (vec (export "main" function 0x1)))); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `wasm` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 46 - drop(&mut n); [INFO] [stdout] 46 + let _ = &mut n; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.46s [INFO] running `Command { std: "docker" "inspect" "b911fde817e53bd3747c91619c858b80cca6d106e41508485f7b850f1803be3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b911fde817e53bd3747c91619c858b80cca6d106e41508485f7b850f1803be3c", kill_on_drop: false }` [INFO] [stdout] b911fde817e53bd3747c91619c858b80cca6d106e41508485f7b850f1803be3c