[INFO] cloning repository https://github.com/portal-co/jsaw-core [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/portal-co/jsaw-core" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fportal-co%2Fjsaw-core", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fportal-co%2Fjsaw-core'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 726421a0967950748f6de9cbae5e7492173a79d7 [INFO] testing portal-co/jsaw-core/726421a0967950748f6de9cbae5e7492173a79d7 against master#d98a5da813da67eb189387b8ccfb73cf481275d8+rustflags=-Copt-level=3 for pr-138759 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fportal-co%2Fjsaw-core" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/portal-co/jsaw-core [INFO] finished tweaking git repo https://github.com/portal-co/jsaw-core [INFO] tweaked toml for git repo https://github.com/portal-co/jsaw-core written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/portal-co/jsaw-core on toolchain d98a5da813da67eb189387b8ccfb73cf481275d8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/portal-co/jsaw-core 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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/portal-co/codegen-utils.git` [INFO] [stderr] Updating git repository `https://github.com/portal-co/swibb.git` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded swc_atoms v7.0.0 [INFO] [stderr] Downloaded unicode-id-start v1.3.1 [INFO] [stderr] Downloaded portal-pc-asm-common v0.1.0 [INFO] [stderr] Downloaded swc_eq_ignore_macros v1.0.1 [INFO] [stderr] Downloaded swc_visit v2.0.1 [INFO] [stderr] Downloaded par-core v2.0.0 [INFO] [stderr] Downloaded swc_macros_common v1.0.1 [INFO] [stderr] Downloaded linearize-derive v0.1.0 [INFO] [stderr] Downloaded ast_node v3.0.3 [INFO] [stderr] Downloaded better_scoped_tls v1.0.1 [INFO] [stderr] Downloaded portal-solutions-proxy-signs v0.1.0 [INFO] [stderr] Downloaded arena-traits v0.2.3 [INFO] [stderr] Downloaded relooper v0.1.0 [INFO] [stderr] Downloaded bytes-str v0.2.7 [INFO] [stderr] Downloaded linearize v0.1.4 [INFO] [stderr] Downloaded triomphe v0.1.14 [INFO] [stderr] Downloaded swc_ecma_parser v23.0.0 [INFO] [stderr] Downloaded swc_ecma_utils v21.0.0 [INFO] [stderr] Downloaded swc_ecma_transforms_optimization v26.0.0 [INFO] [stderr] Downloaded ryu-js v1.0.2 [INFO] [stderr] Downloaded swc_common v14.0.3 [INFO] [stderr] Downloaded swc_ecma_lexer v23.0.0 [INFO] [stderr] Downloaded swc_ecma_transforms_base v25.0.0 [INFO] [stderr] Downloaded swc_ecma_visit v15.0.0 [INFO] [stderr] Downloaded swc_ecma_ast v15.0.0 [INFO] [stderr] Downloaded hstr v2.0.0 [INFO] [stderr] Downloaded string_enum v1.0.2 [INFO] [stderr] Downloaded from_variant v2.0.2 [INFO] [stderr] Downloaded no-error-type v0.1.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3adfb24a705ace1b829e796574c954701e4361156d2191360430478c880011a8 [INFO] running `Command { std: "docker" "start" "-a" "3adfb24a705ace1b829e796574c954701e4361156d2191360430478c880011a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3adfb24a705ace1b829e796574c954701e4361156d2191360430478c880011a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3adfb24a705ace1b829e796574c954701e4361156d2191360430478c880011a8", kill_on_drop: false }` [INFO] [stdout] 3adfb24a705ace1b829e796574c954701e4361156d2191360430478c880011a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 959db3f8e97cda3d9eff1333c355669914801961b9c0a2c074995dda77ff4bf0 [INFO] running `Command { std: "docker" "start" "-a" "959db3f8e97cda3d9eff1333c355669914801961b9c0a2c074995dda77ff4bf0", kill_on_drop: false }` [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling rustc-hash v2.1.1 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling unicode-id-start v1.3.1 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Compiling swc_macros_common v1.0.1 [INFO] [stderr] Compiling swc_eq_ignore_macros v1.0.1 [INFO] [stderr] Compiling better_scoped_tls v1.0.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling is-macro v0.3.7 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling par-core v2.0.0 [INFO] [stderr] Compiling ryu-js v1.0.2 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling id-arena v2.2.1 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling embedded-io v0.6.1 [INFO] [stderr] Compiling arena-traits v0.2.3 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling no-error-type v0.1.2 [INFO] [stderr] Compiling array-init v2.1.0 [INFO] [stderr] Compiling fixedbitset v0.5.7 [INFO] [stderr] Compiling fixedbitset v0.2.0 [INFO] [stderr] Compiling linearize v0.1.4 [INFO] [stderr] Compiling linearize-derive v0.1.0 [INFO] [stderr] Compiling portal-solutions-proxy-signs v0.1.0 [INFO] [stderr] Compiling petgraph v0.5.1 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Compiling petgraph v0.7.1 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling relooper v0.1.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling triomphe v0.1.14 [INFO] [stderr] Compiling swc_visit v2.0.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling hstr v2.0.0 [INFO] [stderr] Compiling bytes-str v0.2.7 [INFO] [stderr] Compiling swc_atoms v7.0.0 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling cfg-traits v0.2.3 (https://github.com/portal-co/codegen-utils.git?branch=master#e783d476) [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling ssa-traits v0.2.3 (https://github.com/portal-co/codegen-utils.git?branch=master#e783d476) [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling psm v0.1.26 [INFO] [stderr] Compiling stacker v0.1.21 [INFO] [stderr] Compiling portal-pc-asm-common v0.1.0 [INFO] [stderr] Compiling portal-jsc-common v0.8.0-pre.9 (/opt/rustwide/workdir/crates/portal-jsc-common) [INFO] [stdout] warning: unused import: `either::Either` [INFO] [stdout] --> crates/portal-jsc-common/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use either::Either; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> crates/portal-jsc-common/src/semantic.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reflect_get` should have an upper camel case name [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Reflect_get, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ReflectGet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reflect_apply` should have an upper camel case name [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Reflect_apply, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ReflectApply` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reflect_set` should have an upper camel case name [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Reflect_set, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ReflectSet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:130:36 [INFO] [stdout] | [INFO] [stdout] 130 | Native::AssertString { value, comptime } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:137:36 [INFO] [stdout] | [INFO] [stdout] 137 | Native::AssertNumber { value, comptime } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:144:38 [INFO] [stdout] | [INFO] [stdout] 144 | Native::AssertStaticFn { value, comptime } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:151:31 [INFO] [stdout] | [INFO] [stdout] 151 | Native::FastAdd { lhs, rhs } => "fast_add", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:151:36 [INFO] [stdout] | [INFO] [stdout] 151 | Native::FastAdd { lhs, rhs } => "fast_add", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:152:31 [INFO] [stdout] | [INFO] [stdout] 152 | Native::FastAnd { lhs, rhs } => "fast_and", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:152:36 [INFO] [stdout] | [INFO] [stdout] 152 | Native::FastAnd { lhs, rhs } => "fast_and", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:153:30 [INFO] [stdout] | [INFO] [stdout] 153 | Native::FastOr { lhs, rhs } => "fast_or", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:153:35 [INFO] [stdout] | [INFO] [stdout] 153 | Native::FastOr { lhs, rhs } => "fast_or", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:154:30 [INFO] [stdout] | [INFO] [stdout] 154 | Native::FastEq { lhs, rhs } => "fast_eq", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:154:35 [INFO] [stdout] | [INFO] [stdout] 154 | Native::FastEq { lhs, rhs } => "fast_eq", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:155:31 [INFO] [stdout] | [INFO] [stdout] 155 | Native::FastSub { lhs, rhs } => "fast_sub", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:155:36 [INFO] [stdout] | [INFO] [stdout] 155 | Native::FastSub { lhs, rhs } => "fast_sub", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:156:31 [INFO] [stdout] | [INFO] [stdout] 156 | Native::FastMul { lhs, rhs, imul } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:156:36 [INFO] [stdout] | [INFO] [stdout] 156 | Native::FastMul { lhs, rhs, imul } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:163:31 [INFO] [stdout] | [INFO] [stdout] 163 | Native::FastShl { lhs, rhs } => "fast_shl", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:163:36 [INFO] [stdout] | [INFO] [stdout] 163 | Native::FastShl { lhs, rhs } => "fast_shl", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ast_node v3.0.3 [INFO] [stderr] Compiling from_variant v2.0.2 [INFO] [stderr] Compiling string_enum v1.0.2 [INFO] [stderr] Compiling portal-jsc-generator v0.1.0 (/opt/rustwide/workdir/crates/portal-jsc-generator) [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling swc_common v14.0.3 [INFO] [stderr] Compiling swc_ecma_ast v15.0.0 [INFO] [stderr] Compiling swc_ecma_visit v15.0.0 [INFO] [stderr] Compiling swc_ecma_lexer v23.0.0 [INFO] [stderr] Compiling swc_ecma_utils v21.0.0 [INFO] [stderr] Compiling ssa-impls v0.2.3 (https://github.com/portal-co/codegen-utils.git?branch=master#e783d476) [INFO] [stderr] Compiling ssa-reloop v0.2.3 (https://github.com/portal-co/codegen-utils.git?branch=master#e783d476) [INFO] [stderr] Compiling portal-jsc-swc-cfg v0.8.0-pre.9 (/opt/rustwide/workdir/crates/swc-cfg) [INFO] [stdout] warning: unused variable: `pat` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:425:31 [INFO] [stdout] | [INFO] [stdout] 425 | Catch::Jump { pat, k } => Some(k), [INFO] [stdout] | ^^^ help: try ignoring the field: `pat: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:430:34 [INFO] [stdout] | [INFO] [stdout] 430 | Term::Return(expr) => vec![], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:431:33 [INFO] [stdout] | [INFO] [stdout] 431 | Term::Throw(expr) => vec![], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:434:25 [INFO] [stdout] | [INFO] [stdout] 434 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:438:36 [INFO] [stdout] | [INFO] [stdout] 438 | Term::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pat` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:455:31 [INFO] [stdout] | [INFO] [stdout] 455 | Catch::Jump { pat, k } => Some(k), [INFO] [stdout] | ^^^ help: try ignoring the field: `pat: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:460:34 [INFO] [stdout] | [INFO] [stdout] 460 | Term::Return(expr) => vec![], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:461:33 [INFO] [stdout] | [INFO] [stdout] 461 | Term::Throw(expr) => vec![], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:464:25 [INFO] [stdout] | [INFO] [stdout] 464 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:468:36 [INFO] [stdout] | [INFO] [stdout] 468 | Term::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling swc_ecma_parser v23.0.0 [INFO] [stderr] Compiling swc_ecma_transforms_base v25.0.0 [INFO] [stderr] Compiling swc_ecma_transforms_optimization v26.0.0 [INFO] [stderr] Compiling portal-solutions-swibb v0.4.1 (https://github.com/portal-co/swibb.git#43fb4556) [INFO] [stderr] Compiling portal-jsc-swc-util v0.8.0-pre.9 (/opt/rustwide/workdir/crates/swc-util) [INFO] [stdout] warning: unused import: `bitflags::bitflags` [INFO] [stdout] --> crates/swc-util/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bitflags::bitflags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cfg` [INFO] [stdout] --> crates/swc-util/src/lib.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | cfg: &SemanticCfg, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/swc-util/src/lib.rs:192:17 [INFO] [stdout] | [INFO] [stdout] 192 | module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/swc-util/src/lib.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 193 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/swc-util/src/lib.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/swc-util/src/lib.rs:205:17 [INFO] [stdout] | [INFO] [stdout] 205 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/swc-util/src/lib.rs:216:17 [INFO] [stdout] | [INFO] [stdout] 216 | module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/swc-util/src/lib.rs:217:17 [INFO] [stdout] | [INFO] [stdout] 217 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/swc-util/src/lib.rs:231:17 [INFO] [stdout] | [INFO] [stdout] 231 | module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/swc-util/src/lib.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 232 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> crates/swc-util/src/lib.rs:253:25 [INFO] [stdout] | [INFO] [stdout] 253 | fn import_of(&self, cx: &Id) -> Option<(Atom, ImportMap)> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling portal-jsc-swc-tac v0.8.0-pre.9 (/opt/rustwide/workdir/crates/swc-tac) [INFO] [stdout] warning: unused import: `ResolveNatives` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:16:41 [INFO] [stdout] | [INFO] [stdout] 16 | use portal_jsc_swc_util::{ImportMapper, ResolveNatives, SemanticCfg, SemanticFlags, ses_method}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AssignExpr`, `ComputedPropName`, and `CondExpr` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | AssignExpr, AssignOp, AssignTarget, BinaryOp, Bool, Callee, Class, ClassMember, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 24 | ComputedPropName, CondExpr, Expr, Function, Lit, MemberExpr, MemberProp, MetaPropKind, Number, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::OnceCell` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::OnceCell, mem::replace}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> crates/swc-tac/src/lam.rs:88:34 [INFO] [stdout] | [INFO] [stdout] 88 | fn iter<'a>(&'a self) -> Box<(dyn Iterator + 'a)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - fn iter<'a>(&'a self) -> Box<(dyn Iterator + 'a)> { [INFO] [stdout] 88 + fn iter<'a>(&'a self) -> Box + 'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `portal_solutions_proxy_signs::PROXY_SIGNS` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use portal_solutions_proxy_signs::PROXY_SIGNS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CallExpr`, `ExprOrSpread`, and `IdentName` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | AssignExpr, BinExpr, CallExpr, CondExpr, Decl, ExprOrSpread, ExprStmt, IdentName, ModuleItem, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::take` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::take; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Context` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::Context; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BlockStmt` and `ReturnStmt` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | use swc_ecma_ast::{BlockStmt, FnExpr, GetterProp, ReturnStmt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Str` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:30:30 [INFO] [stdout] | [INFO] [stdout] 30 | use swc_ecma_ast::{ExprStmt, Str}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> crates/swc-tac/src/splat.rs:184:21 [INFO] [stdout] | [INFO] [stdout] 184 | 'a: loop { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> crates/swc-tac/src/splat.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | ... 'a: loop { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> crates/swc-tac/src/lib.rs:578:17 [INFO] [stdout] | [INFO] [stdout] 578 | 's: for mut s in take(&mut self.blocks[ki].stmts) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | LId::Private { id, obj } => Either::Left(once(obj)), [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:400:28 [INFO] [stdout] | [INFO] [stdout] 400 | TTerm::Jmp(id) => Box::new(std::iter::empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_true` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:403:21 [INFO] [stdout] | [INFO] [stdout] 403 | if_true, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `if_true: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_false` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:404:21 [INFO] [stdout] | [INFO] [stdout] 404 | if_false, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `if_false: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:406:44 [INFO] [stdout] | [INFO] [stdout] 406 | TTerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `default: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling portal-jsc-simpl-js v0.8.0-pre.9 (/opt/rustwide/workdir/crates/simpl-js) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::Args` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::env::Args; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `make_spanned` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:186:29 [INFO] [stdout] | [INFO] [stdout] 186 | SimplStmt::Expr(make_spanned) | SimplStmt::Return(make_spanned) => {} [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 186 | SimplStmt::Expr(_make_spanned) | SimplStmt::Return(_make_spanned) => {} [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/simpl-js/src/lib.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 405 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/simpl-js/src/lib.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 215 | SimplExpr::Ident(i) => match i.extract_own() { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 225 | SimplExpr::Assign(a) => match a.value.target.extract_own() { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 259 | SimplExpr::Bin(b) => Expr::Bin(BinExpr { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 265 | SimplExpr::Lit(l) => Expr::Lit(l), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 405 | _ => todo!(), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:340:43 [INFO] [stdout] | [INFO] [stdout] 340 | SimplCallExpr::Tag { tag, args } => match tag {}, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/simpl-js/src/lib.rs:515:13 [INFO] [stdout] | [INFO] [stdout] 515 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/simpl-js/src/lib.rs:515:13 [INFO] [stdout] | [INFO] [stdout] 433 | SimplStmt::Expr(e) => Stmt::Expr(ExprStmt { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 437 | SimplStmt::Block(b) => Stmt::Block(BlockStmt { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 442 | SimplStmt::Return(e) => Stmt::Return(ReturnStmt { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 446 | SimplStmt::If(i) => match i.value.kind { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 515 | _ => todo!(), [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:609:25 [INFO] [stdout] | [INFO] [stdout] 609 | module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:610:25 [INFO] [stdout] | [INFO] [stdout] 610 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:640:41 [INFO] [stdout] | [INFO] [stdout] 640 | ... module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:641:41 [INFO] [stdout] | [INFO] [stdout] 641 | ... name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_prop_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:648:73 [INFO] [stdout] | [INFO] [stdout] 648 | ... swc_ecma_ast::SimpleAssignTarget::SuperProp(super_prop_expr) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_prop_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:649:69 [INFO] [stdout] | [INFO] [stdout] 649 | ... swc_ecma_ast::SimpleAssignTarget::Paren(paren_expr) => todo!(), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_paren_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opt_chain_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:650:72 [INFO] [stdout] | [INFO] [stdout] 650 | ... swc_ecma_ast::SimpleAssignTarget::OptChain(opt_chain_expr) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_opt_chain_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_as_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:651:68 [INFO] [stdout] | [INFO] [stdout] 651 | ... swc_ecma_ast::SimpleAssignTarget::TsAs(ts_as_expr) => todo!(), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_as_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_satisfies_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:652:75 [INFO] [stdout] | [INFO] [stdout] 652 | ... swc_ecma_ast::SimpleAssignTarget::TsSatisfies(ts_satisfies_expr) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_satisfies_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_non_null_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:655:73 [INFO] [stdout] | [INFO] [stdout] 655 | ... swc_ecma_ast::SimpleAssignTarget::TsNonNull(ts_non_null_expr) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_non_null_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_type_assertion` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:659:33 [INFO] [stdout] | [INFO] [stdout] 659 | ... ts_type_assertion, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_type_assertion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_instantiation` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:661:79 [INFO] [stdout] | [INFO] [stdout] 661 | ... swc_ecma_ast::SimpleAssignTarget::TsInstantiation(ts_instantiation) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_instantiation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `invalid` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:664:71 [INFO] [stdout] | [INFO] [stdout] 664 | ... swc_ecma_ast::SimpleAssignTarget::Invalid(invalid) => todo!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_invalid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `assign_target_pat` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:667:53 [INFO] [stdout] | [INFO] [stdout] 667 | swc_ecma_ast::AssignTarget::Pat(assign_target_pat) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_assign_target_pat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `import` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:694:50 [INFO] [stdout] | [INFO] [stdout] 694 | swc_ecma_ast::Callee::Import(import) => todo!(), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_import` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spread` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:754:57 [INFO] [stdout] | [INFO] [stdout] 754 | ... ref spread, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `spread: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/simpl-js/src/lib.rs:669:21 [INFO] [stdout] | [INFO] [stdout] 669 | let mut path = match e { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/simpl-js/src/lib.rs:741:45 [INFO] [stdout] | [INFO] [stdout] 741 | ... let mut path = match &a { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:998:62 [INFO] [stdout] | [INFO] [stdout] 998 | ... Some(Stmt::Break(BreakStmt { span, label: None })) => ( [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lit` [INFO] [stdout] --> crates/swc-tac/src/consts.rs:91:25 [INFO] [stdout] | [INFO] [stdout] 91 | Item::Lit { lit } => true, [INFO] [stdout] | ^^^ help: try ignoring the field: `lit: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | mut t: Id, [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | let mut tmp = o.regs.alloc(()); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `private_name` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:303:37 [INFO] [stdout] | [INFO] [stdout] 303 | MemberProp::PrivateName(private_name) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_private_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/conv.rs:352:13 [INFO] [stdout] | [INFO] [stdout] 352 | _ => anyhow::bail!("todo: {}:{}", file!(), line!()), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/swc-tac/src/conv.rs:352:13 [INFO] [stdout] | [INFO] [stdout] 323 | Callee::Import(_) => TCallee::Import, [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 324 | Callee::Super(_) => TCallee::Super, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 325 | Callee::Expr(e) => match e.as_ref() { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 352 | _ => anyhow::bail!("todo: {}:{}", file!(), line!()), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> crates/swc-tac/src/conv.rs:419:29 [INFO] [stdout] | [INFO] [stdout] 419 | ... t = t2; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> crates/swc-tac/src/conv.rs:424:33 [INFO] [stdout] | [INFO] [stdout] 424 | ... (c, t) = self.expr(i, o, b, t, a)?; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> crates/swc-tac/src/conv.rs:449:21 [INFO] [stdout] | [INFO] [stdout] 449 | (c, t) = self.expr(i, o, b, t, expr)?; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> crates/swc-tac/src/conv.rs:459:21 [INFO] [stdout] | [INFO] [stdout] 459 | (c, t) = self.expr(i, o, b, t, cond)?; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `using_decl` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:540:43 [INFO] [stdout] | [INFO] [stdout] 540 | swc_ecma_ast::Decl::Using(using_decl) => todo!(), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_using_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_interface_decl` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:541:49 [INFO] [stdout] | [INFO] [stdout] 541 | swc_ecma_ast::Decl::TsInterface(ts_interface_decl) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_interface_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_type_alias_decl` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:542:49 [INFO] [stdout] | [INFO] [stdout] 542 | swc_ecma_ast::Decl::TsTypeAlias(ts_type_alias_decl) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_type_alias_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_enum_decl` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:543:44 [INFO] [stdout] | [INFO] [stdout] 543 | swc_ecma_ast::Decl::TsEnum(ts_enum_decl) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_enum_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_module_decl` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:544:46 [INFO] [stdout] | [INFO] [stdout] 544 | swc_ecma_ast::Decl::TsModule(ts_module_decl) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_module_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:554:9 [INFO] [stdout] | [INFO] [stdout] 554 | mut t: Id, [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:639:9 [INFO] [stdout] | [INFO] [stdout] 639 | mut t: Id, [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:644:13 [INFO] [stdout] | [INFO] [stdout] 644 | let mut ps = p.elems.iter().map(|a| a.as_ref()).collect::>(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest_pat` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:890:51 [INFO] [stdout] | [INFO] [stdout] 890 | swc_ecma_ast::ObjectPatProp::Rest(rest_pat) => {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rest_pat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:913:9 [INFO] [stdout] | [INFO] [stdout] 913 | i: &Cfg, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:915:9 [INFO] [stdout] | [INFO] [stdout] 915 | b: Id, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:916:9 [INFO] [stdout] | [INFO] [stdout] 916 | mut t: Id, [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1018:57 [INFO] [stdout] | [INFO] [stdout] 1018 | swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 1060 | / prop_name!(if p.is_static{MemberFlags::STATIC}else{MemberFlags::empty()},PropVal::Item( match p.value.as_ref(){ [INFO] [stdout] 1061 | | None => None, [INFO] [stdout] 1062 | | Some(a) => Some({ [INFO] [stdout] 1063 | | let b2; [INFO] [stdout] ... | [INFO] [stdout] 1066 | | }), [INFO] [stdout] 1067 | | }) => &p.key), [INFO] [stdout] | |_________________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1026:60 [INFO] [stdout] | [INFO] [stdout] 1026 | swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 1060 | / prop_name!(if p.is_static{MemberFlags::STATIC}else{MemberFlags::empty()},PropVal::Item( match p.value.as_ref(){ [INFO] [stdout] 1061 | | None => None, [INFO] [stdout] 1062 | | Some(a) => Some({ [INFO] [stdout] 1063 | | let b2; [INFO] [stdout] ... | [INFO] [stdout] 1066 | | }), [INFO] [stdout] 1067 | | }) => &p.key), [INFO] [stdout] | |_________________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1018:57 [INFO] [stdout] | [INFO] [stdout] 1018 | swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 1094 | members.push(prop_name!(if c.is_static{MemberFlags::STATIC}else{MemberFlags::empty()}, match &c.kind{ [INFO] [stdout] | __________________________________- [INFO] [stdout] 1095 | | swc_ecma_ast::MethodKind::Method => PropVal::Method(f), [INFO] [stdout] 1096 | | swc_ecma_ast::MethodKind::Getter => PropVal::Getter(f), [INFO] [stdout] 1097 | | swc_ecma_ast::MethodKind::Setter => PropVal::Setter(f), [INFO] [stdout] 1098 | | }=> &c.key)); [INFO] [stdout] | |_______________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1026:60 [INFO] [stdout] | [INFO] [stdout] 1026 | swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 1094 | members.push(prop_name!(if c.is_static{MemberFlags::STATIC}else{MemberFlags::empty()}, match &c.kind{ [INFO] [stdout] | __________________________________- [INFO] [stdout] 1095 | | swc_ecma_ast::MethodKind::Method => PropVal::Method(f), [INFO] [stdout] 1096 | | swc_ecma_ast::MethodKind::Getter => PropVal::Getter(f), [INFO] [stdout] 1097 | | swc_ecma_ast::MethodKind::Setter => PropVal::Setter(f), [INFO] [stdout] 1098 | | }=> &c.key)); [INFO] [stdout] | |_______________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1053:13 [INFO] [stdout] | [INFO] [stdout] 1053 | let mut mapper = self.mapper.clone(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1167:9 [INFO] [stdout] | [INFO] [stdout] 1167 | mut right: Ident, [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1500:21 [INFO] [stdout] | [INFO] [stdout] 1500 | let mut tmp = o.regs.alloc(()); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `o2` is assigned to, but never used [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1739:25 [INFO] [stdout] | [INFO] [stdout] 1739 | let o2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_o2` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `o2` is never read [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1740:22 [INFO] [stdout] | [INFO] [stdout] 1740 | (o2, t) = self.expr(i, o, b, t, obj)?; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spread_element` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1997:64 [INFO] [stdout] | [INFO] [stdout] 1997 | ... swc_ecma_ast::PropOrSpread::Spread(spread_element) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spread_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1980:69 [INFO] [stdout] | [INFO] [stdout] 1980 | ... swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 2009 | ... prop_name!(v => &key_value_prop.key) [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1989:72 [INFO] [stdout] | [INFO] [stdout] 1989 | ... swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 2009 | ... prop_name!(v => &key_value_prop.key) [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `assign_prop` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:2011:60 [INFO] [stdout] | [INFO] [stdout] 2011 | ... swc_ecma_ast::Prop::Assign(assign_prop) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_assign_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:2018:45 [INFO] [stdout] | [INFO] [stdout] 2018 | ... let k = k.transform_all( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1980:69 [INFO] [stdout] | [INFO] [stdout] 1980 | ... swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 2030 | ... prop_name!(v => &getter_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1989:72 [INFO] [stdout] | [INFO] [stdout] 1989 | ... swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 2030 | ... prop_name!(v => &getter_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:2041:45 [INFO] [stdout] | [INFO] [stdout] 2041 | ... let k = k.transform_all( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1980:69 [INFO] [stdout] | [INFO] [stdout] 1980 | ... swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 2053 | ... prop_name!(v => &setter_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1989:72 [INFO] [stdout] | [INFO] [stdout] 1989 | ... swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 2053 | ... prop_name!(v => &setter_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1980:69 [INFO] [stdout] | [INFO] [stdout] 1980 | ... swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 2060 | ... prop_name!(v => &method_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1989:72 [INFO] [stdout] | [INFO] [stdout] 1989 | ... swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 2060 | ... prop_name!(v => &method_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1607:21 [INFO] [stdout] | [INFO] [stdout] 1607 | let mut right; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1908:21 [INFO] [stdout] | [INFO] [stdout] 1908 | let mut k = swc_cfg::ToCfgConversionCtx::default(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | (Expr::Assign(a), b) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | (b, Expr::Assign(a)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:164:51 [INFO] [stdout] | [INFO] [stdout] 164 | fn visit_mut_class(&mut self, node: &mut Class) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:215:41 [INFO] [stdout] | [INFO] [stdout] 215 | Expr::Seq(SeqExpr { span, exprs }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:252:37 [INFO] [stdout] | [INFO] [stdout] 252 | Expr::Seq(SeqExpr { span, mut exprs }) if exprs.len() == 1 => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:184:29 [INFO] [stdout] | [INFO] [stdout] 184 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/rew.rs:184:25 [INFO] [stdout] | [INFO] [stdout] 184 | let mut i = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/rew.rs:930:13 [INFO] [stdout] | [INFO] [stdout] 930 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/swc-tac/src/rew.rs:930:13 [INFO] [stdout] | [INFO] [stdout] 883 | crate::LId::Id { id } => swc_ecma_ast::AssignTarget::Simple( [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 889 | crate::LId::Member { obj, mem } => { [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 902 | LId::Private { obj, id } => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 930 | _ => todo!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sf` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:880:9 [INFO] [stdout] | [INFO] [stdout] 880 | sf: &mut (dyn FnMut(&mut Cx, &F) -> Result + '_), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/splat.rs:154:45 [INFO] [stdout] | [INFO] [stdout] 154 | ... let mut d = output.blocks.alloc(Default::default()); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 196 | ... func!(value, g, false) [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `func` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/splat.rs:154:45 [INFO] [stdout] | [INFO] [stdout] 154 | ... let mut d = output.blocks.alloc(Default::default()); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 205 | ... func!(value, func, arrow); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `func` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/splat.rs:278:57 [INFO] [stdout] | [INFO] [stdout] 278 | ... let mut d = [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 343 | ... func!(value, g, false) [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `func` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/splat.rs:278:57 [INFO] [stdout] | [INFO] [stdout] 278 | ... let mut d = [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 352 | ... func!(value, func, arrow); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `func` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `private_name` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:141:47 [INFO] [stdout] | [INFO] [stdout] 141 | swc_ecma_ast::MemberProp::PrivateName(private_name) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_private_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/lib.rs:183:37 [INFO] [stdout] | [INFO] [stdout] 183 | import_mapper: static_map! {_ => None}, [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | matches no values because `ImportMapperReq` is uninhabited [INFO] [stdout] | help: remove the match arm [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> crates/swc-tac/src/lib.rs:183:24 [INFO] [stdout] | [INFO] [stdout] 183 | import_mapper: static_map! {_ => None}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] note: this expression has type `ImportMapperReq`, which is uninhabited [INFO] [stdout] --> crates/swc-tac/src/lib.rs:183:24 [INFO] [stdout] | [INFO] [stdout] 183 | import_mapper: static_map! {_ => None}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::static_map_internal` which comes from the expansion of the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/lib.rs:194:41 [INFO] [stdout] | [INFO] [stdout] 194 | import_mapper: static_map! {a =>self.import_mapper[a].as_deref()}, [INFO] [stdout] | ^----------------------------------- [INFO] [stdout] | | [INFO] [stdout] | matches no values because `ImportMapperReq` is uninhabited [INFO] [stdout] | help: remove the match arm [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> crates/swc-tac/src/lib.rs:194:28 [INFO] [stdout] | [INFO] [stdout] 194 | import_mapper: static_map! {a =>self.import_mapper[a].as_deref()}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] note: this expression has type `ImportMapperReq`, which is uninhabited [INFO] [stdout] --> crates/swc-tac/src/lib.rs:194:28 [INFO] [stdout] | [INFO] [stdout] 194 | import_mapper: static_map! {a =>self.import_mapper[a].as_deref()}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `$crate::static_map_internal` which comes from the expansion of the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/lib.rs:346:21 [INFO] [stdout] | [INFO] [stdout] 346 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/swc-tac/src/lib.rs:346:21 [INFO] [stdout] | [INFO] [stdout] 338 | LId::Id { id } => {} [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 339 | LId::Member { obj, mem } => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 343 | LId::Private { obj, id } => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 346 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:338:31 [INFO] [stdout] | [INFO] [stdout] 338 | LId::Id { id } => {} [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:343:41 [INFO] [stdout] | [INFO] [stdout] 343 | LId::Private { obj, id } => { [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/lib.rs:534:33 [INFO] [stdout] | [INFO] [stdout] 534 | ... _ => return None, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/swc-tac/src/lib.rs:534:33 [INFO] [stdout] | [INFO] [stdout] 525 | ... PropKey::Lit(l) => Lit::Str(Str { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 530 | ... PropKey::Computed(c) => match self.get_item(c)? { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 534 | ... _ => return None, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:655:23 [INFO] [stdout] | [INFO] [stdout] 655 | LId::Id { id } => true, [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:663:25 [INFO] [stdout] | [INFO] [stdout] 663 | Item::Mem { obj, mem } => mem == i, [INFO] [stdout] | ^^^ help: try ignoring the field: `obj: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:666:17 [INFO] [stdout] | [INFO] [stdout] 666 | args, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:692:17 [INFO] [stdout] | [INFO] [stdout] 692 | args, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:688:30 [INFO] [stdout] | [INFO] [stdout] 688 | pub fn will_store(&self, i: &Ident) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pat` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | TCatch::Jump { pat, k } => Some(k), [INFO] [stdout] | ^^^ help: try ignoring the field: `pat: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | TTerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pat` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:69:32 [INFO] [stdout] | [INFO] [stdout] 69 | TCatch::Jump { pat, k } => Some(k), [INFO] [stdout] | ^^^ help: try ignoring the field: `pat: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 79 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:83:33 [INFO] [stdout] | [INFO] [stdout] 83 | TTerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mem` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:804:32 [INFO] [stdout] | [INFO] [stdout] 804 | LId::Member { obj, mem } if obj == a => true, [INFO] [stdout] | ^^^ help: try ignoring the field: `mem: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:810:33 [INFO] [stdout] | [INFO] [stdout] 810 | pub fn taints_object(&self, a: &I) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1279:43 [INFO] [stdout] | [INFO] [stdout] 1279 | ... &mut |cx, a: &Option| Ok::<_, Infallible>(a.as_ref()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1280:43 [INFO] [stdout] | [INFO] [stdout] 1280 | ... &mut |cx, b| Ok(b), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1411:43 [INFO] [stdout] | [INFO] [stdout] 1411 | ... &mut |cx, a| Ok::<_, Infallible>(a.as_mut()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1412:43 [INFO] [stdout] | [INFO] [stdout] 1412 | ... &mut |cx, b| Ok(b), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arrow` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1597:32 [INFO] [stdout] | [INFO] [stdout] 1597 | Item::Func { func, arrow } => Box::new(once(func)), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `arrow: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `superclass` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1603:17 [INFO] [stdout] | [INFO] [stdout] 1603 | superclass, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `superclass: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1622:47 [INFO] [stdout] | [INFO] [stdout] 1622 | swc_tac::Item::Bin { left, right, op } => Box::new([left, right].into_iter()), [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1623:38 [INFO] [stdout] | [INFO] [stdout] 1623 | swc_tac::Item::Un { arg, op } => Box::new(once(arg)), [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mem` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1625:37 [INFO] [stdout] | [INFO] [stdout] 1625 | Item::PrivateMem { obj, mem } | Item::HasPrivateMem { obj, mem } => Box::new(once(obj)), [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] help: try ignoring the field [INFO] [stdout] | [INFO] [stdout] 1625 | Item::PrivateMem { obj, mem: _ } | Item::HasPrivateMem { obj, mem: _ } => Box::new(once(obj)), [INFO] [stdout] | +++ +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1626:35 [INFO] [stdout] | [INFO] [stdout] 1626 | swc_tac::Item::Func { func, arrow } => Box::new(empty()), [INFO] [stdout] | ^^^^ help: try ignoring the field: `func: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arrow` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1626:41 [INFO] [stdout] | [INFO] [stdout] 1626 | swc_tac::Item::Func { func, arrow } => Box::new(empty()), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `arrow: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lit` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1627:34 [INFO] [stdout] | [INFO] [stdout] 1627 | swc_tac::Item::Lit { lit } => Box::new(empty()), [INFO] [stdout] | ^^^ help: try ignoring the field: `lit: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delegate` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1664:43 [INFO] [stdout] | [INFO] [stdout] 1664 | swc_tac::Item::Yield { value, delegate } => Box::new(value.iter()), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `delegate: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constructor` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1673:17 [INFO] [stdout] | [INFO] [stdout] 1673 | constructor, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `constructor: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `begin` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1693:17 [INFO] [stdout] | [INFO] [stdout] 1693 | begin, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `begin: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1694:17 [INFO] [stdout] | [INFO] [stdout] 1694 | end, [INFO] [stdout] | ^^^ help: try ignoring the field: `end: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1647:37 [INFO] [stdout] | [INFO] [stdout] 1647 | PropVal::Getter(a) | PropVal::Setter(a) | PropVal::Method(a) => { [INFO] [stdout] | ^ ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 1647 | PropVal::Getter(_a) | PropVal::Setter(_a) | PropVal::Method(_a) => { [INFO] [stdout] | + + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1676:37 [INFO] [stdout] | [INFO] [stdout] 1676 | PropVal::Getter(a) | PropVal::Setter(a) | PropVal::Method(a) => { [INFO] [stdout] | ^ ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 1676 | PropVal::Getter(_a) | PropVal::Setter(_a) | PropVal::Method(_a) => { [INFO] [stdout] | + + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1721:47 [INFO] [stdout] | [INFO] [stdout] 1721 | swc_tac::Item::Bin { left, right, op } => Box::new([left, right].into_iter()), [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1722:38 [INFO] [stdout] | [INFO] [stdout] 1722 | swc_tac::Item::Un { arg, op } => Box::new(once(arg)), [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mem` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1724:37 [INFO] [stdout] | [INFO] [stdout] 1724 | Item::PrivateMem { obj, mem } | Item::HasPrivateMem { obj, mem } => Box::new(once(obj)), [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] help: try ignoring the field [INFO] [stdout] | [INFO] [stdout] 1724 | Item::PrivateMem { obj, mem: _ } | Item::HasPrivateMem { obj, mem: _ } => Box::new(once(obj)), [INFO] [stdout] | +++ +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1725:35 [INFO] [stdout] | [INFO] [stdout] 1725 | swc_tac::Item::Func { func, arrow } => Box::new(empty()), [INFO] [stdout] | ^^^^ help: try ignoring the field: `func: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arrow` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1725:41 [INFO] [stdout] | [INFO] [stdout] 1725 | swc_tac::Item::Func { func, arrow } => Box::new(empty()), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `arrow: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lit` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1726:34 [INFO] [stdout] | [INFO] [stdout] 1726 | swc_tac::Item::Lit { lit } => Box::new(empty()), [INFO] [stdout] | ^^^ help: try ignoring the field: `lit: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delegate` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1763:43 [INFO] [stdout] | [INFO] [stdout] 1763 | swc_tac::Item::Yield { value, delegate } => Box::new(value.iter_mut()), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `delegate: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constructor` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1772:17 [INFO] [stdout] | [INFO] [stdout] 1772 | constructor, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `constructor: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `begin` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1791:17 [INFO] [stdout] | [INFO] [stdout] 1791 | begin, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `begin: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1792:17 [INFO] [stdout] | [INFO] [stdout] 1792 | end, [INFO] [stdout] | ^^^ help: try ignoring the field: `end: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1746:37 [INFO] [stdout] | [INFO] [stdout] 1746 | PropVal::Getter(a) | PropVal::Setter(a) | PropVal::Method(a) => { [INFO] [stdout] | ^ ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 1746 | PropVal::Getter(_a) | PropVal::Setter(_a) | PropVal::Method(_a) => { [INFO] [stdout] | + + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1778:45 [INFO] [stdout] | [INFO] [stdout] 1778 | ... PropVal::Getter(a) | PropVal::Setter(a) | PropVal::Method(a) => { [INFO] [stdout] | ^ ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 1778 | PropVal::Getter(_a) | PropVal::Setter(_a) | PropVal::Method(_a) => { [INFO] [stdout] | + + + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling portal-jsc-swc-ssa v0.8.0-pre.9 (/opt/rustwide/workdir/crates/swc-ssa) [INFO] [stdout] warning: unused import: `portal_jsc_common::syntax::Asm` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use portal_jsc_common::syntax::Asm; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnaryOp` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:16:74 [INFO] [stdout] | [INFO] [stdout] 16 | use swc_ecma_ast::{Id as Ident, Lit, TsType, TsTypeAnn, TsTypeParamDecl, UnaryOp}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:188:25 [INFO] [stdout] | [INFO] [stdout] 188 | 'a: { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `convert::Infallible` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::BTreeMap, convert::Infallible, sync::OnceLock}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TTerm` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:7:62 [INFO] [stdout] | [INFO] [stdout] 7 | use swc_tac::{Item, LId, TBlock, TCatch, TCfg, TFunc, TStmt, TTerm, ValFlags}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `STerm` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:9:37 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::{SBlock, SFunc, STarget, STerm, SValue, SValueW}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:256:46 [INFO] [stdout] | [INFO] [stdout] 256 | ... .get((n.value.round() as usize)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 256 - .get((n.value.round() as usize)) [INFO] [stdout] 256 + .get(n.value.round() as usize) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:848:51 [INFO] [stdout] | [INFO] [stdout] 848 | ... a.get((n.value.round() as usize)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 848 - a.get((n.value.round() as usize)) [INFO] [stdout] 848 + a.get(n.value.round() as usize) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:113:37 [INFO] [stdout] | [INFO] [stdout] 113 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:113:44 [INFO] [stdout] | [INFO] [stdout] 113 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:113:49 [INFO] [stdout] | [INFO] [stdout] 113 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:264:29 [INFO] [stdout] | [INFO] [stdout] 264 | ... span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:191:33 [INFO] [stdout] | [INFO] [stdout] 191 | ... span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:199:33 [INFO] [stdout] | [INFO] [stdout] 199 | ... span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ok` [INFO] [stdout] --> crates/swc-ssa/src/conv.rs:124:17 [INFO] [stdout] | [INFO] [stdout] 124 | let ok = k; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:65:26 [INFO] [stdout] | [INFO] [stdout] 65 | STerm::Throw(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:66:27 [INFO] [stdout] | [INFO] [stdout] 66 | STerm::Return(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:73:29 [INFO] [stdout] | [INFO] [stdout] 73 | STerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:85:26 [INFO] [stdout] | [INFO] [stdout] 85 | STerm::Throw(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | STerm::Return(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | STerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | f: &'a SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | g: &'a mut SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:245:9 [INFO] [stdout] | [INFO] [stdout] 245 | f: &'a SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 252 | g: &'a mut SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:285:102 [INFO] [stdout] | [INFO] [stdout] 285 | Self::Tail { callee, args } => Box::new(args.iter().map(|SpreadOr { value: a, is_spread: b }|a).cloned().chain({ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:323:106 [INFO] [stdout] | [INFO] [stdout] 323 | Self::Tail { callee, args } => Box::new(args.iter_mut().map(|SpreadOr { value: a, is_spread: b }|a).chain({ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:379:9 [INFO] [stdout] | [INFO] [stdout] 379 | f: &'a SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:386:9 [INFO] [stdout] | [INFO] [stdout] 386 | g: &'a mut SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:397:9 [INFO] [stdout] | [INFO] [stdout] 397 | f: &'a SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:404:9 [INFO] [stdout] | [INFO] [stdout] 404 | g: &'a mut SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:415:9 [INFO] [stdout] | [INFO] [stdout] 415 | f: &'a SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:422:9 [INFO] [stdout] | [INFO] [stdout] 422 | g: &'a mut SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:433:50 [INFO] [stdout] | [INFO] [stdout] 433 | fn add_blockparam(&mut self, k: Self::Block, y: Self::Ty) -> Self::Value { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:450:18 [INFO] [stdout] | [INFO] [stdout] 450 | fn ty(&self, f: &SFunc) -> ::Ty { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/opt_stub.rs:51:42 [INFO] [stdout] | [INFO] [stdout] 51 | ... &mut |_, f| todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:116:45 [INFO] [stdout] | [INFO] [stdout] 116 | ... SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:116:52 [INFO] [stdout] | [INFO] [stdout] 116 | ... SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:116:57 [INFO] [stdout] | [INFO] [stdout] 116 | ... SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:118:46 [INFO] [stdout] | [INFO] [stdout] 118 | ... Item::Just { id } => {} [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:204:58 [INFO] [stdout] | [INFO] [stdout] 204 | ... SValue::EdgeBlocker { value: v, span } => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:204:61 [INFO] [stdout] | [INFO] [stdout] 204 | ... SValue::EdgeBlocker { value: v, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:285:37 [INFO] [stdout] | [INFO] [stdout] 285 | SValue::Param { block, idx, ty } => { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:292:38 [INFO] [stdout] | [INFO] [stdout] 292 | SValue::EdgeBlocker { value, span } => mangle_value(prefix, ctxt, func, *value), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | for (k, kd) in self.blocks.iter_mut() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 35 | for (k, kd) in self.blocks.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | fn inputs<'a>(&'a self, block: B, param: usize) -> Box + 'a> [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:74:39 [INFO] [stdout] | [INFO] [stdout] 74 | fn inputs<'a>(&'a self, block: B, param: usize) -> Box + 'a> [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:95:29 [INFO] [stdout] | [INFO] [stdout] 95 | fn taints_object(&self, id: I) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:106:29 [INFO] [stdout] | [INFO] [stdout] 106 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:106:36 [INFO] [stdout] | [INFO] [stdout] 106 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:106:41 [INFO] [stdout] | [INFO] [stdout] 106 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:107:34 [INFO] [stdout] | [INFO] [stdout] 107 | SValue::Item { item, span } => return Some(item), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:108:30 [INFO] [stdout] | [INFO] [stdout] 108 | SValue::Assign { target, val } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:112:31 [INFO] [stdout] | [INFO] [stdout] 112 | SValue::StoreId { target, val } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:115:42 [INFO] [stdout] | [INFO] [stdout] 115 | SValue::EdgeBlocker { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:129:29 [INFO] [stdout] | [INFO] [stdout] 129 | SValue::Param { block, idx, ty } => return bak, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:129:36 [INFO] [stdout] | [INFO] [stdout] 129 | SValue::Param { block, idx, ty } => return bak, [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:129:41 [INFO] [stdout] | [INFO] [stdout] 129 | SValue::Param { block, idx, ty } => return bak, [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:130:34 [INFO] [stdout] | [INFO] [stdout] 130 | SValue::Item { item, span } => match item { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:136:30 [INFO] [stdout] | [INFO] [stdout] 136 | SValue::Assign { target, val } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:144:42 [INFO] [stdout] | [INFO] [stdout] 144 | SValue::EdgeBlocker { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 159 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:159:36 [INFO] [stdout] | [INFO] [stdout] 159 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:159:41 [INFO] [stdout] | [INFO] [stdout] 159 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:160:34 [INFO] [stdout] | [INFO] [stdout] 160 | SValue::Item { item, span } => return Some(item), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:161:30 [INFO] [stdout] | [INFO] [stdout] 161 | SValue::Assign { target, val } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:165:31 [INFO] [stdout] | [INFO] [stdout] 165 | SValue::StoreId { target, val } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:168:42 [INFO] [stdout] | [INFO] [stdout] 168 | SValue::EdgeBlocker { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:230:41 [INFO] [stdout] | [INFO] [stdout] 230 | SValue::Param { block, idx, ty } if pierce => { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:243:34 [INFO] [stdout] | [INFO] [stdout] 243 | SValue::Item { item, span } => match item { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:235:21 [INFO] [stdout] | [INFO] [stdout] 235 | let mut n = i.next()?; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:336:41 [INFO] [stdout] | [INFO] [stdout] 336 | SValue::Param { block, idx, ty } if pierce => { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:348:30 [INFO] [stdout] | [INFO] [stdout] 348 | Item::Just { id } => None, [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:521:45 [INFO] [stdout] | [INFO] [stdout] 521 | ... (_, _, Some(v), Some(v2)) => (left?, right?), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:521:54 [INFO] [stdout] | [INFO] [stdout] 521 | ... (_, _, Some(v), Some(v2)) => (left?, right?), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:898:30 [INFO] [stdout] | [INFO] [stdout] 898 | Item::Func { func, arrow } => None, [INFO] [stdout] | ^^^^ help: try ignoring the field: `func: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arrow` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:898:36 [INFO] [stdout] | [INFO] [stdout] 898 | Item::Func { func, arrow } => None, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `arrow: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callee` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:900:30 [INFO] [stdout] | [INFO] [stdout] 900 | Item::Call { callee, args } => None, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `callee: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:900:38 [INFO] [stdout] | [INFO] [stdout] 900 | Item::Call { callee, args } => None, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `members` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:901:29 [INFO] [stdout] | [INFO] [stdout] 901 | Item::Obj { members } => None, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `members: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `members` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:902:29 [INFO] [stdout] | [INFO] [stdout] 902 | Item::Arr { members } => None, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `members: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:903:31 [INFO] [stdout] | [INFO] [stdout] 903 | Item::Yield { value, delegate } => None, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delegate` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:903:38 [INFO] [stdout] | [INFO] [stdout] 903 | Item::Yield { value, delegate } => None, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `delegate: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:904:31 [INFO] [stdout] | [INFO] [stdout] 904 | Item::Await { value } => None, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:881:89 [INFO] [stdout] | [INFO] [stdout] 881 | ... let SpreadOr { value: n, is_spread: s } = i.next()?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:338:21 [INFO] [stdout] | [INFO] [stdout] 338 | let mut n = i.next()?.const_in(semantics, k, pierce)?; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:103:38 [INFO] [stdout] | [INFO] [stdout] 103 | SValue::Item { item, span } => match item { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:206:50 [INFO] [stdout] | [INFO] [stdout] 206 | SValue::Assign { target, val } => target.taints_object(a), [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:207:46 [INFO] [stdout] | [INFO] [stdout] 207 | SValue::Item { item, span } => item.taints_object(a), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:208:53 [INFO] [stdout] | [INFO] [stdout] 208 | SValue::Param { block, idx, ty } => match self.input(*block, *idx) { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:229:38 [INFO] [stdout] | [INFO] [stdout] 229 | SValue::Item { item, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:225:25 [INFO] [stdout] | [INFO] [stdout] 225 | .flat_map(|(a, b)| match &b.value { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:293:29 [INFO] [stdout] | [INFO] [stdout] 293 | SValue::Param { block, idx, ty } => true, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:293:36 [INFO] [stdout] | [INFO] [stdout] 293 | SValue::Param { block, idx, ty } => true, [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:293:41 [INFO] [stdout] | [INFO] [stdout] 293 | SValue::Param { block, idx, ty } => true, [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:294:34 [INFO] [stdout] | [INFO] [stdout] 294 | SValue::Item { item, span } => item.nothrow(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:295:38 [INFO] [stdout] | [INFO] [stdout] 295 | SValue::Assign { target, val } => target.nothrow(), [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:297:31 [INFO] [stdout] | [INFO] [stdout] 297 | SValue::StoreId { target, val } => true, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:297:39 [INFO] [stdout] | [INFO] [stdout] 297 | SValue::StoreId { target, val } => true, [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:298:35 [INFO] [stdout] | [INFO] [stdout] 298 | SValue::EdgeBlocker { value, span } => true, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:298:42 [INFO] [stdout] | [INFO] [stdout] 298 | SValue::EdgeBlocker { value, span } => true, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:303:39 [INFO] [stdout] | [INFO] [stdout] 303 | SValue::StoreId { target, val } if target == id => true, [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:304:34 [INFO] [stdout] | [INFO] [stdout] 304 | SValue::Item { item, span } if item.will_store(id) => true, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:312:29 [INFO] [stdout] | [INFO] [stdout] 312 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:312:36 [INFO] [stdout] | [INFO] [stdout] 312 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:312:41 [INFO] [stdout] | [INFO] [stdout] 312 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:313:34 [INFO] [stdout] | [INFO] [stdout] 313 | SValue::Item { item, span } => Box::new(item.refs().map(|a| *a)), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:317:31 [INFO] [stdout] | [INFO] [stdout] 317 | LId::Id { id } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:324:31 [INFO] [stdout] | [INFO] [stdout] 324 | SValue::StoreId { target, val } => Box::new(once(*val)), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:325:45 [INFO] [stdout] | [INFO] [stdout] 325 | SValue::EdgeBlocker { value: a, span } => Box::new(once(*a)), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:426:29 [INFO] [stdout] | [INFO] [stdout] 426 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:426:36 [INFO] [stdout] | [INFO] [stdout] 426 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:426:41 [INFO] [stdout] | [INFO] [stdout] 426 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:427:34 [INFO] [stdout] | [INFO] [stdout] 427 | SValue::Item { item, span } => Box::new(item.refs()), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:431:31 [INFO] [stdout] | [INFO] [stdout] 431 | LId::Id { id } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:438:31 [INFO] [stdout] | [INFO] [stdout] 438 | SValue::StoreId { target, val } => Box::new(once(val)), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:439:45 [INFO] [stdout] | [INFO] [stdout] 439 | SValue::EdgeBlocker { value: a, span } => Box::new(once(a)), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:444:29 [INFO] [stdout] | [INFO] [stdout] 444 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:444:36 [INFO] [stdout] | [INFO] [stdout] 444 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:444:41 [INFO] [stdout] | [INFO] [stdout] 444 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:445:34 [INFO] [stdout] | [INFO] [stdout] 445 | SValue::Item { item, span } => item.refs_mut(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:449:31 [INFO] [stdout] | [INFO] [stdout] 449 | LId::Id { id } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:456:31 [INFO] [stdout] | [INFO] [stdout] 456 | SValue::StoreId { target, val } => Box::new(once(val)), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:457:45 [INFO] [stdout] | [INFO] [stdout] 457 | SValue::EdgeBlocker { value: a, span } => Box::new(once(a)), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:532:48 [INFO] [stdout] | [INFO] [stdout] 532 | if let SValue::Param { block, idx, ty } = &v.value { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:544:17 [INFO] [stdout] | [INFO] [stdout] 544 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `map` is never read [INFO] [stdout] --> crates/swc-ssa/src/opt_stub.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct OptStub { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 5 | map: BTreeMap, Id>, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `go` is never used [INFO] [stdout] --> crates/swc-ssa/src/opt_stub.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl OptStub { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 8 | fn go( [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:287:17 [INFO] [stdout] | [INFO] [stdout] 287 | / callee.as_ref().map(&mut |a| { [INFO] [stdout] 288 | | v.push(*a); [INFO] [stdout] 289 | | Ok::<_, Infallible>(()) [INFO] [stdout] 290 | | }); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 287 | let _ = callee.as_ref().map(&mut |a| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:325:17 [INFO] [stdout] | [INFO] [stdout] 325 | / callee.as_mut().map(&mut |a| { [INFO] [stdout] 326 | | v.push(a); [INFO] [stdout] 327 | | Ok::<_, Infallible>(()) [INFO] [stdout] 328 | | }); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 325 | let _ = callee.as_mut().map(&mut |a| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling portal-jsc-swc-opt-ssa v0.8.0-pre.9 (/opt/rustwide/workdir/crates/swc-opt-ssa) [INFO] [stdout] warning: unused import: `Func` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use ssa_traits::{Func, HasChainableValues, HasValues}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 61 | OptTerm::Throw(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:62:29 [INFO] [stdout] | [INFO] [stdout] 62 | OptTerm::Return(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:69:31 [INFO] [stdout] | [INFO] [stdout] 69 | OptTerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | OptTerm::Throw(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | OptTerm::Return(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:90:31 [INFO] [stdout] | [INFO] [stdout] 90 | OptTerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:168:35 [INFO] [stdout] | [INFO] [stdout] 168 | OptValue::Emit { val, ty } => val.vals(), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:170:37 [INFO] [stdout] | [INFO] [stdout] 170 | OptValue::Assert { val, ty } => Box::new(once(*val)), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:182:35 [INFO] [stdout] | [INFO] [stdout] 182 | OptValue::Emit { val, ty } => val.vals_mut(), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:184:37 [INFO] [stdout] | [INFO] [stdout] 184 | OptValue::Assert { val, ty } => Box::new(once(val)), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | f: &'a OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | g: &'a mut OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 253 | f: &'a OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | g: &'a mut OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:375:9 [INFO] [stdout] | [INFO] [stdout] 375 | f: &'a OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:382:9 [INFO] [stdout] | [INFO] [stdout] 382 | g: &'a mut OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:393:9 [INFO] [stdout] | [INFO] [stdout] 393 | f: &'a OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | g: &'a mut OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:411:9 [INFO] [stdout] | [INFO] [stdout] 411 | f: &'a OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:418:9 [INFO] [stdout] | [INFO] [stdout] 418 | g: &'a mut OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:119:37 [INFO] [stdout] | [INFO] [stdout] 119 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:119:44 [INFO] [stdout] | [INFO] [stdout] 119 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:119:49 [INFO] [stdout] | [INFO] [stdout] 119 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:188:45 [INFO] [stdout] | [INFO] [stdout] 188 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:214:45 [INFO] [stdout] | [INFO] [stdout] 214 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:244:53 [INFO] [stdout] | [INFO] [stdout] 244 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:276:53 [INFO] [stdout] | [INFO] [stdout] 276 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:297:53 [INFO] [stdout] | [INFO] [stdout] 297 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:316:38 [INFO] [stdout] | [INFO] [stdout] 316 | ... Some(k) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:370:45 [INFO] [stdout] | [INFO] [stdout] 370 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:406:45 [INFO] [stdout] | [INFO] [stdout] 406 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:430:37 [INFO] [stdout] | [INFO] [stdout] 430 | ... let (x, ty) = state.get(v0).cloned().context("in getting the var")?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nest` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:466:33 [INFO] [stdout] | [INFO] [stdout] 466 | ... nest, [INFO] [stdout] | ^^^^ help: try ignoring the field: `nest: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extensible` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:467:43 [INFO] [stdout] | [INFO] [stdout] 467 | ... extended: extensible, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extensible` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elem_tys` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:468:33 [INFO] [stdout] | [INFO] [stdout] 468 | ... elem_tys, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `elem_tys: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:699:17 [INFO] [stdout] | [INFO] [stdout] 699 | fn try_from(mut value: &'a SFunc) -> Result { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:104:32 [INFO] [stdout] | [INFO] [stdout] 104 | OptValue::Assert { val, ty } => ty.clone(), [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:105:30 [INFO] [stdout] | [INFO] [stdout] 105 | OptValue::Emit { val, ty } => ty.clone(), [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:111:37 [INFO] [stdout] | [INFO] [stdout] 111 | OptValue::Assert { val, ty } => cfg.values[*val].constant(cfg), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:112:35 [INFO] [stdout] | [INFO] [stdout] 112 | OptValue::Emit { val, ty } => match val { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:113:41 [INFO] [stdout] | [INFO] [stdout] 113 | SValue::Item { item: i, span } => match i { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:126:37 [INFO] [stdout] | [INFO] [stdout] 126 | OptValue::Assert { val, ty } => self.val(*val), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:127:35 [INFO] [stdout] | [INFO] [stdout] 127 | OptValue::Emit { val, ty } => Some(val), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:141:37 [INFO] [stdout] | [INFO] [stdout] 141 | OptValue::Assert { val, ty } => self.val_mut(*val), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:142:35 [INFO] [stdout] | [INFO] [stdout] 142 | OptValue::Emit { val, ty } => Some(val), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5m 09s [INFO] running `Command { std: "docker" "inspect" "959db3f8e97cda3d9eff1333c355669914801961b9c0a2c074995dda77ff4bf0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "959db3f8e97cda3d9eff1333c355669914801961b9c0a2c074995dda77ff4bf0", kill_on_drop: false }` [INFO] [stdout] 959db3f8e97cda3d9eff1333c355669914801961b9c0a2c074995dda77ff4bf0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8fce7f1070385ee97fef77a21bfbaa517488f1743f65c0ea3a3221ba8f303cc4 [INFO] running `Command { std: "docker" "start" "-a" "8fce7f1070385ee97fef77a21bfbaa517488f1743f65c0ea3a3221ba8f303cc4", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `either::Either` [INFO] [stdout] --> crates/portal-jsc-common/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use either::Either; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> crates/portal-jsc-common/src/semantic.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reflect_get` should have an upper camel case name [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Reflect_get, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ReflectGet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reflect_apply` should have an upper camel case name [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Reflect_apply, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ReflectApply` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reflect_set` should have an upper camel case name [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Reflect_set, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ReflectSet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:130:36 [INFO] [stdout] | [INFO] [stdout] 130 | Native::AssertString { value, comptime } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:137:36 [INFO] [stdout] | [INFO] [stdout] 137 | Native::AssertNumber { value, comptime } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:144:38 [INFO] [stdout] | [INFO] [stdout] 144 | Native::AssertStaticFn { value, comptime } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:151:31 [INFO] [stdout] | [INFO] [stdout] 151 | Native::FastAdd { lhs, rhs } => "fast_add", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:151:36 [INFO] [stdout] | [INFO] [stdout] 151 | Native::FastAdd { lhs, rhs } => "fast_add", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:152:31 [INFO] [stdout] | [INFO] [stdout] 152 | Native::FastAnd { lhs, rhs } => "fast_and", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:152:36 [INFO] [stdout] | [INFO] [stdout] 152 | Native::FastAnd { lhs, rhs } => "fast_and", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:153:30 [INFO] [stdout] | [INFO] [stdout] 153 | Native::FastOr { lhs, rhs } => "fast_or", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:153:35 [INFO] [stdout] | [INFO] [stdout] 153 | Native::FastOr { lhs, rhs } => "fast_or", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:154:30 [INFO] [stdout] | [INFO] [stdout] 154 | Native::FastEq { lhs, rhs } => "fast_eq", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:154:35 [INFO] [stdout] | [INFO] [stdout] 154 | Native::FastEq { lhs, rhs } => "fast_eq", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling portal-jsc-common v0.8.0-pre.9 (/opt/rustwide/workdir/crates/portal-jsc-common) [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:155:31 [INFO] [stdout] | [INFO] [stdout] 155 | Native::FastSub { lhs, rhs } => "fast_sub", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling portal-jsc-generator v0.1.0 (/opt/rustwide/workdir/crates/portal-jsc-generator) [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:155:36 [INFO] [stdout] | [INFO] [stdout] 155 | Native::FastSub { lhs, rhs } => "fast_sub", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:156:31 [INFO] [stdout] | [INFO] [stdout] 156 | Native::FastMul { lhs, rhs, imul } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:156:36 [INFO] [stdout] | [INFO] [stdout] 156 | Native::FastMul { lhs, rhs, imul } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:163:31 [INFO] [stdout] | [INFO] [stdout] 163 | Native::FastShl { lhs, rhs } => "fast_shl", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:163:36 [INFO] [stdout] | [INFO] [stdout] 163 | Native::FastShl { lhs, rhs } => "fast_shl", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pat` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:425:31 [INFO] [stdout] | [INFO] [stdout] 425 | Catch::Jump { pat, k } => Some(k), [INFO] [stdout] | ^^^ help: try ignoring the field: `pat: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:430:34 [INFO] [stdout] | [INFO] [stdout] 430 | Term::Return(expr) => vec![], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:431:33 [INFO] [stdout] | [INFO] [stdout] 431 | Term::Throw(expr) => vec![], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:434:25 [INFO] [stdout] | [INFO] [stdout] 434 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:438:36 [INFO] [stdout] | [INFO] [stdout] 438 | Term::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pat` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:455:31 [INFO] [stdout] | [INFO] [stdout] 455 | Catch::Jump { pat, k } => Some(k), [INFO] [stdout] | ^^^ help: try ignoring the field: `pat: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling portal-jsc-swc-cfg v0.8.0-pre.9 (/opt/rustwide/workdir/crates/swc-cfg) [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:460:34 [INFO] [stdout] | [INFO] [stdout] 460 | Term::Return(expr) => vec![], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:461:33 [INFO] [stdout] | [INFO] [stdout] 461 | Term::Throw(expr) => vec![], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:464:25 [INFO] [stdout] | [INFO] [stdout] 464 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:468:36 [INFO] [stdout] | [INFO] [stdout] 468 | Term::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bitflags::bitflags` [INFO] [stdout] --> crates/swc-util/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bitflags::bitflags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cfg` [INFO] [stdout] --> crates/swc-util/src/lib.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | cfg: &SemanticCfg, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling portal-jsc-swc-util v0.8.0-pre.9 (/opt/rustwide/workdir/crates/swc-util) [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/swc-util/src/lib.rs:192:17 [INFO] [stdout] | [INFO] [stdout] 192 | module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/swc-util/src/lib.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 193 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/swc-util/src/lib.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/swc-util/src/lib.rs:205:17 [INFO] [stdout] | [INFO] [stdout] 205 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/swc-util/src/lib.rs:216:17 [INFO] [stdout] | [INFO] [stdout] 216 | module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/swc-util/src/lib.rs:217:17 [INFO] [stdout] | [INFO] [stdout] 217 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/swc-util/src/lib.rs:231:17 [INFO] [stdout] | [INFO] [stdout] 231 | module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/swc-util/src/lib.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 232 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> crates/swc-util/src/lib.rs:253:25 [INFO] [stdout] | [INFO] [stdout] 253 | fn import_of(&self, cx: &Id) -> Option<(Atom, ImportMap)> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ResolveNatives` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:16:41 [INFO] [stdout] | [INFO] [stdout] 16 | use portal_jsc_swc_util::{ImportMapper, ResolveNatives, SemanticCfg, SemanticFlags, ses_method}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AssignExpr`, `ComputedPropName`, and `CondExpr` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | AssignExpr, AssignOp, AssignTarget, BinaryOp, Bool, Callee, Class, ClassMember, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 24 | ComputedPropName, CondExpr, Expr, Function, Lit, MemberExpr, MemberProp, MetaPropKind, Number, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::OnceCell` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::OnceCell, mem::replace}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> crates/swc-tac/src/lam.rs:88:34 [INFO] [stdout] | [INFO] [stdout] 88 | fn iter<'a>(&'a self) -> Box<(dyn Iterator + 'a)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - fn iter<'a>(&'a self) -> Box<(dyn Iterator + 'a)> { [INFO] [stdout] 88 + fn iter<'a>(&'a self) -> Box + 'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `portal_solutions_proxy_signs::PROXY_SIGNS` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use portal_solutions_proxy_signs::PROXY_SIGNS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CallExpr`, `ExprOrSpread`, and `IdentName` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | AssignExpr, BinExpr, CallExpr, CondExpr, Decl, ExprOrSpread, ExprStmt, IdentName, ModuleItem, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::take` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::take; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Context` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::Context; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BlockStmt` and `ReturnStmt` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | use swc_ecma_ast::{BlockStmt, FnExpr, GetterProp, ReturnStmt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Str` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:30:30 [INFO] [stdout] | [INFO] [stdout] 30 | use swc_ecma_ast::{ExprStmt, Str}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> crates/swc-tac/src/splat.rs:184:21 [INFO] [stdout] | [INFO] [stdout] 184 | 'a: loop { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> crates/swc-tac/src/splat.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | ... 'a: loop { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> crates/swc-tac/src/lib.rs:578:17 [INFO] [stdout] | [INFO] [stdout] 578 | 's: for mut s in take(&mut self.blocks[ki].stmts) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | LId::Private { id, obj } => Either::Left(once(obj)), [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:400:28 [INFO] [stdout] | [INFO] [stdout] 400 | TTerm::Jmp(id) => Box::new(std::iter::empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_true` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:403:21 [INFO] [stdout] | [INFO] [stdout] 403 | if_true, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `if_true: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_false` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:404:21 [INFO] [stdout] | [INFO] [stdout] 404 | if_false, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `if_false: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:406:44 [INFO] [stdout] | [INFO] [stdout] 406 | TTerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `default: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lit` [INFO] [stdout] --> crates/swc-tac/src/consts.rs:91:25 [INFO] [stdout] | [INFO] [stdout] 91 | Item::Lit { lit } => true, [INFO] [stdout] | ^^^ help: try ignoring the field: `lit: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | mut t: Id, [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | let mut tmp = o.regs.alloc(()); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `private_name` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:303:37 [INFO] [stdout] | [INFO] [stdout] 303 | MemberProp::PrivateName(private_name) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_private_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/conv.rs:352:13 [INFO] [stdout] | [INFO] [stdout] 352 | _ => anyhow::bail!("todo: {}:{}", file!(), line!()), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/swc-tac/src/conv.rs:352:13 [INFO] [stdout] | [INFO] [stdout] 323 | Callee::Import(_) => TCallee::Import, [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 324 | Callee::Super(_) => TCallee::Super, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 325 | Callee::Expr(e) => match e.as_ref() { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 352 | _ => anyhow::bail!("todo: {}:{}", file!(), line!()), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> crates/swc-tac/src/conv.rs:419:29 [INFO] [stdout] | [INFO] [stdout] 419 | ... t = t2; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> crates/swc-tac/src/conv.rs:424:33 [INFO] [stdout] | [INFO] [stdout] 424 | ... (c, t) = self.expr(i, o, b, t, a)?; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> crates/swc-tac/src/conv.rs:449:21 [INFO] [stdout] | [INFO] [stdout] 449 | (c, t) = self.expr(i, o, b, t, expr)?; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> crates/swc-tac/src/conv.rs:459:21 [INFO] [stdout] | [INFO] [stdout] 459 | (c, t) = self.expr(i, o, b, t, cond)?; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `using_decl` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:540:43 [INFO] [stdout] | [INFO] [stdout] 540 | swc_ecma_ast::Decl::Using(using_decl) => todo!(), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_using_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_interface_decl` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:541:49 [INFO] [stdout] | [INFO] [stdout] 541 | swc_ecma_ast::Decl::TsInterface(ts_interface_decl) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_interface_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_type_alias_decl` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:542:49 [INFO] [stdout] | [INFO] [stdout] 542 | swc_ecma_ast::Decl::TsTypeAlias(ts_type_alias_decl) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_type_alias_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_enum_decl` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:543:44 [INFO] [stdout] | [INFO] [stdout] 543 | swc_ecma_ast::Decl::TsEnum(ts_enum_decl) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_enum_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_module_decl` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:544:46 [INFO] [stdout] | [INFO] [stdout] 544 | swc_ecma_ast::Decl::TsModule(ts_module_decl) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_module_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:554:9 [INFO] [stdout] | [INFO] [stdout] 554 | mut t: Id, [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:639:9 [INFO] [stdout] | [INFO] [stdout] 639 | mut t: Id, [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:644:13 [INFO] [stdout] | [INFO] [stdout] 644 | let mut ps = p.elems.iter().map(|a| a.as_ref()).collect::>(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest_pat` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:890:51 [INFO] [stdout] | [INFO] [stdout] 890 | swc_ecma_ast::ObjectPatProp::Rest(rest_pat) => {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rest_pat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:913:9 [INFO] [stdout] | [INFO] [stdout] 913 | i: &Cfg, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:915:9 [INFO] [stdout] | [INFO] [stdout] 915 | b: Id, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:916:9 [INFO] [stdout] | [INFO] [stdout] 916 | mut t: Id, [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1018:57 [INFO] [stdout] | [INFO] [stdout] 1018 | swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 1060 | / prop_name!(if p.is_static{MemberFlags::STATIC}else{MemberFlags::empty()},PropVal::Item( match p.value.as_ref(){ [INFO] [stdout] 1061 | | None => None, [INFO] [stdout] 1062 | | Some(a) => Some({ [INFO] [stdout] 1063 | | let b2; [INFO] [stdout] ... | [INFO] [stdout] 1066 | | }), [INFO] [stdout] 1067 | | }) => &p.key), [INFO] [stdout] | |_________________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1026:60 [INFO] [stdout] | [INFO] [stdout] 1026 | swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 1060 | / prop_name!(if p.is_static{MemberFlags::STATIC}else{MemberFlags::empty()},PropVal::Item( match p.value.as_ref(){ [INFO] [stdout] 1061 | | None => None, [INFO] [stdout] 1062 | | Some(a) => Some({ [INFO] [stdout] 1063 | | let b2; [INFO] [stdout] ... | [INFO] [stdout] 1066 | | }), [INFO] [stdout] 1067 | | }) => &p.key), [INFO] [stdout] | |_________________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1018:57 [INFO] [stdout] | [INFO] [stdout] 1018 | swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 1094 | members.push(prop_name!(if c.is_static{MemberFlags::STATIC}else{MemberFlags::empty()}, match &c.kind{ [INFO] [stdout] | __________________________________- [INFO] [stdout] 1095 | | swc_ecma_ast::MethodKind::Method => PropVal::Method(f), [INFO] [stdout] 1096 | | swc_ecma_ast::MethodKind::Getter => PropVal::Getter(f), [INFO] [stdout] 1097 | | swc_ecma_ast::MethodKind::Setter => PropVal::Setter(f), [INFO] [stdout] 1098 | | }=> &c.key)); [INFO] [stdout] | |_______________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1026:60 [INFO] [stdout] | [INFO] [stdout] 1026 | swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 1094 | members.push(prop_name!(if c.is_static{MemberFlags::STATIC}else{MemberFlags::empty()}, match &c.kind{ [INFO] [stdout] | __________________________________- [INFO] [stdout] 1095 | | swc_ecma_ast::MethodKind::Method => PropVal::Method(f), [INFO] [stdout] 1096 | | swc_ecma_ast::MethodKind::Getter => PropVal::Getter(f), [INFO] [stdout] 1097 | | swc_ecma_ast::MethodKind::Setter => PropVal::Setter(f), [INFO] [stdout] 1098 | | }=> &c.key)); [INFO] [stdout] | |_______________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1053:13 [INFO] [stdout] | [INFO] [stdout] 1053 | let mut mapper = self.mapper.clone(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1167:9 [INFO] [stdout] | [INFO] [stdout] 1167 | mut right: Ident, [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1500:21 [INFO] [stdout] | [INFO] [stdout] 1500 | let mut tmp = o.regs.alloc(()); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `o2` is assigned to, but never used [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1739:25 [INFO] [stdout] | [INFO] [stdout] 1739 | let o2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_o2` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `o2` is never read [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1740:22 [INFO] [stdout] | [INFO] [stdout] 1740 | (o2, t) = self.expr(i, o, b, t, obj)?; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spread_element` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1997:64 [INFO] [stdout] | [INFO] [stdout] 1997 | ... swc_ecma_ast::PropOrSpread::Spread(spread_element) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spread_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1980:69 [INFO] [stdout] | [INFO] [stdout] 1980 | ... swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 2009 | ... prop_name!(v => &key_value_prop.key) [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1989:72 [INFO] [stdout] | [INFO] [stdout] 1989 | ... swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 2009 | ... prop_name!(v => &key_value_prop.key) [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `assign_prop` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:2011:60 [INFO] [stdout] | [INFO] [stdout] 2011 | ... swc_ecma_ast::Prop::Assign(assign_prop) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_assign_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:2018:45 [INFO] [stdout] | [INFO] [stdout] 2018 | ... let k = k.transform_all( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1980:69 [INFO] [stdout] | [INFO] [stdout] 1980 | ... swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 2030 | ... prop_name!(v => &getter_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1989:72 [INFO] [stdout] | [INFO] [stdout] 1989 | ... swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 2030 | ... prop_name!(v => &getter_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:2041:45 [INFO] [stdout] | [INFO] [stdout] 2041 | ... let k = k.transform_all( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1980:69 [INFO] [stdout] | [INFO] [stdout] 1980 | ... swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 2053 | ... prop_name!(v => &setter_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1989:72 [INFO] [stdout] | [INFO] [stdout] 1989 | ... swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 2053 | ... prop_name!(v => &setter_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1980:69 [INFO] [stdout] | [INFO] [stdout] 1980 | ... swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 2060 | ... prop_name!(v => &method_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1989:72 [INFO] [stdout] | [INFO] [stdout] 1989 | ... swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 2060 | ... prop_name!(v => &method_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1607:21 [INFO] [stdout] | [INFO] [stdout] 1607 | let mut right; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1908:21 [INFO] [stdout] | [INFO] [stdout] 1908 | let mut k = swc_cfg::ToCfgConversionCtx::default(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | (Expr::Assign(a), b) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | (b, Expr::Assign(a)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:164:51 [INFO] [stdout] | [INFO] [stdout] 164 | fn visit_mut_class(&mut self, node: &mut Class) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:215:41 [INFO] [stdout] | [INFO] [stdout] 215 | Expr::Seq(SeqExpr { span, exprs }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:252:37 [INFO] [stdout] | [INFO] [stdout] 252 | Expr::Seq(SeqExpr { span, mut exprs }) if exprs.len() == 1 => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:184:29 [INFO] [stdout] | [INFO] [stdout] 184 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/rew.rs:184:25 [INFO] [stdout] | [INFO] [stdout] 184 | let mut i = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/rew.rs:930:13 [INFO] [stdout] | [INFO] [stdout] 930 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/swc-tac/src/rew.rs:930:13 [INFO] [stdout] | [INFO] [stdout] 883 | crate::LId::Id { id } => swc_ecma_ast::AssignTarget::Simple( [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 889 | crate::LId::Member { obj, mem } => { [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 902 | LId::Private { obj, id } => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 930 | _ => todo!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sf` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:880:9 [INFO] [stdout] | [INFO] [stdout] 880 | sf: &mut (dyn FnMut(&mut Cx, &F) -> Result + '_), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/splat.rs:154:45 [INFO] [stdout] | [INFO] [stdout] 154 | ... let mut d = output.blocks.alloc(Default::default()); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 196 | ... func!(value, g, false) [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `func` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/splat.rs:154:45 [INFO] [stdout] | [INFO] [stdout] 154 | ... let mut d = output.blocks.alloc(Default::default()); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 205 | ... func!(value, func, arrow); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `func` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/splat.rs:278:57 [INFO] [stdout] | [INFO] [stdout] 278 | ... let mut d = [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 343 | ... func!(value, g, false) [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `func` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/splat.rs:278:57 [INFO] [stdout] | [INFO] [stdout] 278 | ... let mut d = [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 352 | ... func!(value, func, arrow); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `func` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `private_name` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:141:47 [INFO] [stdout] | [INFO] [stdout] 141 | swc_ecma_ast::MemberProp::PrivateName(private_name) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_private_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/lib.rs:183:37 [INFO] [stdout] | [INFO] [stdout] 183 | import_mapper: static_map! {_ => None}, [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | matches no values because `ImportMapperReq` is uninhabited [INFO] [stdout] | help: remove the match arm [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> crates/swc-tac/src/lib.rs:183:24 [INFO] [stdout] | [INFO] [stdout] 183 | import_mapper: static_map! {_ => None}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] note: this expression has type `ImportMapperReq`, which is uninhabited [INFO] [stdout] --> crates/swc-tac/src/lib.rs:183:24 [INFO] [stdout] | [INFO] [stdout] 183 | import_mapper: static_map! {_ => None}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::static_map_internal` which comes from the expansion of the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/lib.rs:194:41 [INFO] [stdout] | [INFO] [stdout] 194 | import_mapper: static_map! {a =>self.import_mapper[a].as_deref()}, [INFO] [stdout] | ^----------------------------------- [INFO] [stdout] | | [INFO] [stdout] | matches no values because `ImportMapperReq` is uninhabited [INFO] [stdout] | help: remove the match arm [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> crates/swc-tac/src/lib.rs:194:28 [INFO] [stdout] | [INFO] [stdout] 194 | import_mapper: static_map! {a =>self.import_mapper[a].as_deref()}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] note: this expression has type `ImportMapperReq`, which is uninhabited [INFO] [stdout] --> crates/swc-tac/src/lib.rs:194:28 [INFO] [stdout] | [INFO] [stdout] 194 | import_mapper: static_map! {a =>self.import_mapper[a].as_deref()}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `$crate::static_map_internal` which comes from the expansion of the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/lib.rs:346:21 [INFO] [stdout] | [INFO] [stdout] 346 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/swc-tac/src/lib.rs:346:21 [INFO] [stdout] | [INFO] [stdout] 338 | LId::Id { id } => {} [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 339 | LId::Member { obj, mem } => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 343 | LId::Private { obj, id } => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 346 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:338:31 [INFO] [stdout] | [INFO] [stdout] 338 | LId::Id { id } => {} [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:343:41 [INFO] [stdout] | [INFO] [stdout] 343 | LId::Private { obj, id } => { [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/lib.rs:534:33 [INFO] [stdout] | [INFO] [stdout] 534 | ... _ => return None, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/swc-tac/src/lib.rs:534:33 [INFO] [stdout] | [INFO] [stdout] 525 | ... PropKey::Lit(l) => Lit::Str(Str { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 530 | ... PropKey::Computed(c) => match self.get_item(c)? { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 534 | ... _ => return None, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:655:23 [INFO] [stdout] | [INFO] [stdout] 655 | LId::Id { id } => true, [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:663:25 [INFO] [stdout] | [INFO] [stdout] 663 | Item::Mem { obj, mem } => mem == i, [INFO] [stdout] | ^^^ help: try ignoring the field: `obj: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:666:17 [INFO] [stdout] | [INFO] [stdout] 666 | args, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:692:17 [INFO] [stdout] | [INFO] [stdout] 692 | args, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:688:30 [INFO] [stdout] | [INFO] [stdout] 688 | pub fn will_store(&self, i: &Ident) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pat` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | TCatch::Jump { pat, k } => Some(k), [INFO] [stdout] | ^^^ help: try ignoring the field: `pat: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | TTerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pat` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:69:32 [INFO] [stdout] | [INFO] [stdout] 69 | TCatch::Jump { pat, k } => Some(k), [INFO] [stdout] | ^^^ help: try ignoring the field: `pat: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 79 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:83:33 [INFO] [stdout] | [INFO] [stdout] 83 | TTerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mem` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:804:32 [INFO] [stdout] | [INFO] [stdout] 804 | LId::Member { obj, mem } if obj == a => true, [INFO] [stdout] | ^^^ help: try ignoring the field: `mem: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:810:33 [INFO] [stdout] | [INFO] [stdout] 810 | pub fn taints_object(&self, a: &I) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1279:43 [INFO] [stdout] | [INFO] [stdout] 1279 | ... &mut |cx, a: &Option| Ok::<_, Infallible>(a.as_ref()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1280:43 [INFO] [stdout] | [INFO] [stdout] 1280 | ... &mut |cx, b| Ok(b), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1411:43 [INFO] [stdout] | [INFO] [stdout] 1411 | ... &mut |cx, a| Ok::<_, Infallible>(a.as_mut()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1412:43 [INFO] [stdout] | [INFO] [stdout] 1412 | ... &mut |cx, b| Ok(b), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arrow` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1597:32 [INFO] [stdout] | [INFO] [stdout] 1597 | Item::Func { func, arrow } => Box::new(once(func)), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `arrow: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `superclass` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1603:17 [INFO] [stdout] | [INFO] [stdout] 1603 | superclass, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `superclass: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1622:47 [INFO] [stdout] | [INFO] [stdout] 1622 | swc_tac::Item::Bin { left, right, op } => Box::new([left, right].into_iter()), [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1623:38 [INFO] [stdout] | [INFO] [stdout] 1623 | swc_tac::Item::Un { arg, op } => Box::new(once(arg)), [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mem` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1625:37 [INFO] [stdout] | [INFO] [stdout] 1625 | Item::PrivateMem { obj, mem } | Item::HasPrivateMem { obj, mem } => Box::new(once(obj)), [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] help: try ignoring the field [INFO] [stdout] | [INFO] [stdout] 1625 | Item::PrivateMem { obj, mem: _ } | Item::HasPrivateMem { obj, mem: _ } => Box::new(once(obj)), [INFO] [stdout] | +++ +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1626:35 [INFO] [stdout] | [INFO] [stdout] 1626 | swc_tac::Item::Func { func, arrow } => Box::new(empty()), [INFO] [stdout] | ^^^^ help: try ignoring the field: `func: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arrow` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1626:41 [INFO] [stdout] | [INFO] [stdout] 1626 | swc_tac::Item::Func { func, arrow } => Box::new(empty()), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `arrow: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lit` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1627:34 [INFO] [stdout] | [INFO] [stdout] 1627 | swc_tac::Item::Lit { lit } => Box::new(empty()), [INFO] [stdout] | ^^^ help: try ignoring the field: `lit: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delegate` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1664:43 [INFO] [stdout] | [INFO] [stdout] 1664 | swc_tac::Item::Yield { value, delegate } => Box::new(value.iter()), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `delegate: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constructor` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1673:17 [INFO] [stdout] | [INFO] [stdout] 1673 | constructor, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `constructor: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `begin` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1693:17 [INFO] [stdout] | [INFO] [stdout] 1693 | begin, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `begin: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1694:17 [INFO] [stdout] | [INFO] [stdout] 1694 | end, [INFO] [stdout] | ^^^ help: try ignoring the field: `end: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1647:37 [INFO] [stdout] | [INFO] [stdout] 1647 | PropVal::Getter(a) | PropVal::Setter(a) | PropVal::Method(a) => { [INFO] [stdout] | ^ ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 1647 | PropVal::Getter(_a) | PropVal::Setter(_a) | PropVal::Method(_a) => { [INFO] [stdout] | + + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1676:37 [INFO] [stdout] | [INFO] [stdout] 1676 | PropVal::Getter(a) | PropVal::Setter(a) | PropVal::Method(a) => { [INFO] [stdout] | ^ ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 1676 | PropVal::Getter(_a) | PropVal::Setter(_a) | PropVal::Method(_a) => { [INFO] [stdout] | + + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1721:47 [INFO] [stdout] | [INFO] [stdout] 1721 | swc_tac::Item::Bin { left, right, op } => Box::new([left, right].into_iter()), [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1722:38 [INFO] [stdout] | [INFO] [stdout] 1722 | swc_tac::Item::Un { arg, op } => Box::new(once(arg)), [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mem` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1724:37 [INFO] [stdout] | [INFO] [stdout] 1724 | Item::PrivateMem { obj, mem } | Item::HasPrivateMem { obj, mem } => Box::new(once(obj)), [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] help: try ignoring the field [INFO] [stdout] | [INFO] [stdout] 1724 | Item::PrivateMem { obj, mem: _ } | Item::HasPrivateMem { obj, mem: _ } => Box::new(once(obj)), [INFO] [stdout] | +++ +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1725:35 [INFO] [stdout] | [INFO] [stdout] 1725 | swc_tac::Item::Func { func, arrow } => Box::new(empty()), [INFO] [stdout] | ^^^^ help: try ignoring the field: `func: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arrow` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1725:41 [INFO] [stdout] | [INFO] [stdout] 1725 | swc_tac::Item::Func { func, arrow } => Box::new(empty()), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `arrow: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lit` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1726:34 [INFO] [stdout] | [INFO] [stdout] 1726 | swc_tac::Item::Lit { lit } => Box::new(empty()), [INFO] [stdout] | ^^^ help: try ignoring the field: `lit: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delegate` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1763:43 [INFO] [stdout] | [INFO] [stdout] 1763 | swc_tac::Item::Yield { value, delegate } => Box::new(value.iter_mut()), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `delegate: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constructor` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1772:17 [INFO] [stdout] | [INFO] [stdout] 1772 | constructor, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `constructor: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `begin` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1791:17 [INFO] [stdout] | [INFO] [stdout] 1791 | begin, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `begin: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1792:17 [INFO] [stdout] | [INFO] [stdout] 1792 | end, [INFO] [stdout] | ^^^ help: try ignoring the field: `end: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1746:37 [INFO] [stdout] | [INFO] [stdout] 1746 | PropVal::Getter(a) | PropVal::Setter(a) | PropVal::Method(a) => { [INFO] [stdout] | ^ ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 1746 | PropVal::Getter(_a) | PropVal::Setter(_a) | PropVal::Method(_a) => { [INFO] [stdout] | + + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1778:45 [INFO] [stdout] | [INFO] [stdout] 1778 | ... PropVal::Getter(a) | PropVal::Setter(a) | PropVal::Method(a) => { [INFO] [stdout] | ^ ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 1778 | PropVal::Getter(_a) | PropVal::Setter(_a) | PropVal::Method(_a) => { [INFO] [stdout] | + + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::Args` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::env::Args; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `make_spanned` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:186:29 [INFO] [stdout] | [INFO] [stdout] 186 | SimplStmt::Expr(make_spanned) | SimplStmt::Return(make_spanned) => {} [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 186 | SimplStmt::Expr(_make_spanned) | SimplStmt::Return(_make_spanned) => {} [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/simpl-js/src/lib.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 405 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/simpl-js/src/lib.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 215 | SimplExpr::Ident(i) => match i.extract_own() { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 225 | SimplExpr::Assign(a) => match a.value.target.extract_own() { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 259 | SimplExpr::Bin(b) => Expr::Bin(BinExpr { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 265 | SimplExpr::Lit(l) => Expr::Lit(l), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 405 | _ => todo!(), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:340:43 [INFO] [stdout] | [INFO] [stdout] 340 | SimplCallExpr::Tag { tag, args } => match tag {}, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/simpl-js/src/lib.rs:515:13 [INFO] [stdout] | [INFO] [stdout] 515 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/simpl-js/src/lib.rs:515:13 [INFO] [stdout] | [INFO] [stdout] 433 | SimplStmt::Expr(e) => Stmt::Expr(ExprStmt { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 437 | SimplStmt::Block(b) => Stmt::Block(BlockStmt { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 442 | SimplStmt::Return(e) => Stmt::Return(ReturnStmt { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 446 | SimplStmt::If(i) => match i.value.kind { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 515 | _ => todo!(), [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:609:25 [INFO] [stdout] | [INFO] [stdout] 609 | module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:610:25 [INFO] [stdout] | [INFO] [stdout] 610 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:640:41 [INFO] [stdout] | [INFO] [stdout] 640 | ... module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:641:41 [INFO] [stdout] | [INFO] [stdout] 641 | ... name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_prop_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:648:73 [INFO] [stdout] | [INFO] [stdout] 648 | ... swc_ecma_ast::SimpleAssignTarget::SuperProp(super_prop_expr) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_prop_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:649:69 [INFO] [stdout] | [INFO] [stdout] 649 | ... swc_ecma_ast::SimpleAssignTarget::Paren(paren_expr) => todo!(), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_paren_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling portal-jsc-simpl-js v0.8.0-pre.9 (/opt/rustwide/workdir/crates/simpl-js) [INFO] [stderr] Compiling portal-jsc-swc-tac v0.8.0-pre.9 (/opt/rustwide/workdir/crates/swc-tac) [INFO] [stdout] warning: unused variable: `opt_chain_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:650:72 [INFO] [stdout] | [INFO] [stdout] 650 | ... swc_ecma_ast::SimpleAssignTarget::OptChain(opt_chain_expr) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_opt_chain_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_as_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:651:68 [INFO] [stdout] | [INFO] [stdout] 651 | ... swc_ecma_ast::SimpleAssignTarget::TsAs(ts_as_expr) => todo!(), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_as_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_satisfies_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:652:75 [INFO] [stdout] | [INFO] [stdout] 652 | ... swc_ecma_ast::SimpleAssignTarget::TsSatisfies(ts_satisfies_expr) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_satisfies_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_non_null_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:655:73 [INFO] [stdout] | [INFO] [stdout] 655 | ... swc_ecma_ast::SimpleAssignTarget::TsNonNull(ts_non_null_expr) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_non_null_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_type_assertion` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:659:33 [INFO] [stdout] | [INFO] [stdout] 659 | ... ts_type_assertion, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_type_assertion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_instantiation` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:661:79 [INFO] [stdout] | [INFO] [stdout] 661 | ... swc_ecma_ast::SimpleAssignTarget::TsInstantiation(ts_instantiation) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_instantiation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `invalid` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:664:71 [INFO] [stdout] | [INFO] [stdout] 664 | ... swc_ecma_ast::SimpleAssignTarget::Invalid(invalid) => todo!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_invalid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `assign_target_pat` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:667:53 [INFO] [stdout] | [INFO] [stdout] 667 | swc_ecma_ast::AssignTarget::Pat(assign_target_pat) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_assign_target_pat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `import` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:694:50 [INFO] [stdout] | [INFO] [stdout] 694 | swc_ecma_ast::Callee::Import(import) => todo!(), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_import` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spread` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:754:57 [INFO] [stdout] | [INFO] [stdout] 754 | ... ref spread, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `spread: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/simpl-js/src/lib.rs:669:21 [INFO] [stdout] | [INFO] [stdout] 669 | let mut path = match e { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/simpl-js/src/lib.rs:741:45 [INFO] [stdout] | [INFO] [stdout] 741 | ... let mut path = match &a { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:998:62 [INFO] [stdout] | [INFO] [stdout] 998 | ... Some(Stmt::Break(BreakStmt { span, label: None })) => ( [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `portal_jsc_common::syntax::Asm` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use portal_jsc_common::syntax::Asm; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnaryOp` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:16:74 [INFO] [stdout] | [INFO] [stdout] 16 | use swc_ecma_ast::{Id as Ident, Lit, TsType, TsTypeAnn, TsTypeParamDecl, UnaryOp}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:188:25 [INFO] [stdout] | [INFO] [stdout] 188 | 'a: { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `convert::Infallible` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::BTreeMap, convert::Infallible, sync::OnceLock}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TTerm` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:7:62 [INFO] [stdout] | [INFO] [stdout] 7 | use swc_tac::{Item, LId, TBlock, TCatch, TCfg, TFunc, TStmt, TTerm, ValFlags}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `STerm` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:9:37 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::{SBlock, SFunc, STarget, STerm, SValue, SValueW}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:256:46 [INFO] [stdout] | [INFO] [stdout] 256 | ... .get((n.value.round() as usize)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 256 - .get((n.value.round() as usize)) [INFO] [stdout] 256 + .get(n.value.round() as usize) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:848:51 [INFO] [stdout] | [INFO] [stdout] 848 | ... a.get((n.value.round() as usize)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 848 - a.get((n.value.round() as usize)) [INFO] [stdout] 848 + a.get(n.value.round() as usize) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:113:37 [INFO] [stdout] | [INFO] [stdout] 113 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:113:44 [INFO] [stdout] | [INFO] [stdout] 113 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:113:49 [INFO] [stdout] | [INFO] [stdout] 113 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:264:29 [INFO] [stdout] | [INFO] [stdout] 264 | ... span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:191:33 [INFO] [stdout] | [INFO] [stdout] 191 | ... span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:199:33 [INFO] [stdout] | [INFO] [stdout] 199 | ... span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ok` [INFO] [stdout] --> crates/swc-ssa/src/conv.rs:124:17 [INFO] [stdout] | [INFO] [stdout] 124 | let ok = k; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:65:26 [INFO] [stdout] | [INFO] [stdout] 65 | STerm::Throw(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:66:27 [INFO] [stdout] | [INFO] [stdout] 66 | STerm::Return(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:73:29 [INFO] [stdout] | [INFO] [stdout] 73 | STerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:85:26 [INFO] [stdout] | [INFO] [stdout] 85 | STerm::Throw(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | STerm::Return(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | STerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | f: &'a SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | g: &'a mut SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:245:9 [INFO] [stdout] | [INFO] [stdout] 245 | f: &'a SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 252 | g: &'a mut SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:285:102 [INFO] [stdout] | [INFO] [stdout] 285 | Self::Tail { callee, args } => Box::new(args.iter().map(|SpreadOr { value: a, is_spread: b }|a).cloned().chain({ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:323:106 [INFO] [stdout] | [INFO] [stdout] 323 | Self::Tail { callee, args } => Box::new(args.iter_mut().map(|SpreadOr { value: a, is_spread: b }|a).chain({ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:379:9 [INFO] [stdout] | [INFO] [stdout] 379 | f: &'a SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:386:9 [INFO] [stdout] | [INFO] [stdout] 386 | g: &'a mut SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:397:9 [INFO] [stdout] | [INFO] [stdout] 397 | f: &'a SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:404:9 [INFO] [stdout] | [INFO] [stdout] 404 | g: &'a mut SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:415:9 [INFO] [stdout] | [INFO] [stdout] 415 | f: &'a SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:422:9 [INFO] [stdout] | [INFO] [stdout] 422 | g: &'a mut SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:433:50 [INFO] [stdout] | [INFO] [stdout] 433 | fn add_blockparam(&mut self, k: Self::Block, y: Self::Ty) -> Self::Value { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:450:18 [INFO] [stdout] | [INFO] [stdout] 450 | fn ty(&self, f: &SFunc) -> ::Ty { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/opt_stub.rs:51:42 [INFO] [stdout] | [INFO] [stdout] 51 | ... &mut |_, f| todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:116:45 [INFO] [stdout] | [INFO] [stdout] 116 | ... SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:116:52 [INFO] [stdout] | [INFO] [stdout] 116 | ... SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:116:57 [INFO] [stdout] | [INFO] [stdout] 116 | ... SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:118:46 [INFO] [stdout] | [INFO] [stdout] 118 | ... Item::Just { id } => {} [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:204:58 [INFO] [stdout] | [INFO] [stdout] 204 | ... SValue::EdgeBlocker { value: v, span } => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:204:61 [INFO] [stdout] | [INFO] [stdout] 204 | ... SValue::EdgeBlocker { value: v, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:285:37 [INFO] [stdout] | [INFO] [stdout] 285 | SValue::Param { block, idx, ty } => { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:292:38 [INFO] [stdout] | [INFO] [stdout] 292 | SValue::EdgeBlocker { value, span } => mangle_value(prefix, ctxt, func, *value), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | for (k, kd) in self.blocks.iter_mut() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 35 | for (k, kd) in self.blocks.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | fn inputs<'a>(&'a self, block: B, param: usize) -> Box + 'a> [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:74:39 [INFO] [stdout] | [INFO] [stdout] 74 | fn inputs<'a>(&'a self, block: B, param: usize) -> Box + 'a> [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:95:29 [INFO] [stdout] | [INFO] [stdout] 95 | fn taints_object(&self, id: I) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:106:29 [INFO] [stdout] | [INFO] [stdout] 106 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:106:36 [INFO] [stdout] | [INFO] [stdout] 106 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:106:41 [INFO] [stdout] | [INFO] [stdout] 106 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:107:34 [INFO] [stdout] | [INFO] [stdout] 107 | SValue::Item { item, span } => return Some(item), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:108:30 [INFO] [stdout] | [INFO] [stdout] 108 | SValue::Assign { target, val } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:112:31 [INFO] [stdout] | [INFO] [stdout] 112 | SValue::StoreId { target, val } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:115:42 [INFO] [stdout] | [INFO] [stdout] 115 | SValue::EdgeBlocker { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:129:29 [INFO] [stdout] | [INFO] [stdout] 129 | SValue::Param { block, idx, ty } => return bak, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:129:36 [INFO] [stdout] | [INFO] [stdout] 129 | SValue::Param { block, idx, ty } => return bak, [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:129:41 [INFO] [stdout] | [INFO] [stdout] 129 | SValue::Param { block, idx, ty } => return bak, [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:130:34 [INFO] [stdout] | [INFO] [stdout] 130 | SValue::Item { item, span } => match item { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:136:30 [INFO] [stdout] | [INFO] [stdout] 136 | SValue::Assign { target, val } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:144:42 [INFO] [stdout] | [INFO] [stdout] 144 | SValue::EdgeBlocker { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 159 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:159:36 [INFO] [stdout] | [INFO] [stdout] 159 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:159:41 [INFO] [stdout] | [INFO] [stdout] 159 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:160:34 [INFO] [stdout] | [INFO] [stdout] 160 | SValue::Item { item, span } => return Some(item), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:161:30 [INFO] [stdout] | [INFO] [stdout] 161 | SValue::Assign { target, val } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:165:31 [INFO] [stdout] | [INFO] [stdout] 165 | SValue::StoreId { target, val } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:168:42 [INFO] [stdout] | [INFO] [stdout] 168 | SValue::EdgeBlocker { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:230:41 [INFO] [stdout] | [INFO] [stdout] 230 | SValue::Param { block, idx, ty } if pierce => { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:243:34 [INFO] [stdout] | [INFO] [stdout] 243 | SValue::Item { item, span } => match item { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:235:21 [INFO] [stdout] | [INFO] [stdout] 235 | let mut n = i.next()?; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:336:41 [INFO] [stdout] | [INFO] [stdout] 336 | SValue::Param { block, idx, ty } if pierce => { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:348:30 [INFO] [stdout] | [INFO] [stdout] 348 | Item::Just { id } => None, [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:521:45 [INFO] [stdout] | [INFO] [stdout] 521 | ... (_, _, Some(v), Some(v2)) => (left?, right?), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:521:54 [INFO] [stdout] | [INFO] [stdout] 521 | ... (_, _, Some(v), Some(v2)) => (left?, right?), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:898:30 [INFO] [stdout] | [INFO] [stdout] 898 | Item::Func { func, arrow } => None, [INFO] [stdout] | ^^^^ help: try ignoring the field: `func: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arrow` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:898:36 [INFO] [stdout] | [INFO] [stdout] 898 | Item::Func { func, arrow } => None, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `arrow: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callee` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:900:30 [INFO] [stdout] | [INFO] [stdout] 900 | Item::Call { callee, args } => None, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `callee: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:900:38 [INFO] [stdout] | [INFO] [stdout] 900 | Item::Call { callee, args } => None, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `members` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:901:29 [INFO] [stdout] | [INFO] [stdout] 901 | Item::Obj { members } => None, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `members: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `members` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:902:29 [INFO] [stdout] | [INFO] [stdout] 902 | Item::Arr { members } => None, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `members: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:903:31 [INFO] [stdout] | [INFO] [stdout] 903 | Item::Yield { value, delegate } => None, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delegate` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:903:38 [INFO] [stdout] | [INFO] [stdout] 903 | Item::Yield { value, delegate } => None, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `delegate: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:904:31 [INFO] [stdout] | [INFO] [stdout] 904 | Item::Await { value } => None, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:881:89 [INFO] [stdout] | [INFO] [stdout] 881 | ... let SpreadOr { value: n, is_spread: s } = i.next()?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:338:21 [INFO] [stdout] | [INFO] [stdout] 338 | let mut n = i.next()?.const_in(semantics, k, pierce)?; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:103:38 [INFO] [stdout] | [INFO] [stdout] 103 | SValue::Item { item, span } => match item { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:206:50 [INFO] [stdout] | [INFO] [stdout] 206 | SValue::Assign { target, val } => target.taints_object(a), [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:207:46 [INFO] [stdout] | [INFO] [stdout] 207 | SValue::Item { item, span } => item.taints_object(a), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:208:53 [INFO] [stdout] | [INFO] [stdout] 208 | SValue::Param { block, idx, ty } => match self.input(*block, *idx) { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:229:38 [INFO] [stdout] | [INFO] [stdout] 229 | SValue::Item { item, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling portal-jsc-swc-ssa v0.8.0-pre.9 (/opt/rustwide/workdir/crates/swc-ssa) [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:225:25 [INFO] [stdout] | [INFO] [stdout] 225 | .flat_map(|(a, b)| match &b.value { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:293:29 [INFO] [stdout] | [INFO] [stdout] 293 | SValue::Param { block, idx, ty } => true, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:293:36 [INFO] [stdout] | [INFO] [stdout] 293 | SValue::Param { block, idx, ty } => true, [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:293:41 [INFO] [stdout] | [INFO] [stdout] 293 | SValue::Param { block, idx, ty } => true, [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:294:34 [INFO] [stdout] | [INFO] [stdout] 294 | SValue::Item { item, span } => item.nothrow(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:295:38 [INFO] [stdout] | [INFO] [stdout] 295 | SValue::Assign { target, val } => target.nothrow(), [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:297:31 [INFO] [stdout] | [INFO] [stdout] 297 | SValue::StoreId { target, val } => true, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:297:39 [INFO] [stdout] | [INFO] [stdout] 297 | SValue::StoreId { target, val } => true, [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:298:35 [INFO] [stdout] | [INFO] [stdout] 298 | SValue::EdgeBlocker { value, span } => true, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:298:42 [INFO] [stdout] | [INFO] [stdout] 298 | SValue::EdgeBlocker { value, span } => true, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:303:39 [INFO] [stdout] | [INFO] [stdout] 303 | SValue::StoreId { target, val } if target == id => true, [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:304:34 [INFO] [stdout] | [INFO] [stdout] 304 | SValue::Item { item, span } if item.will_store(id) => true, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:312:29 [INFO] [stdout] | [INFO] [stdout] 312 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:312:36 [INFO] [stdout] | [INFO] [stdout] 312 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:312:41 [INFO] [stdout] | [INFO] [stdout] 312 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:313:34 [INFO] [stdout] | [INFO] [stdout] 313 | SValue::Item { item, span } => Box::new(item.refs().map(|a| *a)), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:317:31 [INFO] [stdout] | [INFO] [stdout] 317 | LId::Id { id } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:324:31 [INFO] [stdout] | [INFO] [stdout] 324 | SValue::StoreId { target, val } => Box::new(once(*val)), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:325:45 [INFO] [stdout] | [INFO] [stdout] 325 | SValue::EdgeBlocker { value: a, span } => Box::new(once(*a)), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:426:29 [INFO] [stdout] | [INFO] [stdout] 426 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:426:36 [INFO] [stdout] | [INFO] [stdout] 426 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:426:41 [INFO] [stdout] | [INFO] [stdout] 426 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:427:34 [INFO] [stdout] | [INFO] [stdout] 427 | SValue::Item { item, span } => Box::new(item.refs()), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:431:31 [INFO] [stdout] | [INFO] [stdout] 431 | LId::Id { id } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:438:31 [INFO] [stdout] | [INFO] [stdout] 438 | SValue::StoreId { target, val } => Box::new(once(val)), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:439:45 [INFO] [stdout] | [INFO] [stdout] 439 | SValue::EdgeBlocker { value: a, span } => Box::new(once(a)), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:444:29 [INFO] [stdout] | [INFO] [stdout] 444 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:444:36 [INFO] [stdout] | [INFO] [stdout] 444 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:444:41 [INFO] [stdout] | [INFO] [stdout] 444 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:445:34 [INFO] [stdout] | [INFO] [stdout] 445 | SValue::Item { item, span } => item.refs_mut(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:449:31 [INFO] [stdout] | [INFO] [stdout] 449 | LId::Id { id } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:456:31 [INFO] [stdout] | [INFO] [stdout] 456 | SValue::StoreId { target, val } => Box::new(once(val)), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:457:45 [INFO] [stdout] | [INFO] [stdout] 457 | SValue::EdgeBlocker { value: a, span } => Box::new(once(a)), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:532:48 [INFO] [stdout] | [INFO] [stdout] 532 | if let SValue::Param { block, idx, ty } = &v.value { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:544:17 [INFO] [stdout] | [INFO] [stdout] 544 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `map` is never read [INFO] [stdout] --> crates/swc-ssa/src/opt_stub.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct OptStub { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 5 | map: BTreeMap, Id>, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `go` is never used [INFO] [stdout] --> crates/swc-ssa/src/opt_stub.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl OptStub { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 8 | fn go( [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:287:17 [INFO] [stdout] | [INFO] [stdout] 287 | / callee.as_ref().map(&mut |a| { [INFO] [stdout] 288 | | v.push(*a); [INFO] [stdout] 289 | | Ok::<_, Infallible>(()) [INFO] [stdout] 290 | | }); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 287 | let _ = callee.as_ref().map(&mut |a| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:325:17 [INFO] [stdout] | [INFO] [stdout] 325 | / callee.as_mut().map(&mut |a| { [INFO] [stdout] 326 | | v.push(a); [INFO] [stdout] 327 | | Ok::<_, Infallible>(()) [INFO] [stdout] 328 | | }); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 325 | let _ = callee.as_mut().map(&mut |a| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Func` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use ssa_traits::{Func, HasChainableValues, HasValues}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 61 | OptTerm::Throw(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:62:29 [INFO] [stdout] | [INFO] [stdout] 62 | OptTerm::Return(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:69:31 [INFO] [stdout] | [INFO] [stdout] 69 | OptTerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | OptTerm::Throw(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | OptTerm::Return(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:90:31 [INFO] [stdout] | [INFO] [stdout] 90 | OptTerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:168:35 [INFO] [stdout] | [INFO] [stdout] 168 | OptValue::Emit { val, ty } => val.vals(), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:170:37 [INFO] [stdout] | [INFO] [stdout] 170 | OptValue::Assert { val, ty } => Box::new(once(*val)), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:182:35 [INFO] [stdout] | [INFO] [stdout] 182 | OptValue::Emit { val, ty } => val.vals_mut(), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:184:37 [INFO] [stdout] | [INFO] [stdout] 184 | OptValue::Assert { val, ty } => Box::new(once(val)), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | f: &'a OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | g: &'a mut OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 253 | f: &'a OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | g: &'a mut OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:375:9 [INFO] [stdout] | [INFO] [stdout] 375 | f: &'a OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:382:9 [INFO] [stdout] | [INFO] [stdout] 382 | g: &'a mut OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:393:9 [INFO] [stdout] | [INFO] [stdout] 393 | f: &'a OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | g: &'a mut OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:411:9 [INFO] [stdout] | [INFO] [stdout] 411 | f: &'a OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:418:9 [INFO] [stdout] | [INFO] [stdout] 418 | g: &'a mut OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:119:37 [INFO] [stdout] | [INFO] [stdout] 119 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:119:44 [INFO] [stdout] | [INFO] [stdout] 119 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:119:49 [INFO] [stdout] | [INFO] [stdout] 119 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:188:45 [INFO] [stdout] | [INFO] [stdout] 188 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:214:45 [INFO] [stdout] | [INFO] [stdout] 214 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:244:53 [INFO] [stdout] | [INFO] [stdout] 244 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:276:53 [INFO] [stdout] | [INFO] [stdout] 276 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:297:53 [INFO] [stdout] | [INFO] [stdout] 297 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:316:38 [INFO] [stdout] | [INFO] [stdout] 316 | ... Some(k) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:370:45 [INFO] [stdout] | [INFO] [stdout] 370 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:406:45 [INFO] [stdout] | [INFO] [stdout] 406 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:430:37 [INFO] [stdout] | [INFO] [stdout] 430 | ... let (x, ty) = state.get(v0).cloned().context("in getting the var")?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nest` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:466:33 [INFO] [stdout] | [INFO] [stdout] 466 | ... nest, [INFO] [stdout] | ^^^^ help: try ignoring the field: `nest: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extensible` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:467:43 [INFO] [stdout] | [INFO] [stdout] 467 | ... extended: extensible, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extensible` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elem_tys` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:468:33 [INFO] [stdout] | [INFO] [stdout] 468 | ... elem_tys, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `elem_tys: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:699:17 [INFO] [stdout] | [INFO] [stdout] 699 | fn try_from(mut value: &'a SFunc) -> Result { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:104:32 [INFO] [stdout] | [INFO] [stdout] 104 | OptValue::Assert { val, ty } => ty.clone(), [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:105:30 [INFO] [stdout] | [INFO] [stdout] 105 | OptValue::Emit { val, ty } => ty.clone(), [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:111:37 [INFO] [stdout] | [INFO] [stdout] 111 | OptValue::Assert { val, ty } => cfg.values[*val].constant(cfg), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:112:35 [INFO] [stdout] | [INFO] [stdout] 112 | OptValue::Emit { val, ty } => match val { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:113:41 [INFO] [stdout] | [INFO] [stdout] 113 | SValue::Item { item: i, span } => match i { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:126:37 [INFO] [stdout] | [INFO] [stdout] 126 | OptValue::Assert { val, ty } => self.val(*val), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:127:35 [INFO] [stdout] | [INFO] [stdout] 127 | OptValue::Emit { val, ty } => Some(val), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:141:37 [INFO] [stdout] | [INFO] [stdout] 141 | OptValue::Assert { val, ty } => self.val_mut(*val), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:142:35 [INFO] [stdout] | [INFO] [stdout] 142 | OptValue::Emit { val, ty } => Some(val), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling portal-jsc-swc-opt-ssa v0.8.0-pre.9 (/opt/rustwide/workdir/crates/swc-opt-ssa) [INFO] [stdout] warning: unused import: `either::Either` [INFO] [stdout] --> crates/portal-jsc-common/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use either::Either; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> crates/portal-jsc-common/src/semantic.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::*` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reflect_get` should have an upper camel case name [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | Reflect_get, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ReflectGet` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reflect_apply` should have an upper camel case name [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | Reflect_apply, [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ReflectApply` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Reflect_set` should have an upper camel case name [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | Reflect_set, [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ReflectSet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `bitflags::bitflags` [INFO] [stdout] --> crates/swc-util/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use bitflags::bitflags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ResolveNatives` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:16:41 [INFO] [stdout] | [INFO] [stdout] 16 | use portal_jsc_swc_util::{ImportMapper, ResolveNatives, SemanticCfg, SemanticFlags, ses_method}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AssignExpr`, `ComputedPropName`, and `CondExpr` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | AssignExpr, AssignOp, AssignTarget, BinaryOp, Bool, Callee, Class, ClassMember, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 24 | ComputedPropName, CondExpr, Expr, Function, Lit, MemberExpr, MemberProp, MetaPropKind, Number, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cell::OnceCell` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::OnceCell, mem::replace}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> crates/swc-tac/src/lam.rs:88:34 [INFO] [stdout] | [INFO] [stdout] 88 | fn iter<'a>(&'a self) -> Box<(dyn Iterator + 'a)> { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - fn iter<'a>(&'a self) -> Box<(dyn Iterator + 'a)> { [INFO] [stdout] 88 + fn iter<'a>(&'a self) -> Box + 'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `portal_solutions_proxy_signs::PROXY_SIGNS` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use portal_solutions_proxy_signs::PROXY_SIGNS; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CallExpr`, `ExprOrSpread`, and `IdentName` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | AssignExpr, BinExpr, CallExpr, CondExpr, Decl, ExprOrSpread, ExprStmt, IdentName, ModuleItem, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env::Args` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::env::Args; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::Infallible` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::Infallible; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem::take` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem::take; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Context` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use anyhow::Context; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BlockStmt` and `ReturnStmt` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | use swc_ecma_ast::{BlockStmt, FnExpr, GetterProp, ReturnStmt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Str` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:30:30 [INFO] [stdout] | [INFO] [stdout] 30 | use swc_ecma_ast::{ExprStmt, Str}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> crates/swc-tac/src/splat.rs:184:21 [INFO] [stdout] | [INFO] [stdout] 184 | 'a: loop { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> crates/swc-tac/src/splat.rs:329:29 [INFO] [stdout] | [INFO] [stdout] 329 | ... 'a: loop { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> crates/swc-tac/src/lib.rs:578:17 [INFO] [stdout] | [INFO] [stdout] 578 | 's: for mut s in take(&mut self.blocks[ki].stmts) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:94:28 [INFO] [stdout] | [INFO] [stdout] 94 | LId::Private { id, obj } => Either::Left(once(obj)), [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `portal_jsc_common::syntax::Asm` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use portal_jsc_common::syntax::Asm; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UnaryOp` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:16:74 [INFO] [stdout] | [INFO] [stdout] 16 | use swc_ecma_ast::{Id as Ident, Lit, TsType, TsTypeAnn, TsTypeParamDecl, UnaryOp}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:188:25 [INFO] [stdout] | [INFO] [stdout] 188 | 'a: { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `convert::Infallible` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:1:34 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::BTreeMap, convert::Infallible, sync::OnceLock}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TTerm` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:7:62 [INFO] [stdout] | [INFO] [stdout] 7 | use swc_tac::{Item, LId, TBlock, TCatch, TCfg, TFunc, TStmt, TTerm, ValFlags}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `STerm` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:9:37 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::{SBlock, SFunc, STarget, STerm, SValue, SValueW}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:256:46 [INFO] [stdout] | [INFO] [stdout] 256 | ... .get((n.value.round() as usize)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 256 - .get((n.value.round() as usize)) [INFO] [stdout] 256 + .get(n.value.round() as usize) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:848:51 [INFO] [stdout] | [INFO] [stdout] 848 | ... a.get((n.value.round() as usize)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 848 - a.get((n.value.round() as usize)) [INFO] [stdout] 848 + a.get(n.value.round() as usize) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:400:28 [INFO] [stdout] | [INFO] [stdout] 400 | TTerm::Jmp(id) => Box::new(std::iter::empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_true` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:403:21 [INFO] [stdout] | [INFO] [stdout] 403 | if_true, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `if_true: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_false` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:404:21 [INFO] [stdout] | [INFO] [stdout] 404 | if_false, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `if_false: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `default` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:406:44 [INFO] [stdout] | [INFO] [stdout] 406 | TTerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `default: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:130:36 [INFO] [stdout] | [INFO] [stdout] 130 | Native::AssertString { value, comptime } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:137:36 [INFO] [stdout] | [INFO] [stdout] 137 | Native::AssertNumber { value, comptime } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:144:38 [INFO] [stdout] | [INFO] [stdout] 144 | Native::AssertStaticFn { value, comptime } => { [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:151:31 [INFO] [stdout] | [INFO] [stdout] 151 | Native::FastAdd { lhs, rhs } => "fast_add", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:151:36 [INFO] [stdout] | [INFO] [stdout] 151 | Native::FastAdd { lhs, rhs } => "fast_add", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:152:31 [INFO] [stdout] | [INFO] [stdout] 152 | Native::FastAnd { lhs, rhs } => "fast_and", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:152:36 [INFO] [stdout] | [INFO] [stdout] 152 | Native::FastAnd { lhs, rhs } => "fast_and", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:153:30 [INFO] [stdout] | [INFO] [stdout] 153 | Native::FastOr { lhs, rhs } => "fast_or", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:153:35 [INFO] [stdout] | [INFO] [stdout] 153 | Native::FastOr { lhs, rhs } => "fast_or", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:154:30 [INFO] [stdout] | [INFO] [stdout] 154 | Native::FastEq { lhs, rhs } => "fast_eq", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:154:35 [INFO] [stdout] | [INFO] [stdout] 154 | Native::FastEq { lhs, rhs } => "fast_eq", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:155:31 [INFO] [stdout] | [INFO] [stdout] 155 | Native::FastSub { lhs, rhs } => "fast_sub", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:155:36 [INFO] [stdout] | [INFO] [stdout] 155 | Native::FastSub { lhs, rhs } => "fast_sub", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:156:31 [INFO] [stdout] | [INFO] [stdout] 156 | Native::FastMul { lhs, rhs, imul } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:156:36 [INFO] [stdout] | [INFO] [stdout] 156 | Native::FastMul { lhs, rhs, imul } => { [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:163:31 [INFO] [stdout] | [INFO] [stdout] 163 | Native::FastShl { lhs, rhs } => "fast_shl", [INFO] [stdout] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs` [INFO] [stdout] --> crates/portal-jsc-common/src/natives.rs:163:36 [INFO] [stdout] | [INFO] [stdout] 163 | Native::FastShl { lhs, rhs } => "fast_shl", [INFO] [stdout] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pat` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:425:31 [INFO] [stdout] | [INFO] [stdout] 425 | Catch::Jump { pat, k } => Some(k), [INFO] [stdout] | ^^^ help: try ignoring the field: `pat: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:430:34 [INFO] [stdout] | [INFO] [stdout] 430 | Term::Return(expr) => vec![], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:431:33 [INFO] [stdout] | [INFO] [stdout] 431 | Term::Throw(expr) => vec![], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:434:25 [INFO] [stdout] | [INFO] [stdout] 434 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:438:36 [INFO] [stdout] | [INFO] [stdout] 438 | Term::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pat` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:455:31 [INFO] [stdout] | [INFO] [stdout] 455 | Catch::Jump { pat, k } => Some(k), [INFO] [stdout] | ^^^ help: try ignoring the field: `pat: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:460:34 [INFO] [stdout] | [INFO] [stdout] 460 | Term::Return(expr) => vec![], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:461:33 [INFO] [stdout] | [INFO] [stdout] 461 | Term::Throw(expr) => vec![], [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:464:25 [INFO] [stdout] | [INFO] [stdout] 464 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-cfg/src/lib.rs:468:36 [INFO] [stdout] | [INFO] [stdout] 468 | Term::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cfg` [INFO] [stdout] --> crates/swc-util/src/lib.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | cfg: &SemanticCfg, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Func` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use ssa_traits::{Func, HasChainableValues, HasValues}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 61 | OptTerm::Throw(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:62:29 [INFO] [stdout] | [INFO] [stdout] 62 | OptTerm::Return(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:69:31 [INFO] [stdout] | [INFO] [stdout] 69 | OptTerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:82:28 [INFO] [stdout] | [INFO] [stdout] 82 | OptTerm::Throw(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | OptTerm::Return(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:86:17 [INFO] [stdout] | [INFO] [stdout] 86 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:90:31 [INFO] [stdout] | [INFO] [stdout] 90 | OptTerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:168:35 [INFO] [stdout] | [INFO] [stdout] 168 | OptValue::Emit { val, ty } => val.vals(), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:170:37 [INFO] [stdout] | [INFO] [stdout] 170 | OptValue::Assert { val, ty } => Box::new(once(*val)), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:182:35 [INFO] [stdout] | [INFO] [stdout] 182 | OptValue::Emit { val, ty } => val.vals_mut(), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:184:37 [INFO] [stdout] | [INFO] [stdout] 184 | OptValue::Assert { val, ty } => Box::new(once(val)), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | f: &'a OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | g: &'a mut OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:253:9 [INFO] [stdout] | [INFO] [stdout] 253 | f: &'a OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:260:9 [INFO] [stdout] | [INFO] [stdout] 260 | g: &'a mut OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/swc-util/src/lib.rs:192:17 [INFO] [stdout] | [INFO] [stdout] 192 | module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/swc-util/src/lib.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 193 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/swc-util/src/lib.rs:204:17 [INFO] [stdout] | [INFO] [stdout] 204 | module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/swc-util/src/lib.rs:205:17 [INFO] [stdout] | [INFO] [stdout] 205 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/swc-util/src/lib.rs:216:17 [INFO] [stdout] | [INFO] [stdout] 216 | module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/swc-util/src/lib.rs:217:17 [INFO] [stdout] | [INFO] [stdout] 217 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/swc-util/src/lib.rs:231:17 [INFO] [stdout] | [INFO] [stdout] 231 | module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/swc-util/src/lib.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 232 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:375:9 [INFO] [stdout] | [INFO] [stdout] 375 | f: &'a OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:382:9 [INFO] [stdout] | [INFO] [stdout] 382 | g: &'a mut OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:393:9 [INFO] [stdout] | [INFO] [stdout] 393 | f: &'a OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:400:9 [INFO] [stdout] | [INFO] [stdout] 400 | g: &'a mut OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:411:9 [INFO] [stdout] | [INFO] [stdout] 411 | f: &'a OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-opt-ssa/src/impls.rs:418:9 [INFO] [stdout] | [INFO] [stdout] 418 | g: &'a mut OptFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> crates/swc-util/src/lib.rs:253:25 [INFO] [stdout] | [INFO] [stdout] 253 | fn import_of(&self, cx: &Id) -> Option<(Atom, ImportMap)> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:119:37 [INFO] [stdout] | [INFO] [stdout] 119 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:119:44 [INFO] [stdout] | [INFO] [stdout] 119 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:119:49 [INFO] [stdout] | [INFO] [stdout] 119 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:188:45 [INFO] [stdout] | [INFO] [stdout] 188 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:214:45 [INFO] [stdout] | [INFO] [stdout] 214 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:244:53 [INFO] [stdout] | [INFO] [stdout] 244 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:276:53 [INFO] [stdout] | [INFO] [stdout] 276 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:297:53 [INFO] [stdout] | [INFO] [stdout] 297 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:316:38 [INFO] [stdout] | [INFO] [stdout] 316 | ... Some(k) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:370:45 [INFO] [stdout] | [INFO] [stdout] 370 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:406:45 [INFO] [stdout] | [INFO] [stdout] 406 | ... op => ( [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_op` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:430:37 [INFO] [stdout] | [INFO] [stdout] 430 | ... let (x, ty) = state.get(v0).cloned().context("in getting the var")?; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nest` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:466:33 [INFO] [stdout] | [INFO] [stdout] 466 | ... nest, [INFO] [stdout] | ^^^^ help: try ignoring the field: `nest: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `extensible` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:467:43 [INFO] [stdout] | [INFO] [stdout] 467 | ... extended: extensible, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extensible` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `elem_tys` [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:468:33 [INFO] [stdout] | [INFO] [stdout] 468 | ... elem_tys, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `elem_tys: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-opt-ssa/src/into.rs:699:17 [INFO] [stdout] | [INFO] [stdout] 699 | fn try_from(mut value: &'a SFunc) -> Result { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:104:32 [INFO] [stdout] | [INFO] [stdout] 104 | OptValue::Assert { val, ty } => ty.clone(), [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:105:30 [INFO] [stdout] | [INFO] [stdout] 105 | OptValue::Emit { val, ty } => ty.clone(), [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:111:37 [INFO] [stdout] | [INFO] [stdout] 111 | OptValue::Assert { val, ty } => cfg.values[*val].constant(cfg), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:112:35 [INFO] [stdout] | [INFO] [stdout] 112 | OptValue::Emit { val, ty } => match val { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:113:41 [INFO] [stdout] | [INFO] [stdout] 113 | SValue::Item { item: i, span } => match i { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:126:37 [INFO] [stdout] | [INFO] [stdout] 126 | OptValue::Assert { val, ty } => self.val(*val), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:127:35 [INFO] [stdout] | [INFO] [stdout] 127 | OptValue::Emit { val, ty } => Some(val), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:141:37 [INFO] [stdout] | [INFO] [stdout] 141 | OptValue::Assert { val, ty } => self.val_mut(*val), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-opt-ssa/src/lib.rs:142:35 [INFO] [stdout] | [INFO] [stdout] 142 | OptValue::Emit { val, ty } => Some(val), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `make_spanned` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:186:29 [INFO] [stdout] | [INFO] [stdout] 186 | SimplStmt::Expr(make_spanned) | SimplStmt::Return(make_spanned) => {} [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 186 | SimplStmt::Expr(_make_spanned) | SimplStmt::Return(_make_spanned) => {} [INFO] [stdout] | + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/simpl-js/src/lib.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 405 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/simpl-js/src/lib.rs:405:13 [INFO] [stdout] | [INFO] [stdout] 215 | SimplExpr::Ident(i) => match i.extract_own() { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 225 | SimplExpr::Assign(a) => match a.value.target.extract_own() { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 259 | SimplExpr::Bin(b) => Expr::Bin(BinExpr { [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 265 | SimplExpr::Lit(l) => Expr::Lit(l), [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 405 | _ => todo!(), [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:340:43 [INFO] [stdout] | [INFO] [stdout] 340 | SimplCallExpr::Tag { tag, args } => match tag {}, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/simpl-js/src/lib.rs:515:13 [INFO] [stdout] | [INFO] [stdout] 515 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/simpl-js/src/lib.rs:515:13 [INFO] [stdout] | [INFO] [stdout] 433 | SimplStmt::Expr(e) => Stmt::Expr(ExprStmt { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 437 | SimplStmt::Block(b) => Stmt::Block(BlockStmt { [INFO] [stdout] | ------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 442 | SimplStmt::Return(e) => Stmt::Return(ReturnStmt { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 446 | SimplStmt::If(i) => match i.value.kind { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 515 | _ => todo!(), [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:609:25 [INFO] [stdout] | [INFO] [stdout] 609 | module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:610:25 [INFO] [stdout] | [INFO] [stdout] 610 | name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `module` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:640:41 [INFO] [stdout] | [INFO] [stdout] 640 | ... module, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:641:41 [INFO] [stdout] | [INFO] [stdout] 641 | ... name, [INFO] [stdout] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `super_prop_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:648:73 [INFO] [stdout] | [INFO] [stdout] 648 | ... swc_ecma_ast::SimpleAssignTarget::SuperProp(super_prop_expr) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_super_prop_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `paren_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:649:69 [INFO] [stdout] | [INFO] [stdout] 649 | ... swc_ecma_ast::SimpleAssignTarget::Paren(paren_expr) => todo!(), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_paren_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `opt_chain_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:650:72 [INFO] [stdout] | [INFO] [stdout] 650 | ... swc_ecma_ast::SimpleAssignTarget::OptChain(opt_chain_expr) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_opt_chain_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_as_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:651:68 [INFO] [stdout] | [INFO] [stdout] 651 | ... swc_ecma_ast::SimpleAssignTarget::TsAs(ts_as_expr) => todo!(), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_as_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_satisfies_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:652:75 [INFO] [stdout] | [INFO] [stdout] 652 | ... swc_ecma_ast::SimpleAssignTarget::TsSatisfies(ts_satisfies_expr) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_satisfies_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_non_null_expr` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:655:73 [INFO] [stdout] | [INFO] [stdout] 655 | ... swc_ecma_ast::SimpleAssignTarget::TsNonNull(ts_non_null_expr) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_non_null_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_type_assertion` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:659:33 [INFO] [stdout] | [INFO] [stdout] 659 | ... ts_type_assertion, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_type_assertion` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_instantiation` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:661:79 [INFO] [stdout] | [INFO] [stdout] 661 | ... swc_ecma_ast::SimpleAssignTarget::TsInstantiation(ts_instantiation) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_instantiation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `invalid` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:664:71 [INFO] [stdout] | [INFO] [stdout] 664 | ... swc_ecma_ast::SimpleAssignTarget::Invalid(invalid) => todo!(), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_invalid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `assign_target_pat` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:667:53 [INFO] [stdout] | [INFO] [stdout] 667 | swc_ecma_ast::AssignTarget::Pat(assign_target_pat) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_assign_target_pat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `import` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:694:50 [INFO] [stdout] | [INFO] [stdout] 694 | swc_ecma_ast::Callee::Import(import) => todo!(), [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_import` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spread` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:754:57 [INFO] [stdout] | [INFO] [stdout] 754 | ... ref spread, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `spread: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/simpl-js/src/lib.rs:669:21 [INFO] [stdout] | [INFO] [stdout] 669 | let mut path = match e { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/simpl-js/src/lib.rs:741:45 [INFO] [stdout] | [INFO] [stdout] 741 | ... let mut path = match &a { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/simpl-js/src/lib.rs:998:62 [INFO] [stdout] | [INFO] [stdout] 998 | ... Some(Stmt::Break(BreakStmt { span, label: None })) => ( [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lit` [INFO] [stdout] --> crates/swc-tac/src/consts.rs:91:25 [INFO] [stdout] | [INFO] [stdout] 91 | Item::Lit { lit } => true, [INFO] [stdout] | ^^^ help: try ignoring the field: `lit: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | mut t: Id, [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | let mut tmp = o.regs.alloc(()); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `private_name` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:303:37 [INFO] [stdout] | [INFO] [stdout] 303 | MemberProp::PrivateName(private_name) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_private_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/conv.rs:352:13 [INFO] [stdout] | [INFO] [stdout] 352 | _ => anyhow::bail!("todo: {}:{}", file!(), line!()), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/swc-tac/src/conv.rs:352:13 [INFO] [stdout] | [INFO] [stdout] 323 | Callee::Import(_) => TCallee::Import, [INFO] [stdout] | ----------------- matches some of the same values [INFO] [stdout] 324 | Callee::Super(_) => TCallee::Super, [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 325 | Callee::Expr(e) => match e.as_ref() { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 352 | _ => anyhow::bail!("todo: {}:{}", file!(), line!()), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> crates/swc-tac/src/conv.rs:419:29 [INFO] [stdout] | [INFO] [stdout] 419 | ... t = t2; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> crates/swc-tac/src/conv.rs:424:33 [INFO] [stdout] | [INFO] [stdout] 424 | ... (c, t) = self.expr(i, o, b, t, a)?; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> crates/swc-tac/src/conv.rs:449:21 [INFO] [stdout] | [INFO] [stdout] 449 | (c, t) = self.expr(i, o, b, t, expr)?; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `t` is never read [INFO] [stdout] --> crates/swc-tac/src/conv.rs:459:21 [INFO] [stdout] | [INFO] [stdout] 459 | (c, t) = self.expr(i, o, b, t, cond)?; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `using_decl` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:540:43 [INFO] [stdout] | [INFO] [stdout] 540 | swc_ecma_ast::Decl::Using(using_decl) => todo!(), [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_using_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_interface_decl` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:541:49 [INFO] [stdout] | [INFO] [stdout] 541 | swc_ecma_ast::Decl::TsInterface(ts_interface_decl) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_interface_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_type_alias_decl` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:542:49 [INFO] [stdout] | [INFO] [stdout] 542 | swc_ecma_ast::Decl::TsTypeAlias(ts_type_alias_decl) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_type_alias_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_enum_decl` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:543:44 [INFO] [stdout] | [INFO] [stdout] 543 | swc_ecma_ast::Decl::TsEnum(ts_enum_decl) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_enum_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ts_module_decl` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:544:46 [INFO] [stdout] | [INFO] [stdout] 544 | swc_ecma_ast::Decl::TsModule(ts_module_decl) => todo!(), [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_module_decl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:554:9 [INFO] [stdout] | [INFO] [stdout] 554 | mut t: Id, [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:639:9 [INFO] [stdout] | [INFO] [stdout] 639 | mut t: Id, [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:644:13 [INFO] [stdout] | [INFO] [stdout] 644 | let mut ps = p.elems.iter().map(|a| a.as_ref()).collect::>(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:113:37 [INFO] [stdout] | [INFO] [stdout] 113 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:113:44 [INFO] [stdout] | [INFO] [stdout] 113 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:113:49 [INFO] [stdout] | [INFO] [stdout] 113 | SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rest_pat` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:890:51 [INFO] [stdout] | [INFO] [stdout] 890 | swc_ecma_ast::ObjectPatProp::Rest(rest_pat) => {} [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rest_pat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:264:29 [INFO] [stdout] | [INFO] [stdout] 264 | ... span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:191:33 [INFO] [stdout] | [INFO] [stdout] 191 | ... span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/consts.rs:199:33 [INFO] [stdout] | [INFO] [stdout] 199 | ... span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:913:9 [INFO] [stdout] | [INFO] [stdout] 913 | i: &Cfg, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:915:9 [INFO] [stdout] | [INFO] [stdout] 915 | b: Id, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:916:9 [INFO] [stdout] | [INFO] [stdout] 916 | mut t: Id, [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1018:57 [INFO] [stdout] | [INFO] [stdout] 1018 | swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 1060 | / prop_name!(if p.is_static{MemberFlags::STATIC}else{MemberFlags::empty()},PropVal::Item( match p.value.as_ref(){ [INFO] [stdout] 1061 | | None => None, [INFO] [stdout] 1062 | | Some(a) => Some({ [INFO] [stdout] 1063 | | let b2; [INFO] [stdout] ... | [INFO] [stdout] 1066 | | }), [INFO] [stdout] 1067 | | }) => &p.key), [INFO] [stdout] | |_________________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1026:60 [INFO] [stdout] | [INFO] [stdout] 1026 | swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 1060 | / prop_name!(if p.is_static{MemberFlags::STATIC}else{MemberFlags::empty()},PropVal::Item( match p.value.as_ref(){ [INFO] [stdout] 1061 | | None => None, [INFO] [stdout] 1062 | | Some(a) => Some({ [INFO] [stdout] 1063 | | let b2; [INFO] [stdout] ... | [INFO] [stdout] 1066 | | }), [INFO] [stdout] 1067 | | }) => &p.key), [INFO] [stdout] | |_________________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1018:57 [INFO] [stdout] | [INFO] [stdout] 1018 | swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 1094 | members.push(prop_name!(if c.is_static{MemberFlags::STATIC}else{MemberFlags::empty()}, match &c.kind{ [INFO] [stdout] | __________________________________- [INFO] [stdout] 1095 | | swc_ecma_ast::MethodKind::Method => PropVal::Method(f), [INFO] [stdout] 1096 | | swc_ecma_ast::MethodKind::Getter => PropVal::Getter(f), [INFO] [stdout] 1097 | | swc_ecma_ast::MethodKind::Setter => PropVal::Setter(f), [INFO] [stdout] 1098 | | }=> &c.key)); [INFO] [stdout] | |_______________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1026:60 [INFO] [stdout] | [INFO] [stdout] 1026 | swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 1094 | members.push(prop_name!(if c.is_static{MemberFlags::STATIC}else{MemberFlags::empty()}, match &c.kind{ [INFO] [stdout] | __________________________________- [INFO] [stdout] 1095 | | swc_ecma_ast::MethodKind::Method => PropVal::Method(f), [INFO] [stdout] 1096 | | swc_ecma_ast::MethodKind::Getter => PropVal::Getter(f), [INFO] [stdout] 1097 | | swc_ecma_ast::MethodKind::Setter => PropVal::Setter(f), [INFO] [stdout] 1098 | | }=> &c.key)); [INFO] [stdout] | |_______________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1053:13 [INFO] [stdout] | [INFO] [stdout] 1053 | let mut mapper = self.mapper.clone(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ok` [INFO] [stdout] --> crates/swc-ssa/src/conv.rs:124:17 [INFO] [stdout] | [INFO] [stdout] 124 | let ok = k; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1167:9 [INFO] [stdout] | [INFO] [stdout] 1167 | mut right: Ident, [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1500:21 [INFO] [stdout] | [INFO] [stdout] 1500 | let mut tmp = o.regs.alloc(()); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `o2` is assigned to, but never used [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1739:25 [INFO] [stdout] | [INFO] [stdout] 1739 | let o2; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_o2` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `o2` is never read [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1740:22 [INFO] [stdout] | [INFO] [stdout] 1740 | (o2, t) = self.expr(i, o, b, t, obj)?; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `spread_element` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1997:64 [INFO] [stdout] | [INFO] [stdout] 1997 | ... swc_ecma_ast::PropOrSpread::Spread(spread_element) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_spread_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1980:69 [INFO] [stdout] | [INFO] [stdout] 1980 | ... swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 2009 | ... prop_name!(v => &key_value_prop.key) [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1989:72 [INFO] [stdout] | [INFO] [stdout] 1989 | ... swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 2009 | ... prop_name!(v => &key_value_prop.key) [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `assign_prop` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:2011:60 [INFO] [stdout] | [INFO] [stdout] 2011 | ... swc_ecma_ast::Prop::Assign(assign_prop) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_assign_prop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:2018:45 [INFO] [stdout] | [INFO] [stdout] 2018 | ... let k = k.transform_all( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1980:69 [INFO] [stdout] | [INFO] [stdout] 1980 | ... swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 2030 | ... prop_name!(v => &getter_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1989:72 [INFO] [stdout] | [INFO] [stdout] 1989 | ... swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 2030 | ... prop_name!(v => &getter_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:2041:45 [INFO] [stdout] | [INFO] [stdout] 2041 | ... let k = k.transform_all( [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1980:69 [INFO] [stdout] | [INFO] [stdout] 1980 | ... swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 2053 | ... prop_name!(v => &setter_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1989:72 [INFO] [stdout] | [INFO] [stdout] 1989 | ... swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 2053 | ... prop_name!(v => &setter_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1980:69 [INFO] [stdout] | [INFO] [stdout] 1980 | ... swc_ecma_ast::PropName::Num(number) => { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stdout] ... [INFO] [stdout] 2060 | ... prop_name!(v => &method_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `big_int` [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1989:72 [INFO] [stdout] | [INFO] [stdout] 1989 | ... swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stdout] ... [INFO] [stdout] 2060 | ... prop_name!(v => &method_prop.key) [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:65:26 [INFO] [stdout] | [INFO] [stdout] 65 | STerm::Throw(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:66:27 [INFO] [stdout] | [INFO] [stdout] 66 | STerm::Return(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:73:29 [INFO] [stdout] | [INFO] [stdout] 73 | STerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:85:26 [INFO] [stdout] | [INFO] [stdout] 85 | STerm::Throw(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | STerm::Return(id) => Box::new(empty()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:93:29 [INFO] [stdout] | [INFO] [stdout] 93 | STerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:183:9 [INFO] [stdout] | [INFO] [stdout] 183 | f: &'a SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | g: &'a mut SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:245:9 [INFO] [stdout] | [INFO] [stdout] 245 | f: &'a SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:252:9 [INFO] [stdout] | [INFO] [stdout] 252 | g: &'a mut SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:285:102 [INFO] [stdout] | [INFO] [stdout] 285 | Self::Tail { callee, args } => Box::new(args.iter().map(|SpreadOr { value: a, is_spread: b }|a).cloned().chain({ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:323:106 [INFO] [stdout] | [INFO] [stdout] 323 | Self::Tail { callee, args } => Box::new(args.iter_mut().map(|SpreadOr { value: a, is_spread: b }|a).chain({ [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1607:21 [INFO] [stdout] | [INFO] [stdout] 1607 | let mut right; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/conv.rs:1908:21 [INFO] [stdout] | [INFO] [stdout] 1908 | let mut k = swc_cfg::ToCfgConversionCtx::default(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:379:9 [INFO] [stdout] | [INFO] [stdout] 379 | f: &'a SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:386:9 [INFO] [stdout] | [INFO] [stdout] 386 | g: &'a mut SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:397:9 [INFO] [stdout] | [INFO] [stdout] 397 | f: &'a SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:404:9 [INFO] [stdout] | [INFO] [stdout] 404 | g: &'a mut SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:415:9 [INFO] [stdout] | [INFO] [stdout] 415 | f: &'a SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:422:9 [INFO] [stdout] | [INFO] [stdout] 422 | g: &'a mut SFunc, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:433:50 [INFO] [stdout] | [INFO] [stdout] 433 | fn add_blockparam(&mut self, k: Self::Block, y: Self::Ty) -> Self::Value { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:450:18 [INFO] [stdout] | [INFO] [stdout] 450 | fn ty(&self, f: &SFunc) -> ::Ty { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> crates/swc-ssa/src/opt_stub.rs:51:42 [INFO] [stdout] | [INFO] [stdout] 51 | ... &mut |_, f| todo!(), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:116:45 [INFO] [stdout] | [INFO] [stdout] 116 | ... SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:116:52 [INFO] [stdout] | [INFO] [stdout] 116 | ... SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:116:57 [INFO] [stdout] | [INFO] [stdout] 116 | ... SValue::Param { block, idx, ty } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:118:46 [INFO] [stdout] | [INFO] [stdout] 118 | ... Item::Just { id } => {} [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:204:58 [INFO] [stdout] | [INFO] [stdout] 204 | ... SValue::EdgeBlocker { value: v, span } => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:204:61 [INFO] [stdout] | [INFO] [stdout] 204 | ... SValue::EdgeBlocker { value: v, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:46:31 [INFO] [stdout] | [INFO] [stdout] 46 | (Expr::Assign(a), b) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | (b, Expr::Assign(a)) => { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:164:51 [INFO] [stdout] | [INFO] [stdout] 164 | fn visit_mut_class(&mut self, node: &mut Class) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:285:37 [INFO] [stdout] | [INFO] [stdout] 285 | SValue::Param { block, idx, ty } => { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:290:13 [INFO] [stdout] | [INFO] [stdout] 290 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/rew.rs:292:38 [INFO] [stdout] | [INFO] [stdout] 292 | SValue::EdgeBlocker { value, span } => mangle_value(prefix, ctxt, func, *value), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:215:41 [INFO] [stdout] | [INFO] [stdout] 215 | Expr::Seq(SeqExpr { span, exprs }) => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | for (k, kd) in self.blocks.iter_mut() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:22:21 [INFO] [stdout] | [INFO] [stdout] 22 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `k` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 35 | for (k, kd) in self.blocks.iter() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_k` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-tac/src/prepa.rs:252:37 [INFO] [stdout] | [INFO] [stdout] 252 | Expr::Seq(SeqExpr { span, mut exprs }) if exprs.len() == 1 => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | fn inputs<'a>(&'a self, block: B, param: usize) -> Box + 'a> [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_block` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:74:39 [INFO] [stdout] | [INFO] [stdout] 74 | fn inputs<'a>(&'a self, block: B, param: usize) -> Box + 'a> [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:95:29 [INFO] [stdout] | [INFO] [stdout] 95 | fn taints_object(&self, id: I) -> bool { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:106:29 [INFO] [stdout] | [INFO] [stdout] 106 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:106:36 [INFO] [stdout] | [INFO] [stdout] 106 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:106:41 [INFO] [stdout] | [INFO] [stdout] 106 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:107:34 [INFO] [stdout] | [INFO] [stdout] 107 | SValue::Item { item, span } => return Some(item), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:108:30 [INFO] [stdout] | [INFO] [stdout] 108 | SValue::Assign { target, val } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:112:31 [INFO] [stdout] | [INFO] [stdout] 112 | SValue::StoreId { target, val } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:115:42 [INFO] [stdout] | [INFO] [stdout] 115 | SValue::EdgeBlocker { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:129:29 [INFO] [stdout] | [INFO] [stdout] 129 | SValue::Param { block, idx, ty } => return bak, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:129:36 [INFO] [stdout] | [INFO] [stdout] 129 | SValue::Param { block, idx, ty } => return bak, [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:129:41 [INFO] [stdout] | [INFO] [stdout] 129 | SValue::Param { block, idx, ty } => return bak, [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:130:34 [INFO] [stdout] | [INFO] [stdout] 130 | SValue::Item { item, span } => match item { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:136:30 [INFO] [stdout] | [INFO] [stdout] 136 | SValue::Assign { target, val } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:144:42 [INFO] [stdout] | [INFO] [stdout] 144 | SValue::EdgeBlocker { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:159:29 [INFO] [stdout] | [INFO] [stdout] 159 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:159:36 [INFO] [stdout] | [INFO] [stdout] 159 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:159:41 [INFO] [stdout] | [INFO] [stdout] 159 | SValue::Param { block, idx, ty } => return None, [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:160:34 [INFO] [stdout] | [INFO] [stdout] 160 | SValue::Item { item, span } => return Some(item), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:161:30 [INFO] [stdout] | [INFO] [stdout] 161 | SValue::Assign { target, val } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:165:31 [INFO] [stdout] | [INFO] [stdout] 165 | SValue::StoreId { target, val } => { [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:168:42 [INFO] [stdout] | [INFO] [stdout] 168 | SValue::EdgeBlocker { value, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:184:29 [INFO] [stdout] | [INFO] [stdout] 184 | let mut i = 0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:230:41 [INFO] [stdout] | [INFO] [stdout] 230 | SValue::Param { block, idx, ty } if pierce => { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:243:34 [INFO] [stdout] | [INFO] [stdout] 243 | SValue::Item { item, span } => match item { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:235:21 [INFO] [stdout] | [INFO] [stdout] 235 | let mut n = i.next()?; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:336:41 [INFO] [stdout] | [INFO] [stdout] 336 | SValue::Param { block, idx, ty } if pierce => { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:348:30 [INFO] [stdout] | [INFO] [stdout] 348 | Item::Just { id } => None, [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:521:45 [INFO] [stdout] | [INFO] [stdout] 521 | ... (_, _, Some(v), Some(v2)) => (left?, right?), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:521:54 [INFO] [stdout] | [INFO] [stdout] 521 | ... (_, _, Some(v), Some(v2)) => (left?, right?), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:898:30 [INFO] [stdout] | [INFO] [stdout] 898 | Item::Func { func, arrow } => None, [INFO] [stdout] | ^^^^ help: try ignoring the field: `func: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arrow` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:898:36 [INFO] [stdout] | [INFO] [stdout] 898 | Item::Func { func, arrow } => None, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `arrow: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callee` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:900:30 [INFO] [stdout] | [INFO] [stdout] 900 | Item::Call { callee, args } => None, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `callee: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:900:38 [INFO] [stdout] | [INFO] [stdout] 900 | Item::Call { callee, args } => None, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `members` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:901:29 [INFO] [stdout] | [INFO] [stdout] 901 | Item::Obj { members } => None, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `members: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `members` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:902:29 [INFO] [stdout] | [INFO] [stdout] 902 | Item::Arr { members } => None, [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `members: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:903:31 [INFO] [stdout] | [INFO] [stdout] 903 | Item::Yield { value, delegate } => None, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delegate` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:903:38 [INFO] [stdout] | [INFO] [stdout] 903 | Item::Yield { value, delegate } => None, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `delegate: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:904:31 [INFO] [stdout] | [INFO] [stdout] 904 | Item::Await { value } => None, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:881:89 [INFO] [stdout] | [INFO] [stdout] 881 | ... let SpreadOr { value: n, is_spread: s } = i.next()?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/rew.rs:184:25 [INFO] [stdout] | [INFO] [stdout] 184 | let mut i = 0; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-ssa/src/simplify.rs:338:21 [INFO] [stdout] | [INFO] [stdout] 338 | let mut n = i.next()?.const_in(semantics, k, pierce)?; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/rew.rs:930:13 [INFO] [stdout] | [INFO] [stdout] 930 | _ => todo!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/swc-tac/src/rew.rs:930:13 [INFO] [stdout] | [INFO] [stdout] 883 | crate::LId::Id { id } => swc_ecma_ast::AssignTarget::Simple( [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 889 | crate::LId::Member { obj, mem } => { [INFO] [stdout] | ------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 902 | LId::Private { obj, id } => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 930 | _ => todo!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sf` [INFO] [stdout] --> crates/swc-tac/src/rew.rs:880:9 [INFO] [stdout] | [INFO] [stdout] 880 | sf: &mut (dyn FnMut(&mut Cx, &F) -> Result + '_), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:103:38 [INFO] [stdout] | [INFO] [stdout] 103 | SValue::Item { item, span } => match item { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:206:50 [INFO] [stdout] | [INFO] [stdout] 206 | SValue::Assign { target, val } => target.taints_object(a), [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:207:46 [INFO] [stdout] | [INFO] [stdout] 207 | SValue::Item { item, span } => item.taints_object(a), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:208:53 [INFO] [stdout] | [INFO] [stdout] 208 | SValue::Param { block, idx, ty } => match self.input(*block, *idx) { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:229:38 [INFO] [stdout] | [INFO] [stdout] 229 | SValue::Item { item, span } => { [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:225:25 [INFO] [stdout] | [INFO] [stdout] 225 | .flat_map(|(a, b)| match &b.value { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:293:29 [INFO] [stdout] | [INFO] [stdout] 293 | SValue::Param { block, idx, ty } => true, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:293:36 [INFO] [stdout] | [INFO] [stdout] 293 | SValue::Param { block, idx, ty } => true, [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:293:41 [INFO] [stdout] | [INFO] [stdout] 293 | SValue::Param { block, idx, ty } => true, [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:294:34 [INFO] [stdout] | [INFO] [stdout] 294 | SValue::Item { item, span } => item.nothrow(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:295:38 [INFO] [stdout] | [INFO] [stdout] 295 | SValue::Assign { target, val } => target.nothrow(), [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:297:31 [INFO] [stdout] | [INFO] [stdout] 297 | SValue::StoreId { target, val } => true, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:297:39 [INFO] [stdout] | [INFO] [stdout] 297 | SValue::StoreId { target, val } => true, [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:298:35 [INFO] [stdout] | [INFO] [stdout] 298 | SValue::EdgeBlocker { value, span } => true, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:298:42 [INFO] [stdout] | [INFO] [stdout] 298 | SValue::EdgeBlocker { value, span } => true, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:303:39 [INFO] [stdout] | [INFO] [stdout] 303 | SValue::StoreId { target, val } if target == id => true, [INFO] [stdout] | ^^^ help: try ignoring the field: `val: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:304:34 [INFO] [stdout] | [INFO] [stdout] 304 | SValue::Item { item, span } if item.will_store(id) => true, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:312:29 [INFO] [stdout] | [INFO] [stdout] 312 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:312:36 [INFO] [stdout] | [INFO] [stdout] 312 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:312:41 [INFO] [stdout] | [INFO] [stdout] 312 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:313:34 [INFO] [stdout] | [INFO] [stdout] 313 | SValue::Item { item, span } => Box::new(item.refs().map(|a| *a)), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:317:31 [INFO] [stdout] | [INFO] [stdout] 317 | LId::Id { id } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:324:31 [INFO] [stdout] | [INFO] [stdout] 324 | SValue::StoreId { target, val } => Box::new(once(*val)), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:325:45 [INFO] [stdout] | [INFO] [stdout] 325 | SValue::EdgeBlocker { value: a, span } => Box::new(once(*a)), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:426:29 [INFO] [stdout] | [INFO] [stdout] 426 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:426:36 [INFO] [stdout] | [INFO] [stdout] 426 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:426:41 [INFO] [stdout] | [INFO] [stdout] 426 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:427:34 [INFO] [stdout] | [INFO] [stdout] 427 | SValue::Item { item, span } => Box::new(item.refs()), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:431:31 [INFO] [stdout] | [INFO] [stdout] 431 | LId::Id { id } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:438:31 [INFO] [stdout] | [INFO] [stdout] 438 | SValue::StoreId { target, val } => Box::new(once(val)), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:439:45 [INFO] [stdout] | [INFO] [stdout] 439 | SValue::EdgeBlocker { value: a, span } => Box::new(once(a)), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:444:29 [INFO] [stdout] | [INFO] [stdout] 444 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:444:36 [INFO] [stdout] | [INFO] [stdout] 444 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^^ help: try ignoring the field: `idx: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:444:41 [INFO] [stdout] | [INFO] [stdout] 444 | SValue::Param { block, idx, ty } => Box::new(empty()), [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:445:34 [INFO] [stdout] | [INFO] [stdout] 445 | SValue::Item { item, span } => item.refs_mut(), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:449:31 [INFO] [stdout] | [INFO] [stdout] 449 | LId::Id { id } => todo!(), [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:456:31 [INFO] [stdout] | [INFO] [stdout] 456 | SValue::StoreId { target, val } => Box::new(once(val)), [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `target: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:457:45 [INFO] [stdout] | [INFO] [stdout] 457 | SValue::EdgeBlocker { value: a, span } => Box::new(once(a)), [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/splat.rs:154:45 [INFO] [stdout] | [INFO] [stdout] 154 | ... let mut d = output.blocks.alloc(Default::default()); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 196 | ... func!(value, g, false) [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `func` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/splat.rs:154:45 [INFO] [stdout] | [INFO] [stdout] 154 | ... let mut d = output.blocks.alloc(Default::default()); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 205 | ... func!(value, func, arrow); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `func` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/splat.rs:278:57 [INFO] [stdout] | [INFO] [stdout] 278 | ... let mut d = [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 343 | ... func!(value, g, false) [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `func` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> crates/swc-tac/src/splat.rs:278:57 [INFO] [stdout] | [INFO] [stdout] 278 | ... let mut d = [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 352 | ... func!(value, func, arrow); [INFO] [stdout] | ------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `func` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ty` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:532:48 [INFO] [stdout] | [INFO] [stdout] 532 | if let SValue::Param { block, idx, ty } = &v.value { [INFO] [stdout] | ^^ help: try ignoring the field: `ty: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `span` [INFO] [stdout] --> crates/swc-ssa/src/lib.rs:544:17 [INFO] [stdout] | [INFO] [stdout] 544 | span, [INFO] [stdout] | ^^^^ help: try ignoring the field: `span: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `map` is never read [INFO] [stdout] --> crates/swc-ssa/src/opt_stub.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct OptStub { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 5 | map: BTreeMap, Id>, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `go` is never used [INFO] [stdout] --> crates/swc-ssa/src/opt_stub.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl OptStub { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 8 | fn go( [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `private_name` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:141:47 [INFO] [stdout] | [INFO] [stdout] 141 | swc_ecma_ast::MemberProp::PrivateName(private_name) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_private_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:287:17 [INFO] [stdout] | [INFO] [stdout] 287 | / callee.as_ref().map(&mut |a| { [INFO] [stdout] 288 | | v.push(*a); [INFO] [stdout] 289 | | Ok::<_, Infallible>(()) [INFO] [stdout] 290 | | }); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 287 | let _ = callee.as_ref().map(&mut |a| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> crates/swc-ssa/src/impls.rs:325:17 [INFO] [stdout] | [INFO] [stdout] 325 | / callee.as_mut().map(&mut |a| { [INFO] [stdout] 326 | | v.push(a); [INFO] [stdout] 327 | | Ok::<_, Infallible>(()) [INFO] [stdout] 328 | | }); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 325 | let _ = callee.as_mut().map(&mut |a| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/lib.rs:183:37 [INFO] [stdout] | [INFO] [stdout] 183 | import_mapper: static_map! {_ => None}, [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | matches no values because `ImportMapperReq` is uninhabited [INFO] [stdout] | help: remove the match arm [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> crates/swc-tac/src/lib.rs:183:24 [INFO] [stdout] | [INFO] [stdout] 183 | import_mapper: static_map! {_ => None}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] note: this expression has type `ImportMapperReq`, which is uninhabited [INFO] [stdout] --> crates/swc-tac/src/lib.rs:183:24 [INFO] [stdout] | [INFO] [stdout] 183 | import_mapper: static_map! {_ => None}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::static_map_internal` which comes from the expansion of the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/lib.rs:194:41 [INFO] [stdout] | [INFO] [stdout] 194 | import_mapper: static_map! {a =>self.import_mapper[a].as_deref()}, [INFO] [stdout] | ^----------------------------------- [INFO] [stdout] | | [INFO] [stdout] | matches no values because `ImportMapperReq` is uninhabited [INFO] [stdout] | help: remove the match arm [INFO] [stdout] | [INFO] [stdout] = note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> crates/swc-tac/src/lib.rs:194:28 [INFO] [stdout] | [INFO] [stdout] 194 | import_mapper: static_map! {a =>self.import_mapper[a].as_deref()}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] note: this expression has type `ImportMapperReq`, which is uninhabited [INFO] [stdout] --> crates/swc-tac/src/lib.rs:194:28 [INFO] [stdout] | [INFO] [stdout] 194 | import_mapper: static_map! {a =>self.import_mapper[a].as_deref()}, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the macro `$crate::static_map_internal` which comes from the expansion of the macro `static_map` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/lib.rs:346:21 [INFO] [stdout] | [INFO] [stdout] 346 | _ => {} [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/swc-tac/src/lib.rs:346:21 [INFO] [stdout] | [INFO] [stdout] 338 | LId::Id { id } => {} [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 339 | LId::Member { obj, mem } => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 343 | LId::Private { obj, id } => { [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 346 | _ => {} [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:338:31 [INFO] [stdout] | [INFO] [stdout] 338 | LId::Id { id } => {} [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:343:41 [INFO] [stdout] | [INFO] [stdout] 343 | LId::Private { obj, id } => { [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> crates/swc-tac/src/lib.rs:534:33 [INFO] [stdout] | [INFO] [stdout] 534 | ... _ => return None, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> crates/swc-tac/src/lib.rs:534:33 [INFO] [stdout] | [INFO] [stdout] 525 | ... PropKey::Lit(l) => Lit::Str(Str { [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 530 | ... PropKey::Computed(c) => match self.get_item(c)? { [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 534 | ... _ => return None, [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:655:23 [INFO] [stdout] | [INFO] [stdout] 655 | LId::Id { id } => true, [INFO] [stdout] | ^^ help: try ignoring the field: `id: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:663:25 [INFO] [stdout] | [INFO] [stdout] 663 | Item::Mem { obj, mem } => mem == i, [INFO] [stdout] | ^^^ help: try ignoring the field: `obj: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:666:17 [INFO] [stdout] | [INFO] [stdout] 666 | args, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:692:17 [INFO] [stdout] | [INFO] [stdout] 692 | args, [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:688:30 [INFO] [stdout] | [INFO] [stdout] 688 | pub fn will_store(&self, i: &Ident) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pat` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 40 | TCatch::Jump { pat, k } => Some(k), [INFO] [stdout] | ^^^ help: try ignoring the field: `pat: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:50:21 [INFO] [stdout] | [INFO] [stdout] 50 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:54:33 [INFO] [stdout] | [INFO] [stdout] 54 | TTerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pat` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:69:32 [INFO] [stdout] | [INFO] [stdout] 69 | TCatch::Jump { pat, k } => Some(k), [INFO] [stdout] | ^^^ help: try ignoring the field: `pat: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 79 | cond, [INFO] [stdout] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> crates/swc-tac/src/impls.rs:83:33 [INFO] [stdout] | [INFO] [stdout] 83 | TTerm::Switch { x, blocks, default } => { [INFO] [stdout] | ^ help: try ignoring the field: `x: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mem` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:804:32 [INFO] [stdout] | [INFO] [stdout] 804 | LId::Member { obj, mem } if obj == a => true, [INFO] [stdout] | ^^^ help: try ignoring the field: `mem: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:810:33 [INFO] [stdout] | [INFO] [stdout] 810 | pub fn taints_object(&self, a: &I) -> bool { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1279:43 [INFO] [stdout] | [INFO] [stdout] 1279 | ... &mut |cx, a: &Option| Ok::<_, Infallible>(a.as_ref()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1280:43 [INFO] [stdout] | [INFO] [stdout] 1280 | ... &mut |cx, b| Ok(b), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1411:43 [INFO] [stdout] | [INFO] [stdout] 1411 | ... &mut |cx, a| Ok::<_, Infallible>(a.as_mut()), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cx` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1412:43 [INFO] [stdout] | [INFO] [stdout] 1412 | ... &mut |cx, b| Ok(b), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arrow` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1597:32 [INFO] [stdout] | [INFO] [stdout] 1597 | Item::Func { func, arrow } => Box::new(once(func)), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `arrow: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `superclass` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1603:17 [INFO] [stdout] | [INFO] [stdout] 1603 | superclass, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `superclass: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1622:47 [INFO] [stdout] | [INFO] [stdout] 1622 | swc_tac::Item::Bin { left, right, op } => Box::new([left, right].into_iter()), [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1623:38 [INFO] [stdout] | [INFO] [stdout] 1623 | swc_tac::Item::Un { arg, op } => Box::new(once(arg)), [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mem` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1625:37 [INFO] [stdout] | [INFO] [stdout] 1625 | Item::PrivateMem { obj, mem } | Item::HasPrivateMem { obj, mem } => Box::new(once(obj)), [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] help: try ignoring the field [INFO] [stdout] | [INFO] [stdout] 1625 | Item::PrivateMem { obj, mem: _ } | Item::HasPrivateMem { obj, mem: _ } => Box::new(once(obj)), [INFO] [stdout] | +++ +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1626:35 [INFO] [stdout] | [INFO] [stdout] 1626 | swc_tac::Item::Func { func, arrow } => Box::new(empty()), [INFO] [stdout] | ^^^^ help: try ignoring the field: `func: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arrow` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1626:41 [INFO] [stdout] | [INFO] [stdout] 1626 | swc_tac::Item::Func { func, arrow } => Box::new(empty()), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `arrow: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lit` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1627:34 [INFO] [stdout] | [INFO] [stdout] 1627 | swc_tac::Item::Lit { lit } => Box::new(empty()), [INFO] [stdout] | ^^^ help: try ignoring the field: `lit: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delegate` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1664:43 [INFO] [stdout] | [INFO] [stdout] 1664 | swc_tac::Item::Yield { value, delegate } => Box::new(value.iter()), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `delegate: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constructor` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1673:17 [INFO] [stdout] | [INFO] [stdout] 1673 | constructor, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `constructor: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `begin` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1693:17 [INFO] [stdout] | [INFO] [stdout] 1693 | begin, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `begin: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1694:17 [INFO] [stdout] | [INFO] [stdout] 1694 | end, [INFO] [stdout] | ^^^ help: try ignoring the field: `end: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1647:37 [INFO] [stdout] | [INFO] [stdout] 1647 | PropVal::Getter(a) | PropVal::Setter(a) | PropVal::Method(a) => { [INFO] [stdout] | ^ ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 1647 | PropVal::Getter(_a) | PropVal::Setter(_a) | PropVal::Method(_a) => { [INFO] [stdout] | + + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1676:37 [INFO] [stdout] | [INFO] [stdout] 1676 | PropVal::Getter(a) | PropVal::Setter(a) | PropVal::Method(a) => { [INFO] [stdout] | ^ ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 1676 | PropVal::Getter(_a) | PropVal::Setter(_a) | PropVal::Method(_a) => { [INFO] [stdout] | + + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1721:47 [INFO] [stdout] | [INFO] [stdout] 1721 | swc_tac::Item::Bin { left, right, op } => Box::new([left, right].into_iter()), [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `op` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1722:38 [INFO] [stdout] | [INFO] [stdout] 1722 | swc_tac::Item::Un { arg, op } => Box::new(once(arg)), [INFO] [stdout] | ^^ help: try ignoring the field: `op: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mem` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1724:37 [INFO] [stdout] | [INFO] [stdout] 1724 | Item::PrivateMem { obj, mem } | Item::HasPrivateMem { obj, mem } => Box::new(once(obj)), [INFO] [stdout] | ^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] help: try ignoring the field [INFO] [stdout] | [INFO] [stdout] 1724 | Item::PrivateMem { obj, mem: _ } | Item::HasPrivateMem { obj, mem: _ } => Box::new(once(obj)), [INFO] [stdout] | +++ +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1725:35 [INFO] [stdout] | [INFO] [stdout] 1725 | swc_tac::Item::Func { func, arrow } => Box::new(empty()), [INFO] [stdout] | ^^^^ help: try ignoring the field: `func: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arrow` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1725:41 [INFO] [stdout] | [INFO] [stdout] 1725 | swc_tac::Item::Func { func, arrow } => Box::new(empty()), [INFO] [stdout] | ^^^^^ help: try ignoring the field: `arrow: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lit` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1726:34 [INFO] [stdout] | [INFO] [stdout] 1726 | swc_tac::Item::Lit { lit } => Box::new(empty()), [INFO] [stdout] | ^^^ help: try ignoring the field: `lit: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delegate` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1763:43 [INFO] [stdout] | [INFO] [stdout] 1763 | swc_tac::Item::Yield { value, delegate } => Box::new(value.iter_mut()), [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `delegate: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constructor` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1772:17 [INFO] [stdout] | [INFO] [stdout] 1772 | constructor, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `constructor: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `begin` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1791:17 [INFO] [stdout] | [INFO] [stdout] 1791 | begin, [INFO] [stdout] | ^^^^^ help: try ignoring the field: `begin: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1792:17 [INFO] [stdout] | [INFO] [stdout] 1792 | end, [INFO] [stdout] | ^^^ help: try ignoring the field: `end: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1746:37 [INFO] [stdout] | [INFO] [stdout] 1746 | PropVal::Getter(a) | PropVal::Setter(a) | PropVal::Method(a) => { [INFO] [stdout] | ^ ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 1746 | PropVal::Getter(_a) | PropVal::Setter(_a) | PropVal::Method(_a) => { [INFO] [stdout] | + + + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> crates/swc-tac/src/lib.rs:1778:45 [INFO] [stdout] | [INFO] [stdout] 1778 | ... PropVal::Getter(a) | PropVal::Setter(a) | PropVal::Method(a) => { [INFO] [stdout] | ^ ^ ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 1778 | PropVal::Getter(_a) | PropVal::Setter(_a) | PropVal::Method(_a) => { [INFO] [stdout] | + + + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.65s [INFO] running `Command { std: "docker" "inspect" "8fce7f1070385ee97fef77a21bfbaa517488f1743f65c0ea3a3221ba8f303cc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fce7f1070385ee97fef77a21bfbaa517488f1743f65c0ea3a3221ba8f303cc4", kill_on_drop: false }` [INFO] [stdout] 8fce7f1070385ee97fef77a21bfbaa517488f1743f65c0ea3a3221ba8f303cc4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] bf484c3bb57c1a3b23b48a865c6733aa7b139728f7ac28f9b4eaf034393dfaad [INFO] running `Command { std: "docker" "start" "-a" "bf484c3bb57c1a3b23b48a865c6733aa7b139728f7ac28f9b4eaf034393dfaad", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `either::Either` [INFO] [stderr] --> crates/portal-jsc-common/src/lib.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use either::Either; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::*` [INFO] [stderr] --> crates/portal-jsc-common/src/semantic.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::*` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use crate::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Reflect_get` should have an upper camel case name [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | Reflect_get, [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ReflectGet` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variant `Reflect_apply` should have an upper camel case name [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | Reflect_apply, [INFO] [stderr] | ^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ReflectApply` [INFO] [stderr] [INFO] [stderr] warning: variant `Reflect_set` should have an upper camel case name [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | Reflect_set, [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `ReflectSet` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `value` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:130:36 [INFO] [stderr] | [INFO] [stderr] 130 | Native::AssertString { value, comptime } => { [INFO] [stderr] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `value` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:137:36 [INFO] [stderr] | [INFO] [stderr] 137 | Native::AssertNumber { value, comptime } => { [INFO] [stderr] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `value` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:144:38 [INFO] [stderr] | [INFO] [stderr] 144 | Native::AssertStaticFn { value, comptime } => { [INFO] [stderr] | ^^^^^ help: try ignoring the field: `value: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:151:31 [INFO] [stderr] | [INFO] [stderr] 151 | Native::FastAdd { lhs, rhs } => "fast_add", [INFO] [stderr] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rhs` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:151:36 [INFO] [stderr] | [INFO] [stderr] 151 | Native::FastAdd { lhs, rhs } => "fast_add", [INFO] [stderr] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:152:31 [INFO] [stderr] | [INFO] [stderr] 152 | Native::FastAnd { lhs, rhs } => "fast_and", [INFO] [stderr] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rhs` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:152:36 [INFO] [stderr] | [INFO] [stderr] 152 | Native::FastAnd { lhs, rhs } => "fast_and", [INFO] [stderr] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:153:30 [INFO] [stderr] | [INFO] [stderr] 153 | Native::FastOr { lhs, rhs } => "fast_or", [INFO] [stderr] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rhs` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:153:35 [INFO] [stderr] | [INFO] [stderr] 153 | Native::FastOr { lhs, rhs } => "fast_or", [INFO] [stderr] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:154:30 [INFO] [stderr] | [INFO] [stderr] 154 | Native::FastEq { lhs, rhs } => "fast_eq", [INFO] [stderr] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rhs` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:154:35 [INFO] [stderr] | [INFO] [stderr] 154 | Native::FastEq { lhs, rhs } => "fast_eq", [INFO] [stderr] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:155:31 [INFO] [stderr] | [INFO] [stderr] 155 | Native::FastSub { lhs, rhs } => "fast_sub", [INFO] [stderr] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rhs` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:155:36 [INFO] [stderr] | [INFO] [stderr] 155 | Native::FastSub { lhs, rhs } => "fast_sub", [INFO] [stderr] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:156:31 [INFO] [stderr] | [INFO] [stderr] 156 | Native::FastMul { lhs, rhs, imul } => { [INFO] [stderr] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rhs` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:156:36 [INFO] [stderr] | [INFO] [stderr] 156 | Native::FastMul { lhs, rhs, imul } => { [INFO] [stderr] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:163:31 [INFO] [stderr] | [INFO] [stderr] 163 | Native::FastShl { lhs, rhs } => "fast_shl", [INFO] [stderr] | ^^^ help: try ignoring the field: `lhs: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rhs` [INFO] [stderr] --> crates/portal-jsc-common/src/natives.rs:163:36 [INFO] [stderr] | [INFO] [stderr] 163 | Native::FastShl { lhs, rhs } => "fast_shl", [INFO] [stderr] | ^^^ help: try ignoring the field: `rhs: _` [INFO] [stderr] [INFO] [stderr] warning: `portal-jsc-common` (lib) generated 23 warnings (run `cargo fix --lib -p portal-jsc-common` to apply 3 suggestions) [INFO] [stderr] warning: `portal-jsc-common` (lib test) generated 23 warnings (23 duplicates) [INFO] [stderr] warning: unused variable: `pat` [INFO] [stderr] --> crates/swc-cfg/src/lib.rs:425:31 [INFO] [stderr] | [INFO] [stderr] 425 | Catch::Jump { pat, k } => Some(k), [INFO] [stderr] | ^^^ help: try ignoring the field: `pat: _` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expr` [INFO] [stderr] --> crates/swc-cfg/src/lib.rs:430:34 [INFO] [stderr] | [INFO] [stderr] 430 | Term::Return(expr) => vec![], [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expr` [INFO] [stderr] --> crates/swc-cfg/src/lib.rs:431:33 [INFO] [stderr] | [INFO] [stderr] 431 | Term::Throw(expr) => vec![], [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cond` [INFO] [stderr] --> crates/swc-cfg/src/lib.rs:434:25 [INFO] [stderr] | [INFO] [stderr] 434 | cond, [INFO] [stderr] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> crates/swc-cfg/src/lib.rs:438:36 [INFO] [stderr] | [INFO] [stderr] 438 | Term::Switch { x, blocks, default } => { [INFO] [stderr] | ^ help: try ignoring the field: `x: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pat` [INFO] [stderr] --> crates/swc-cfg/src/lib.rs:455:31 [INFO] [stderr] | [INFO] [stderr] 455 | Catch::Jump { pat, k } => Some(k), [INFO] [stderr] | ^^^ help: try ignoring the field: `pat: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expr` [INFO] [stderr] --> crates/swc-cfg/src/lib.rs:460:34 [INFO] [stderr] | [INFO] [stderr] 460 | Term::Return(expr) => vec![], [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `expr` [INFO] [stderr] --> crates/swc-cfg/src/lib.rs:461:33 [INFO] [stderr] | [INFO] [stderr] 461 | Term::Throw(expr) => vec![], [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cond` [INFO] [stderr] --> crates/swc-cfg/src/lib.rs:464:25 [INFO] [stderr] | [INFO] [stderr] 464 | cond, [INFO] [stderr] | ^^^^ help: try ignoring the field: `cond: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> crates/swc-cfg/src/lib.rs:468:36 [INFO] [stderr] | [INFO] [stderr] 468 | Term::Switch { x, blocks, default } => { [INFO] [stderr] | ^ help: try ignoring the field: `x: _` [INFO] [stderr] [INFO] [stderr] warning: `portal-jsc-swc-cfg` (lib) generated 10 warnings [INFO] [stderr] warning: `portal-jsc-swc-cfg` (lib test) generated 10 warnings (10 duplicates) [INFO] [stderr] warning: unused import: `bitflags::bitflags` [INFO] [stderr] --> crates/swc-util/src/lib.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use bitflags::bitflags; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cfg` [INFO] [stderr] --> crates/swc-util/src/lib.rs:44:9 [INFO] [stderr] | [INFO] [stderr] 44 | cfg: &SemanticCfg, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cfg` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `module` [INFO] [stderr] --> crates/swc-util/src/lib.rs:192:17 [INFO] [stderr] | [INFO] [stderr] 192 | module, [INFO] [stderr] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> crates/swc-util/src/lib.rs:193:17 [INFO] [stderr] | [INFO] [stderr] 193 | name, [INFO] [stderr] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `module` [INFO] [stderr] --> crates/swc-util/src/lib.rs:204:17 [INFO] [stderr] | [INFO] [stderr] 204 | module, [INFO] [stderr] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> crates/swc-util/src/lib.rs:205:17 [INFO] [stderr] | [INFO] [stderr] 205 | name, [INFO] [stderr] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `module` [INFO] [stderr] --> crates/swc-util/src/lib.rs:216:17 [INFO] [stderr] | [INFO] [stderr] 216 | module, [INFO] [stderr] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> crates/swc-util/src/lib.rs:217:17 [INFO] [stderr] | [INFO] [stderr] 217 | name, [INFO] [stderr] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `module` [INFO] [stderr] --> crates/swc-util/src/lib.rs:231:17 [INFO] [stderr] | [INFO] [stderr] 231 | module, [INFO] [stderr] | ^^^^^^ help: try ignoring the field: `module: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `name` [INFO] [stderr] --> crates/swc-util/src/lib.rs:232:17 [INFO] [stderr] | [INFO] [stderr] 232 | name, [INFO] [stderr] | ^^^^ help: try ignoring the field: `name: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cx` [INFO] [stderr] --> crates/swc-util/src/lib.rs:253:25 [INFO] [stderr] | [INFO] [stderr] 253 | fn import_of(&self, cx: &Id) -> Option<(Atom, ImportMap)> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_cx` [INFO] [stderr] [INFO] [stderr] warning: `portal-jsc-swc-util` (lib) generated 11 warnings (run `cargo fix --lib -p portal-jsc-swc-util` to apply 1 suggestion) [INFO] [stderr] warning: `portal-jsc-swc-util` (lib test) generated 11 warnings (11 duplicates) [INFO] [stderr] warning: unused import: `ResolveNatives` [INFO] [stderr] --> crates/swc-tac/src/lib.rs:16:41 [INFO] [stderr] | [INFO] [stderr] 16 | use portal_jsc_swc_util::{ImportMapper, ResolveNatives, SemanticCfg, SemanticFlags, ses_method}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AssignExpr`, `ComputedPropName`, and `CondExpr` [INFO] [stderr] --> crates/swc-tac/src/lib.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | AssignExpr, AssignOp, AssignTarget, BinaryOp, Bool, Callee, Class, ClassMember, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 24 | ComputedPropName, CondExpr, Expr, Function, Lit, MemberExpr, MemberProp, MetaPropKind, Number, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `cell::OnceCell` [INFO] [stderr] --> crates/swc-tac/src/conv.rs:1:11 [INFO] [stderr] | [INFO] [stderr] 1 | use std::{cell::OnceCell, mem::replace}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> crates/swc-tac/src/lam.rs:88:34 [INFO] [stderr] | [INFO] [stderr] 88 | fn iter<'a>(&'a self) -> Box<(dyn Iterator + 'a)> { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 88 - fn iter<'a>(&'a self) -> Box<(dyn Iterator + 'a)> { [INFO] [stderr] 88 + fn iter<'a>(&'a self) -> Box + 'a> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `portal_solutions_proxy_signs::PROXY_SIGNS` [INFO] [stderr] --> crates/swc-tac/src/prepa.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use portal_solutions_proxy_signs::PROXY_SIGNS; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `CallExpr`, `ExprOrSpread`, and `IdentName` [INFO] [stderr] --> crates/swc-tac/src/prepa.rs:8:26 [INFO] [stderr] | [INFO] [stderr] 8 | AssignExpr, BinExpr, CallExpr, CondExpr, Decl, ExprOrSpread, ExprStmt, IdentName, ModuleItem, [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::convert::Infallible` [INFO] [stderr] --> crates/swc-tac/src/rew.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::convert::Infallible; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::mem::take` [INFO] [stderr] --> crates/swc-tac/src/rew.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::mem::take; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `anyhow::Context` [INFO] [stderr] --> crates/swc-tac/src/rew.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use anyhow::Context; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `BlockStmt` and `ReturnStmt` [INFO] [stderr] --> crates/swc-tac/src/rew.rs:23:20 [INFO] [stderr] | [INFO] [stderr] 23 | use swc_ecma_ast::{BlockStmt, FnExpr, GetterProp, ReturnStmt}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Str` [INFO] [stderr] --> crates/swc-tac/src/rew.rs:30:30 [INFO] [stderr] | [INFO] [stderr] 30 | use swc_ecma_ast::{ExprStmt, Str}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused label [INFO] [stderr] --> crates/swc-tac/src/splat.rs:184:21 [INFO] [stderr] | [INFO] [stderr] 184 | 'a: loop { [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_labels)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused label [INFO] [stderr] --> crates/swc-tac/src/splat.rs:329:29 [INFO] [stderr] | [INFO] [stderr] 329 | ... 'a: loop { [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: unused label [INFO] [stderr] --> crates/swc-tac/src/lib.rs:578:17 [INFO] [stderr] | [INFO] [stderr] 578 | 's: for mut s in take(&mut self.blocks[ki].stmts) { [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> crates/swc-tac/src/lib.rs:94:28 [INFO] [stderr] | [INFO] [stderr] 94 | LId::Private { id, obj } => Either::Left(once(obj)), [INFO] [stderr] | ^^ help: try ignoring the field: `id: _` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> crates/swc-tac/src/lib.rs:400:28 [INFO] [stderr] | [INFO] [stderr] 400 | TTerm::Jmp(id) => Box::new(std::iter::empty()), [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `if_true` [INFO] [stderr] --> crates/swc-tac/src/lib.rs:403:21 [INFO] [stderr] | [INFO] [stderr] 403 | if_true, [INFO] [stderr] | ^^^^^^^ help: try ignoring the field: `if_true: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `if_false` [INFO] [stderr] --> crates/swc-tac/src/lib.rs:404:21 [INFO] [stderr] | [INFO] [stderr] 404 | if_false, [INFO] [stderr] | ^^^^^^^^ help: try ignoring the field: `if_false: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `default` [INFO] [stderr] --> crates/swc-tac/src/lib.rs:406:44 [INFO] [stderr] | [INFO] [stderr] 406 | TTerm::Switch { x, blocks, default } => { [INFO] [stderr] | ^^^^^^^ help: try ignoring the field: `default: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lit` [INFO] [stderr] --> crates/swc-tac/src/consts.rs:91:25 [INFO] [stderr] | [INFO] [stderr] 91 | Item::Lit { lit } => true, [INFO] [stderr] | ^^^ help: try ignoring the field: `lit: _` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> crates/swc-tac/src/conv.rs:25:9 [INFO] [stderr] | [INFO] [stderr] 25 | mut t: Id, [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> crates/swc-tac/src/conv.rs:53:21 [INFO] [stderr] | [INFO] [stderr] 53 | let mut tmp = o.regs.alloc(()); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `private_name` [INFO] [stderr] --> crates/swc-tac/src/conv.rs:303:37 [INFO] [stderr] | [INFO] [stderr] 303 | MemberProp::PrivateName(private_name) => { [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_private_name` [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> crates/swc-tac/src/conv.rs:352:13 [INFO] [stderr] | [INFO] [stderr] 352 | _ => anyhow::bail!("todo: {}:{}", file!(), line!()), [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> crates/swc-tac/src/conv.rs:352:13 [INFO] [stderr] | [INFO] [stderr] 323 | Callee::Import(_) => TCallee::Import, [INFO] [stderr] | ----------------- matches some of the same values [INFO] [stderr] 324 | Callee::Super(_) => TCallee::Super, [INFO] [stderr] | ---------------- matches some of the same values [INFO] [stderr] 325 | Callee::Expr(e) => match e.as_ref() { [INFO] [stderr] | --------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 352 | _ => anyhow::bail!("todo: {}:{}", file!(), line!()), [INFO] [stderr] | ^ collectively making this unreachable [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `t` is never read [INFO] [stderr] --> crates/swc-tac/src/conv.rs:419:29 [INFO] [stderr] | [INFO] [stderr] 419 | ... t = t2; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `t` is never read [INFO] [stderr] --> crates/swc-tac/src/conv.rs:424:33 [INFO] [stderr] | [INFO] [stderr] 424 | ... (c, t) = self.expr(i, o, b, t, a)?; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `t` is never read [INFO] [stderr] --> crates/swc-tac/src/conv.rs:449:21 [INFO] [stderr] | [INFO] [stderr] 449 | (c, t) = self.expr(i, o, b, t, expr)?; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `t` is never read [INFO] [stderr] --> crates/swc-tac/src/conv.rs:459:21 [INFO] [stderr] | [INFO] [stderr] 459 | (c, t) = self.expr(i, o, b, t, cond)?; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `using_decl` [INFO] [stderr] --> crates/swc-tac/src/conv.rs:540:43 [INFO] [stderr] | [INFO] [stderr] 540 | swc_ecma_ast::Decl::Using(using_decl) => todo!(), [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_using_decl` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ts_interface_decl` [INFO] [stderr] --> crates/swc-tac/src/conv.rs:541:49 [INFO] [stderr] | [INFO] [stderr] 541 | swc_ecma_ast::Decl::TsInterface(ts_interface_decl) => todo!(), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_interface_decl` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ts_type_alias_decl` [INFO] [stderr] --> crates/swc-tac/src/conv.rs:542:49 [INFO] [stderr] | [INFO] [stderr] 542 | swc_ecma_ast::Decl::TsTypeAlias(ts_type_alias_decl) => todo!(), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_type_alias_decl` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ts_enum_decl` [INFO] [stderr] --> crates/swc-tac/src/conv.rs:543:44 [INFO] [stderr] | [INFO] [stderr] 543 | swc_ecma_ast::Decl::TsEnum(ts_enum_decl) => todo!(), [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_enum_decl` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ts_module_decl` [INFO] [stderr] --> crates/swc-tac/src/conv.rs:544:46 [INFO] [stderr] | [INFO] [stderr] 544 | swc_ecma_ast::Decl::TsModule(ts_module_decl) => todo!(), [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ts_module_decl` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> crates/swc-tac/src/conv.rs:554:9 [INFO] [stderr] | [INFO] [stderr] 554 | mut t: Id, [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> crates/swc-tac/src/conv.rs:639:9 [INFO] [stderr] | [INFO] [stderr] 639 | mut t: Id, [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> crates/swc-tac/src/conv.rs:644:13 [INFO] [stderr] | [INFO] [stderr] 644 | let mut ps = p.elems.iter().map(|a| a.as_ref()).collect::>(); [INFO] [stderr] | ----^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rest_pat` [INFO] [stderr] --> crates/swc-tac/src/conv.rs:890:51 [INFO] [stderr] | [INFO] [stderr] 890 | swc_ecma_ast::ObjectPatProp::Rest(rest_pat) => {} [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rest_pat` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> crates/swc-tac/src/conv.rs:913:9 [INFO] [stderr] | [INFO] [stderr] 913 | i: &Cfg, [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `b` [INFO] [stderr] --> crates/swc-tac/src/conv.rs:915:9 [INFO] [stderr] | [INFO] [stderr] 915 | b: Id, [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> crates/swc-tac/src/conv.rs:916:9 [INFO] [stderr] | [INFO] [stderr] 916 | mut t: Id, [INFO] [stderr] | ----^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `number` [INFO] [stderr] --> crates/swc-tac/src/conv.rs:1018:57 [INFO] [stderr] | [INFO] [stderr] 1018 | swc_ecma_ast::PropName::Num(number) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stderr] ... [INFO] [stderr] 1060 | / prop_name!(if p.is_static{MemberFlags::STATIC}else{MemberFlags::empty()},PropVal::Item( match p.value.as_ref(){ [INFO] [stderr] 1061 | | None => None, [INFO] [stderr] 1062 | | Some(a) => Some({ [INFO] [stderr] 1063 | | let b2; [INFO] [stderr] ... | [INFO] [stderr] 1066 | | }), [INFO] [stderr] 1067 | | }) => &p.key), [INFO] [stderr] | |_________________________________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `big_int` [INFO] [stderr] --> crates/swc-tac/src/conv.rs:1026:60 [INFO] [stderr] | [INFO] [stderr] 1026 | swc_ecma_ast::PropName::BigInt(big_int) => { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_big_int` [INFO] [stderr] ... [INFO] [stderr] 1060 | / prop_name!(if p.is_static{MemberFlags::STATIC}else{MemberFlags::empty()},PropVal::Item( match p.value.as_ref(){ [INFO] [stderr] 1061 | | None => None, [INFO] [stderr] 1062 | | Some(a) => Some({ [INFO] [stderr] 1063 | | let b2; [INFO] [stderr] ... | [INFO] [stderr] 1066 | | }), [INFO] [stderr] 1067 | | }) => &p.key), [INFO] [stderr] | |_________________________________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `number` [INFO] [stderr] --> crates/swc-tac/src/conv.rs:1018:57 [INFO] [stderr] | [INFO] [stderr] 1018 | swc_ecma_ast::PropName::Num(number) => { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_number` [INFO] [stderr] ... [INFO] [stderr] 1094 | members.push(prop_name!(if c.is_static{MemberFlags::STATIC}else{MemberFlags::empty()}, match &c.kind{ [INFO] [stderr] | __________________________________- [INFO] [stderr] 1095 | | swc_ecma_ast::MethodKind::Method => PropVal::Method(f), [INFO] [stderr] 1096 | | swc_ecma_ast::MethodKind::Getter => PropVal::Getter(f), [INFO] [stderr] 1097 | | swc_ecma_ast::MethodKind::Setter => PropVal::Setter(f), [INFO] [stderr] 1098 | | }=> &c.key)); [INFO] [stderr] | |_______________________________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `prop_name` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `big_int` [INFO] [stderr] --> crates/swc-tac/src/conv.rs:1026:60 [INFO] [stderr] | [INFO] [stderr] 1026 | swc_ecma_ast::PropName::BigInt(big_int) => { [WARN] too many lines in the log, truncating it