[INFO] fetching crate chasm-rs 0.1.0... [INFO] checking chasm-rs-0.1.0 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [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 c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 32 packages to latest compatible versions [INFO] [stderr] Adding logos v0.12.1 (available: v0.15.1) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.16) [INFO] [stderr] Adding wasmi v0.9.1 (available: v0.51.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 32e50c0af7e875e10e9126a94b48dfe3e31709b43c5b8d34e9b5a15b86c12b52 [INFO] running `Command { std: "docker" "start" "-a" "32e50c0af7e875e10e9126a94b48dfe3e31709b43c5b8d34e9b5a15b86c12b52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "32e50c0af7e875e10e9126a94b48dfe3e31709b43c5b8d34e9b5a15b86c12b52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32e50c0af7e875e10e9126a94b48dfe3e31709b43c5b8d34e9b5a15b86c12b52", kill_on_drop: false }` [INFO] [stdout] 32e50c0af7e875e10e9126a94b48dfe3e31709b43c5b8d34e9b5a15b86c12b52 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b37a348beaa120c6234304c28eca6c1f68df22c9ef8ee73f53b8c9157b69e3e5 [INFO] running `Command { std: "docker" "start" "-a" "b37a348beaa120c6234304c28eca6c1f68df22c9ef8ee73f53b8c9157b69e3e5", kill_on_drop: false }` [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Checking parity-wasm v0.42.2 [INFO] [stderr] Checking memory_units v0.3.0 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling logos-derive v0.12.1 [INFO] [stderr] Checking wasmi-validation v0.4.1 [INFO] [stderr] Checking wasmi v0.9.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 4.06s [INFO] running `Command { std: "docker" "inspect" "b37a348beaa120c6234304c28eca6c1f68df22c9ef8ee73f53b8c9157b69e3e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b37a348beaa120c6234304c28eca6c1f68df22c9ef8ee73f53b8c9157b69e3e5", kill_on_drop: false }` [INFO] [stdout] b37a348beaa120c6234304c28eca6c1f68df22c9ef8ee73f53b8c9157b69e3e5