[INFO] fetching crate web-assembler 0.1.2... [INFO] testing web-assembler-0.1.2 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate web-assembler 0.1.2 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate web-assembler 0.1.2 [INFO] finished tweaking crates.io crate web-assembler 0.1.2 [INFO] tweaked toml for crates.io crate web-assembler 0.1.2 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate web-assembler 0.1.2 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate web-assembler 0.1.2 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fe731bf8dccaf300a22d5e27db6fdf70b8cfa231752209dc808df260634699d8 [INFO] running `Command { std: "docker" "start" "-a" "fe731bf8dccaf300a22d5e27db6fdf70b8cfa231752209dc808df260634699d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fe731bf8dccaf300a22d5e27db6fdf70b8cfa231752209dc808df260634699d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe731bf8dccaf300a22d5e27db6fdf70b8cfa231752209dc808df260634699d8", kill_on_drop: false }` [INFO] [stdout] fe731bf8dccaf300a22d5e27db6fdf70b8cfa231752209dc808df260634699d8 [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" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1a3a5f603432604da1aeee120b32c5fcaf85cb4234fc982411e6755434afd9f8 [INFO] running `Command { std: "docker" "start" "-a" "1a3a5f603432604da1aeee120b32c5fcaf85cb4234fc982411e6755434afd9f8", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling web-assembler v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | do_section!(0x01, self.types); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | do_section!(0x02, self.imports); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | do_section!(0x03, self.functions); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | do_section!(0x04, self.tables); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | do_section!(0x05, self.memories); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | do_section!(0x06, self.globals); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | do_section!(0x07, self.exports); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:81:26 [INFO] [stdout] | [INFO] [stdout] 81 | for index in self.start { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 81 - for index in self.start { [INFO] [stdout] 81 + while let Some(index) = self.start { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 81 - for index in self.start { [INFO] [stdout] 81 + if let Some(index) = self.start { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | do_section!(0x09, self.elements); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | do_section!(0x0a, self.codes); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | do_section!(0x0b, self.data); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/types.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | for ret in ret { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 103 - for ret in ret { [INFO] [stdout] 103 + while let Some(ret) = ret { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 103 - for ret in ret { [INFO] [stdout] 103 + if let Some(ret) = ret { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/ops.rs:320:47 [INFO] [stdout] | [INFO] [stdout] 320 | size += write_uint32(buf, ::std::mem::transmute::(*f)); [INFO] [stdout] | ---------------------------------^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/ops.rs:326:47 [INFO] [stdout] | [INFO] [stdout] 326 | size += write_uint64(buf, ::std::mem::transmute::(*f)); [INFO] [stdout] | ---------------------------------^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.96s [INFO] running `Command { std: "docker" "inspect" "1a3a5f603432604da1aeee120b32c5fcaf85cb4234fc982411e6755434afd9f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a3a5f603432604da1aeee120b32c5fcaf85cb4234fc982411e6755434afd9f8", kill_on_drop: false }` [INFO] [stdout] 1a3a5f603432604da1aeee120b32c5fcaf85cb4234fc982411e6755434afd9f8 [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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5b42cadd95d48769b2a1207c1da1fc9834c484668d32f3e42e3eebb409e443ee [INFO] running `Command { std: "docker" "start" "-a" "5b42cadd95d48769b2a1207c1da1fc9834c484668d32f3e42e3eebb409e443ee", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | do_section!(0x01, self.types); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | do_section!(0x02, self.imports); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | do_section!(0x03, self.functions); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | do_section!(0x04, self.tables); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | do_section!(0x05, self.memories); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | do_section!(0x06, self.globals); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | do_section!(0x07, self.exports); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:81:26 [INFO] [stdout] | [INFO] [stdout] 81 | for index in self.start { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 81 - for index in self.start { [INFO] [stdout] 81 + while let Some(index) = self.start { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 81 - for index in self.start { [INFO] [stdout] 81 + if let Some(index) = self.start { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | do_section!(0x09, self.elements); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling web-assembler v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | do_section!(0x0a, self.codes); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | do_section!(0x0b, self.data); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/types.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | for ret in ret { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 103 - for ret in ret { [INFO] [stdout] 103 + while let Some(ret) = ret { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 103 - for ret in ret { [INFO] [stdout] 103 + if let Some(ret) = ret { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/ops.rs:320:47 [INFO] [stdout] | [INFO] [stdout] 320 | size += write_uint32(buf, ::std::mem::transmute::(*f)); [INFO] [stdout] | ---------------------------------^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/ops.rs:326:47 [INFO] [stdout] | [INFO] [stdout] 326 | size += write_uint64(buf, ::std::mem::transmute::(*f)); [INFO] [stdout] | ---------------------------------^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> examples/simple_add.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | do_section!(0x01, self.types); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | do_section!(0x02, self.imports); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:75:9 [INFO] [stdout] | [INFO] [stdout] 75 | do_section!(0x03, self.functions); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | do_section!(0x04, self.tables); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | do_section!(0x05, self.memories); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | do_section!(0x06, self.globals); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | do_section!(0x07, self.exports); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:81:26 [INFO] [stdout] | [INFO] [stdout] 81 | for index in self.start { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 81 - for index in self.start { [INFO] [stdout] 81 + while let Some(index) = self.start { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 81 - for index in self.start { [INFO] [stdout] 81 + if let Some(index) = self.start { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 92 | do_section!(0x09, self.elements); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | do_section!(0x0a, self.codes); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/module.rs:94:9 [INFO] [stdout] | [INFO] [stdout] 94 | do_section!(0x0b, self.data); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + while let Some() = in field { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 56 - for xs in field { [INFO] [stdout] 56 + if let Some() = in field { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/types.rs:103:20 [INFO] [stdout] | [INFO] [stdout] 103 | for ret in ret { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 103 - for ret in ret { [INFO] [stdout] 103 + while let Some(ret) = ret { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 103 - for ret in ret { [INFO] [stdout] 103 + if let Some(ret) = ret { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/ops.rs:320:47 [INFO] [stdout] | [INFO] [stdout] 320 | size += write_uint32(buf, ::std::mem::transmute::(*f)); [INFO] [stdout] | ---------------------------------^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f32::to_bits` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary transmute [INFO] [stdout] --> src/ops.rs:326:47 [INFO] [stdout] | [INFO] [stdout] 326 | size += write_uint64(buf, ::std::mem::transmute::(*f)); [INFO] [stdout] | ---------------------------------^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: replace this with: `f64::to_bits` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.79s [INFO] running `Command { std: "docker" "inspect" "5b42cadd95d48769b2a1207c1da1fc9834c484668d32f3e42e3eebb409e443ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b42cadd95d48769b2a1207c1da1fc9834c484668d32f3e42e3eebb409e443ee", kill_on_drop: false }` [INFO] [stdout] 5b42cadd95d48769b2a1207c1da1fc9834c484668d32f3e42e3eebb409e443ee [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" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5ea892daf18865f52c49e9d5e253fd29328de27080d28a7e82ec84a75492d873 [INFO] running `Command { std: "docker" "start" "-a" "5ea892daf18865f52c49e9d5e253fd29328de27080d28a7e82ec84a75492d873", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/module.rs:73:9 [INFO] [stderr] | [INFO] [stderr] 73 | do_section!(0x01, self.types); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + while let Some() = in field { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + if let Some() = in field { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/module.rs:74:9 [INFO] [stderr] | [INFO] [stderr] 74 | do_section!(0x02, self.imports); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + while let Some() = in field { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + if let Some() = in field { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/module.rs:75:9 [INFO] [stderr] | [INFO] [stderr] 75 | do_section!(0x03, self.functions); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + while let Some() = in field { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + if let Some() = in field { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/module.rs:76:9 [INFO] [stderr] | [INFO] [stderr] 76 | do_section!(0x04, self.tables); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + while let Some() = in field { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + if let Some() = in field { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/module.rs:77:9 [INFO] [stderr] | [INFO] [stderr] 77 | do_section!(0x05, self.memories); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + while let Some() = in field { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + if let Some() = in field { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/module.rs:78:9 [INFO] [stderr] | [INFO] [stderr] 78 | do_section!(0x06, self.globals); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + while let Some() = in field { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + if let Some() = in field { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/module.rs:79:9 [INFO] [stderr] | [INFO] [stderr] 79 | do_section!(0x07, self.exports); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + while let Some() = in field { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + if let Some() = in field { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over an `Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/module.rs:81:26 [INFO] [stderr] | [INFO] [stderr] 81 | for index in self.start { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 81 - for index in self.start { [INFO] [stderr] 81 + while let Some(index) = self.start { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 81 - for index in self.start { [INFO] [stderr] 81 + if let Some(index) = self.start { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/module.rs:92:9 [INFO] [stderr] | [INFO] [stderr] 92 | do_section!(0x09, self.elements); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + while let Some() = in field { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + if let Some() = in field { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/module.rs:93:9 [INFO] [stderr] | [INFO] [stderr] 93 | do_section!(0x0a, self.codes); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + while let Some() = in field { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + if let Some() = in field { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/module.rs:94:9 [INFO] [stderr] | [INFO] [stderr] 94 | do_section!(0x0b, self.data); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + while let Some() = in field { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 56 - for xs in field { [INFO] [stderr] 56 + if let Some() = in field { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stderr] --> src/types.rs:103:20 [INFO] [stderr] | [INFO] [stderr] 103 | for ret in ret { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] help: to check pattern in a loop use `while let` [INFO] [stderr] | [INFO] [stderr] 103 - for ret in ret { [INFO] [stderr] 103 + while let Some(ret) = ret { [INFO] [stderr] | [INFO] [stderr] help: consider using `if let` to clear intent [INFO] [stderr] | [INFO] [stderr] 103 - for ret in ret { [INFO] [stderr] 103 + if let Some(ret) = ret { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/ops.rs:320:47 [INFO] [stderr] | [INFO] [stderr] 320 | size += write_uint32(buf, ::std::mem::transmute::(*f)); [INFO] [stderr] | ---------------------------------^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `f32::to_bits` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unnecessary_transmutes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary transmute [INFO] [stderr] --> src/ops.rs:326:47 [INFO] [stderr] | [INFO] [stderr] 326 | size += write_uint64(buf, ::std::mem::transmute::(*f)); [INFO] [stderr] | ---------------------------------^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: replace this with: `f64::to_bits` [INFO] [stderr] [INFO] [stderr] warning: `web-assembler` (lib) generated 14 warnings (run `cargo fix --lib -p web-assembler` to apply 2 suggestions) [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> examples/simple_add.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `web-assembler` (example "simple_add") generated 1 warning [INFO] [stderr] warning: `web-assembler` (lib test) generated 14 warnings (14 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/web_assembler-8dd95e1166660304) [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test util::test::test_write_varint32 ... ok [INFO] [stdout] test util::test::test_write_varint32_edge1 ... ok [INFO] [stdout] test util::test::test_write_varint32_edge4 ... ok [INFO] [stdout] test util::test::test_write_varint32_edge3 ... ok [INFO] [stdout] test util::test::test_write_varint32_edge2 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/web_assembler-eba84bc622103019) [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] Doc-tests web_assembler [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" "5ea892daf18865f52c49e9d5e253fd29328de27080d28a7e82ec84a75492d873", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ea892daf18865f52c49e9d5e253fd29328de27080d28a7e82ec84a75492d873", kill_on_drop: false }` [INFO] [stdout] 5ea892daf18865f52c49e9d5e253fd29328de27080d28a7e82ec84a75492d873