[INFO] cloning repository https://github.com/emk/wasm-bloat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/emk/wasm-bloat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femk%2Fwasm-bloat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femk%2Fwasm-bloat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9363605c112128d886c4c13032cead62d498c335 [INFO] testing emk/wasm-bloat against master#2fd6efc32704647e64d3d646d21c4c68eae100e4 for pr-149852-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Femk%2Fwasm-bloat" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/emk/wasm-bloat [INFO] finished tweaking git repo https://github.com/emk/wasm-bloat [INFO] tweaked toml for git repo https://github.com/emk/wasm-bloat written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/emk/wasm-bloat on toolchain 2fd6efc32704647e64d3d646d21c4c68eae100e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/emk/wasm-bloat 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" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "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] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded structopt-derive v0.1.6 [INFO] [stderr] Downloaded structopt v0.1.6 [INFO] [stderr] Downloaded unicode-width v0.1.4 [INFO] [stderr] Downloaded unicode-xid v0.0.4 [INFO] [stderr] Downloaded vec_map v0.8.0 [INFO] [stderr] Downloaded synom v0.11.3 [INFO] [stderr] Downloaded quote v0.3.15 [INFO] [stderr] Downloaded syn v0.11.11 [INFO] [stderr] Downloaded termcolor v0.3.3 [INFO] [stderr] Downloaded memchr v2.0.1 [INFO] [stderr] Downloaded redox_termios v0.1.1 [INFO] [stderr] Downloaded num-integer v0.1.35 [INFO] [stderr] Downloaded failure_derive v0.1.1 [INFO] [stderr] Downloaded common_failures v0.1.0 [INFO] [stderr] Downloaded cli_test_dir v0.1.4 [INFO] [stderr] Downloaded parking_lot v0.4.8 [INFO] [stderr] Downloaded time v0.1.38 [INFO] [stderr] Downloaded cc v1.0.3 [INFO] [stderr] Downloaded regex-syntax v0.4.1 [INFO] [stderr] Downloaded log v0.4.0 [INFO] [stderr] Downloaded rand v0.3.19 [INFO] [stderr] Downloaded smallvec v0.6.0 [INFO] [stderr] Downloaded aho-corasick v0.6.4 [INFO] [stderr] Downloaded parity-wasm v0.19.0 [INFO] [stderr] Downloaded backtrace v0.3.4 [INFO] [stderr] Downloaded parking_lot_core v0.2.8 [INFO] [stderr] Downloaded num-traits v0.1.41 [INFO] [stderr] Downloaded backtrace-sys v0.1.16 [INFO] [stderr] Downloaded regex v0.2.3 [INFO] [stderr] Downloaded num v0.1.41 [INFO] [stderr] Downloaded byteorder v1.2.1 [INFO] [stderr] Downloaded fuchsia-zircon v0.3.2 [INFO] [stderr] Downloaded chrono v0.4.0 [INFO] [stderr] Downloaded rustc-demangle v0.1.5 [INFO] [stderr] Downloaded atty v0.2.6 [INFO] [stderr] Downloaded strsim v0.6.0 [INFO] [stderr] Downloaded num-iter v0.1.34 [INFO] [stderr] Downloaded thread_local v0.3.5 [INFO] [stderr] Downloaded dbghelp-sys v0.2.0 [INFO] [stderr] Downloaded cfg-if v0.1.2 [INFO] [stderr] Downloaded stable_deref_trait v1.0.0 [INFO] [stderr] Downloaded libc v0.2.34 [INFO] [stderr] Downloaded winapi v0.3.2 [INFO] [stderr] Downloaded termion v1.5.1 [INFO] [stderr] Downloaded ansi_term v0.10.2 [INFO] [stderr] Downloaded utf8-ranges v1.0.0 [INFO] [stderr] Downloaded wincolor v0.1.4 [INFO] [stderr] Downloaded synstructure v0.6.1 [INFO] [stderr] Downloaded fuchsia-zircon-sys v0.3.2 [INFO] [stderr] Downloaded env_logger v0.5.0-rc.1 [INFO] [stderr] Downloaded failure v0.1.1 [INFO] [stderr] Downloaded textwrap v0.9.0 [INFO] [stderr] Downloaded clap v2.29.0 [INFO] [stderr] Downloaded owning_ref v0.3.3 [INFO] [stderr] Downloaded redox_syscall v0.1.33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d0bad10b1c4b49d9a8e89efbe6cb369b149ff61424bad3d6f76bb036c7ea29ef [INFO] running `Command { std: "docker" "start" "-a" "d0bad10b1c4b49d9a8e89efbe6cb369b149ff61424bad3d6f76bb036c7ea29ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d0bad10b1c4b49d9a8e89efbe6cb369b149ff61424bad3d6f76bb036c7ea29ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0bad10b1c4b49d9a8e89efbe6cb369b149ff61424bad3d6f76bb036c7ea29ef", kill_on_drop: false }` [INFO] [stdout] d0bad10b1c4b49d9a8e89efbe6cb369b149ff61424bad3d6f76bb036c7ea29ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6f08b41a5bfe86a06f38679c135aa65095c2e95808b50c1f2b94ff299af4a1e5 [INFO] running `Command { std: "docker" "start" "-a" "6f08b41a5bfe86a06f38679c135aa65095c2e95808b50c1f2b94ff299af4a1e5", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.34 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling cc v1.0.3 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling num-traits v0.1.41 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling smallvec v0.6.0 [INFO] [stderr] Compiling lazy_static v1.0.0 [INFO] [stderr] Compiling stable_deref_trait v1.0.0 [INFO] [stderr] Compiling rustc-demangle v0.1.5 [INFO] [stderr] Compiling unicode-width v0.1.4 [INFO] [stderr] Compiling strsim v0.6.0 [INFO] [stderr] Compiling vec_map v0.8.0 [INFO] [stderr] Compiling bitflags v1.0.1 [INFO] [stderr] Compiling regex-syntax v0.4.1 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling log v0.4.0 [INFO] [stderr] Compiling owning_ref v0.3.3 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling textwrap v0.9.0 [INFO] [stderr] Compiling thread_local v0.3.5 [INFO] [stderr] Compiling utf8-ranges v1.0.0 [INFO] [stderr] Compiling ansi_term v0.10.2 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling rand v0.3.19 [INFO] [stderr] Compiling atty v0.2.6 [INFO] [stderr] Compiling time v0.1.38 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling byteorder v1.2.1 [INFO] [stderr] Compiling aho-corasick v0.6.4 [INFO] [stderr] Compiling clap v2.29.0 [INFO] [stderr] Compiling termcolor v0.3.3 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling num-integer v0.1.35 [INFO] [stderr] Compiling backtrace-sys v0.1.16 [INFO] [stderr] Compiling num-iter v0.1.34 [INFO] [stderr] Compiling parking_lot_core v0.2.8 [INFO] [stderr] Compiling num v0.1.41 [INFO] [stderr] Compiling chrono v0.4.0 [INFO] [stderr] Compiling regex v0.2.3 [INFO] [stderr] Compiling parking_lot v0.4.8 [INFO] [stderr] Compiling parity-wasm v0.19.0 [INFO] [stderr] Compiling synstructure v0.6.1 [INFO] [stderr] Compiling structopt-derive v0.1.6 [INFO] [stderr] Compiling failure_derive v0.1.1 [INFO] [stderr] Compiling env_logger v0.5.0-rc.1 [INFO] [stderr] Compiling structopt v0.1.6 [INFO] [stderr] Compiling backtrace v0.3.4 [INFO] [stderr] Compiling failure v0.1.1 [INFO] [stderr] Compiling common_failures v0.1.0 [INFO] [stderr] Compiling wasm-bloat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/name_section.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `iter` is never used [INFO] [stdout] --> src/index_map.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl IndexMap { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 117 | fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `name`, and `name_mut` are never used [INFO] [stdout] --> src/name_section.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 93 | impl ModuleNameSection { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 94 | /// Create a new module name section with the specified name. [INFO] [stdout] 95 | pub fn new>(name: S) -> ModuleNameSection { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn name_mut(&mut self) -> &mut String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `names_mut` is never used [INFO] [stdout] --> src/name_section.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 133 | impl FunctionNameSection { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn names_mut(&mut self) -> &mut NameMap { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `local_names` and `local_names_mut` are never used [INFO] [stdout] --> src/name_section.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 168 | impl LocalNameSection { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 169 | /// A map from function indices to a map from variables indices to names. [INFO] [stdout] 170 | pub fn local_names(&self) -> &IndexMap { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn local_names_mut(&mut self) -> &mut IndexMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, StructOpt)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Opt` is not local [INFO] [stdout] | `StructOpt` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCTOPT_FOR_Opt` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructOpt` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructOpt` may come from an old version of the `structopt_derive` crate, try updating your dependency with `cargo update -p structopt_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `StructOpt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, StructOpt)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Opt` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCTOPT_FOR_Opt` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructOpt` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructOpt` may come from an old version of the `structopt_derive` crate, try updating your dependency with `cargo update -p structopt_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `StructOpt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/index_map.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 117 | fn iter(&self) -> Iter<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.88s [INFO] running `Command { std: "docker" "inspect" "6f08b41a5bfe86a06f38679c135aa65095c2e95808b50c1f2b94ff299af4a1e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6f08b41a5bfe86a06f38679c135aa65095c2e95808b50c1f2b94ff299af4a1e5", kill_on_drop: false }` [INFO] [stdout] 6f08b41a5bfe86a06f38679c135aa65095c2e95808b50c1f2b94ff299af4a1e5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a4b98f131241e2de716ab3220e46c1e9976a1199abc74292ff1a3034e10c4648 [INFO] running `Command { std: "docker" "start" "-a" "a4b98f131241e2de716ab3220e46c1e9976a1199abc74292ff1a3034e10c4648", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling cli_test_dir v0.1.4 [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/name_section.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `iter` is never used [INFO] [stdout] --> src/index_map.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl IndexMap { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 117 | fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `name`, and `name_mut` are never used [INFO] [stdout] --> src/name_section.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 93 | impl ModuleNameSection { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 94 | /// Create a new module name section with the specified name. [INFO] [stdout] 95 | pub fn new>(name: S) -> ModuleNameSection { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn name_mut(&mut self) -> &mut String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `names_mut` is never used [INFO] [stdout] --> src/name_section.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 133 | impl FunctionNameSection { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn names_mut(&mut self) -> &mut NameMap { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `local_names` and `local_names_mut` are never used [INFO] [stdout] --> src/name_section.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 168 | impl LocalNameSection { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 169 | /// A map from function indices to a map from variables indices to names. [INFO] [stdout] 170 | pub fn local_names(&self) -> &IndexMap { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 176 | pub fn local_names_mut(&mut self) -> &mut IndexMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, StructOpt)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Opt` is not local [INFO] [stdout] | `StructOpt` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCTOPT_FOR_Opt` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructOpt` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructOpt` may come from an old version of the `structopt_derive` crate, try updating your dependency with `cargo update -p structopt_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `StructOpt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, StructOpt)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Opt` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCTOPT_FOR_Opt` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructOpt` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructOpt` may come from an old version of the `structopt_derive` crate, try updating your dependency with `cargo update -p structopt_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `StructOpt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/index_map.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 117 | fn iter(&self) -> Iter<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling wasm-bloat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/name_section.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `name` and `name_mut` are never used [INFO] [stdout] --> src/name_section.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 93 | impl ModuleNameSection { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn name(&self) -> &str { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn name_mut(&mut self) -> &mut String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `local_names` is never used [INFO] [stdout] --> src/name_section.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 168 | impl LocalNameSection { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 169 | /// A map from function indices to a map from variables indices to names. [INFO] [stdout] 170 | pub fn local_names(&self) -> &IndexMap { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, StructOpt)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Opt` is not local [INFO] [stdout] | `StructOpt` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCTOPT_FOR_Opt` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructOpt` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructOpt` may come from an old version of the `structopt_derive` crate, try updating your dependency with `cargo update -p structopt_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `StructOpt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/main.rs:26:17 [INFO] [stdout] | [INFO] [stdout] 26 | #[derive(Debug, StructOpt)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Opt` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_STRUCTOPT_FOR_Opt` [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `StructOpt` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `StructOpt` may come from an old version of the `structopt_derive` crate, try updating your dependency with `cargo update -p structopt_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `StructOpt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/index_map.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | fn iter(&self) -> Iter { [INFO] [stdout] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 117 | fn iter(&self) -> Iter<'_, T> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.75s [INFO] running `Command { std: "docker" "inspect" "a4b98f131241e2de716ab3220e46c1e9976a1199abc74292ff1a3034e10c4648", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4b98f131241e2de716ab3220e46c1e9976a1199abc74292ff1a3034e10c4648", kill_on_drop: false }` [INFO] [stdout] a4b98f131241e2de716ab3220e46c1e9976a1199abc74292ff1a3034e10c4648 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+2fd6efc32704647e64d3d646d21c4c68eae100e4" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 35f40479e671ee844449598f726f933a2b4344852989eff514e049520d69d1a4 [INFO] running `Command { std: "docker" "start" "-a" "35f40479e671ee844449598f726f933a2b4344852989eff514e049520d69d1a4", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: unused import: `std::iter` [INFO] [stdout] [INFO] [stderr] --> src/name_section.rs:1:5 [INFO] [stdout] running 17 tests [INFO] [stderr] | [INFO] [stderr] 1 | use std::iter; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: methods `name` and `name_mut` are never used [INFO] [stderr] --> src/name_section.rs:100:12 [INFO] [stderr] | [INFO] [stderr] 93 | impl ModuleNameSection { [INFO] [stderr] | ---------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 100 | pub fn name(&self) -> &str { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 105 | pub fn name_mut(&mut self) -> &mut String { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: method `local_names` is never used [INFO] [stderr] --> src/name_section.rs:170:12 [INFO] [stderr] | [INFO] [stderr] 168 | impl LocalNameSection { [INFO] [stderr] | --------------------- method in this implementation [INFO] [stderr] 169 | /// A map from function indices to a map from variables indices to names. [INFO] [stderr] 170 | pub fn local_names(&self) -> &IndexMap { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/main.rs:26:17 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug, StructOpt)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | `Opt` is not local [INFO] [stderr] | `StructOpt` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_STRUCTOPT_FOR_Opt` [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `StructOpt` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `StructOpt` may come from an old version of the `structopt_derive` crate, try updating your dependency with `cargo update -p structopt_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `StructOpt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/main.rs:26:17 [INFO] [stderr] | [INFO] [stderr] 26 | #[derive(Debug, StructOpt)] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | `Opt` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_STRUCTOPT_FOR_Opt` [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `StructOpt` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `StructOpt` may come from an old version of the `structopt_derive` crate, try updating your dependency with `cargo update -p structopt_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `StructOpt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/index_map.rs:117:13 [INFO] [stderr] | [INFO] [stderr] 117 | fn iter(&self) -> Iter { [INFO] [stderr] | ^^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 117 | fn iter(&self) -> Iter<'_, T> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `wasm-bloat` (bin "wasm-bloat" test) generated 6 warnings (run `cargo fix --bin "wasm-bloat" -p wasm-bloat --tests` to apply 2 suggestions) [INFO] [stderr] warning: method `iter` is never used [INFO] [stderr] --> src/index_map.rs:117:8 [INFO] [stderr] | [INFO] [stderr] 20 | impl IndexMap { [INFO] [stderr] | ------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 117 | fn iter(&self) -> Iter { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `name`, and `name_mut` are never used [INFO] [stderr] --> src/name_section.rs:95:12 [INFO] [stderr] | [INFO] [stderr] 93 | impl ModuleNameSection { [INFO] [stderr] | ---------------------- associated items in this implementation [INFO] [stderr] 94 | /// Create a new module name section with the specified name. [INFO] [stderr] 95 | pub fn new>(name: S) -> ModuleNameSection { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 100 | pub fn name(&self) -> &str { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 105 | pub fn name_mut(&mut self) -> &mut String { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `names_mut` is never used [INFO] [stderr] --> src/name_section.rs:140:12 [INFO] [stderr] | [INFO] [stderr] 133 | impl FunctionNameSection { [INFO] [stderr] | ------------------------ method in this implementation [INFO] [stderr] ... [INFO] [stderr] 140 | pub fn names_mut(&mut self) -> &mut NameMap { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `local_names` and `local_names_mut` are never used [INFO] [stderr] --> src/name_section.rs:170:12 [INFO] [stderr] | [INFO] [stderr] 168 | impl LocalNameSection { [INFO] [stderr] | --------------------- methods in this implementation [INFO] [stderr] 169 | /// A map from function indices to a map from variables indices to names. [INFO] [stderr] 170 | pub fn local_names(&self) -> &IndexMap { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 176 | pub fn local_names_mut(&mut self) -> &mut IndexMap { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `wasm-bloat` (bin "wasm-bloat") generated 8 warnings (4 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/wasm_bloat-2013565e5798ed15) [INFO] [stdout] test index_map::tests::clear_removes_all_values ... ok [INFO] [stdout] test index_map::tests::contains_key_returns_true_when_a_key_is_present ... ok [INFO] [stdout] test index_map::tests::default_is_empty_no_matter_how_we_look_at_it ... ok [INFO] [stdout] test index_map::tests::deserialize_requires_elements_to_be_in_order ... ok [INFO] [stdout] test index_map::tests::partial_eq_works_as_expected_in_simple_cases ... ok [INFO] [stdout] test index_map::tests::serialize_and_deserialize ... ok [INFO] [stdout] test index_map::tests::with_capacity_creates_empty_map ... ok [INFO] [stdout] test name_section::tests::serialize_and_deserialize_function_names ... ok [INFO] [stdout] test name_section::tests::serialize_and_deserialize_module_name ... ok [INFO] [stdout] test name_section::tests::serialize_and_deserialize_unparsed ... ok [INFO] [stdout] test index_map::tests::insert_behaves_like_other_maps ... ok [INFO] [stdout] test index_map::tests::iterators_are_well_behaved ... ok [INFO] [stdout] test index_map::tests::partial_eq_is_smart_about_none_values_at_the_end ... ok [INFO] [stdout] test index_map::tests::remove_behaves_like_other_maps ... ok [INFO] [stderr] Running tests/tests.rs (/opt/rustwide/target/debug/deps/tests-e8954ca3deaf6ae7) [INFO] [stdout] test index_map::tests::get_returns_elements_that_are_there_but_nothing_else ... ok [INFO] [stdout] test name_section::tests::serialize_and_deserialize_local_names ... ok [INFO] [stdout] test index_map::tests::from_iterator_builds_a_map ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test analyze_wasm_file ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "35f40479e671ee844449598f726f933a2b4344852989eff514e049520d69d1a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35f40479e671ee844449598f726f933a2b4344852989eff514e049520d69d1a4", kill_on_drop: false }` [INFO] [stdout] 35f40479e671ee844449598f726f933a2b4344852989eff514e049520d69d1a4