[INFO] cloning repository https://github.com/ayourtch/mojes [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ayourtch/mojes" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayourtch%2Fmojes", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayourtch%2Fmojes'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 140c57277deb2a9539d37a523a5dec91e1db7efe [INFO] checking ayourtch/mojes against master#42b384ec0dfcd528d99a4db0a337d9188a9eecaa for pr-133502-16 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fayourtch%2Fmojes" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ayourtch/mojes [INFO] finished tweaking git repo https://github.com/ayourtch/mojes [INFO] tweaked toml for git repo https://github.com/ayourtch/mojes written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ayourtch/mojes on toolchain 42b384ec0dfcd528d99a4db0a337d9188a9eecaa [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+42b384ec0dfcd528d99a4db0a337d9188a9eecaa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ayourtch/mojes 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" "+42b384ec0dfcd528d99a4db0a337d9188a9eecaa" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded swc_eq_ignore_macros v1.0.0 [INFO] [stderr] Downloaded from_variant v2.0.0 [INFO] [stderr] Downloaded swc_visit v2.0.0 [INFO] [stderr] Downloaded swc_atoms v5.0.0 [INFO] [stderr] Downloaded swc_allocator v4.0.0 [INFO] [stderr] Downloaded hstr v1.0.0 [INFO] [stderr] Downloaded swc_ecma_ast v11.0.0 [INFO] [stderr] Downloaded unicode-id-start v1.3.1 [INFO] [stderr] Downloaded swc_common v11.0.0 [INFO] [stderr] Downloaded stacker v0.1.21 [INFO] [stderr] Downloaded boa_ast v0.17.3 [INFO] [stderr] Downloaded linkme v0.3.33 [INFO] [stderr] Downloaded linkme-impl v0.3.33 [INFO] [stderr] Downloaded icu_provider_blob v1.2.0 [INFO] [stderr] Downloaded clap v4.5.39 [INFO] [stderr] Downloaded icu_provider_adapters v1.2.0 [INFO] [stderr] Downloaded thin-vec v0.2.14 [INFO] [stderr] Downloaded boa_parser v0.17.3 [INFO] [stderr] Downloaded clap_builder v4.5.39 [INFO] [stderr] Downloaded boa_profiler v0.17.3 [INFO] [stderr] Downloaded swc_ecma_lexer v14.0.2 [INFO] [stderr] Downloaded swc_ecma_visit v11.0.0 [INFO] [stderr] Downloaded compact_str v0.7.1 [INFO] [stderr] Downloaded ast_node v3.0.0 [INFO] [stderr] Downloaded regress v0.6.0 [INFO] [stderr] Downloaded boa_gc v0.17.3 [INFO] [stderr] Downloaded psm v0.1.26 [INFO] [stderr] Downloaded is-macro v0.3.7 [INFO] [stderr] Downloaded boa_interner v0.17.3 [INFO] [stderr] Downloaded icu_locid v1.2.0 [INFO] [stderr] Downloaded sptr v0.3.2 [INFO] [stderr] Downloaded sourcemap v9.2.1 [INFO] [stderr] Downloaded icu_properties v1.2.0 [INFO] [stderr] Downloaded boa_engine v0.17.3 [INFO] [stderr] Downloaded icu_provider v1.2.0 [INFO] [stderr] Downloaded zerovec-derive v0.9.7 [INFO] [stderr] Downloaded icu_normalizer v1.2.0 [INFO] [stderr] Downloaded ryu-js v0.2.2 [INFO] [stderr] Downloaded ascii v1.1.0 [INFO] [stderr] Downloaded swc_ecma_codegen v13.1.0 [INFO] [stderr] Downloaded smartstring v1.0.1 [INFO] [stderr] Downloaded swc_ecma_parser v14.0.1 [INFO] [stderr] Downloaded anstyle-wincon v3.0.8 [INFO] [stderr] Downloaded tinystr v0.7.2 [INFO] [stderr] Downloaded string_enum v1.0.0 [INFO] [stderr] Downloaded better_scoped_tls v1.0.0 [INFO] [stderr] Downloaded swc_macros_common v1.0.0 [INFO] [stderr] Downloaded boa_macros v0.17.3 [INFO] [stderr] Downloaded icu_provider_macros v1.2.0 [INFO] [stderr] Downloaded swc_ecma_codegen_macros v2.0.0 [INFO] [stderr] Downloaded ryu-js v1.0.2 [INFO] [stderr] Downloaded icu_collections v1.2.0 [INFO] [stderr] Downloaded zerovec v0.9.7 [INFO] [stderr] Downloaded boa_icu_provider v0.17.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+42b384ec0dfcd528d99a4db0a337d9188a9eecaa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5fc667faf50a3ec88becda76148edcac9e7bad503bdd3fb130c10656e0ae05ce [INFO] running `Command { std: "docker" "start" "-a" "5fc667faf50a3ec88becda76148edcac9e7bad503bdd3fb130c10656e0ae05ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5fc667faf50a3ec88becda76148edcac9e7bad503bdd3fb130c10656e0ae05ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fc667faf50a3ec88becda76148edcac9e7bad503bdd3fb130c10656e0ae05ce", kill_on_drop: false }` [INFO] [stdout] 5fc667faf50a3ec88becda76148edcac9e7bad503bdd3fb130c10656e0ae05ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+42b384ec0dfcd528d99a4db0a337d9188a9eecaa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 729715c49a34922ae5ae4a929f40be5ca46c95c7a8a3fd83e98ce352b0c7dc30 [INFO] running `Command { std: "docker" "start" "-a" "729715c49a34922ae5ae4a929f40be5ca46c95c7a8a3fd83e98ce352b0c7dc30", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling portable-atomic v1.11.0 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Checking critical-section v1.2.0 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking allocator-api2 v0.2.21 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling cc v1.2.24 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Compiling smartstring v1.0.1 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking rustc-hash v2.1.1 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking litemap v0.7.5 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking cobs v0.2.3 [INFO] [stderr] Checking unicode-ident v1.0.18 [INFO] [stderr] Checking better_scoped_tls v1.0.0 [INFO] [stderr] Checking swc_visit v2.0.0 [INFO] [stderr] Checking siphasher v0.3.11 [INFO] [stderr] Checking unicode-id-start v1.3.1 [INFO] [stderr] Compiling hashbrown v0.15.3 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking boa_profiler v0.17.3 [INFO] [stderr] Compiling toml_datetime v0.6.9 [INFO] [stderr] Checking thin-vec v0.2.14 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking outref v0.5.2 [INFO] [stderr] Checking vsimd v0.8.0 [INFO] [stderr] Checking bumpalo v3.17.0 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking indexmap v2.9.0 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking data-encoding v2.9.0 [INFO] [stderr] Checking castaway v0.2.3 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking if_chain v1.0.2 [INFO] [stderr] Checking typed-arena v2.0.2 [INFO] [stderr] Checking compact_str v0.7.1 [INFO] [stderr] Checking ascii v1.1.0 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking base64-simd v0.8.0 [INFO] [stderr] Checking ryu-js v1.0.2 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking ryu-js v0.2.2 [INFO] [stderr] Checking sptr v0.3.2 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling psm v0.1.26 [INFO] [stderr] Compiling stacker v0.1.21 [INFO] [stderr] Checking regress v0.6.0 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Checking dashmap v5.5.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling linkme-impl v0.3.33 [INFO] [stderr] Checking clap_builder v4.5.39 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling icu_provider_macros v1.2.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling swc_macros_common v1.0.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling phf_macros v0.11.3 [INFO] [stderr] Compiling ptr_meta_derive v0.3.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling swc_eq_ignore_macros v1.0.0 [INFO] [stderr] Compiling from_variant v2.0.0 [INFO] [stderr] Compiling ast_node v3.0.0 [INFO] [stderr] Compiling is-macro v0.3.7 [INFO] [stderr] Compiling string_enum v1.0.0 [INFO] [stderr] Compiling zerovec-derive v0.9.7 [INFO] [stderr] Compiling swc_ecma_codegen_macros v2.0.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Checking ptr_meta v0.3.0 [INFO] [stderr] Compiling boa_macros v0.17.3 [INFO] [stderr] Compiling num_enum_derive v0.6.1 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Checking boa_gc v0.17.3 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking num_enum v0.6.1 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Checking linkme v0.3.33 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Checking boa_interner v0.17.3 [INFO] [stderr] Checking clap v4.5.39 [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] Checking serde v1.0.219 [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] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking triomphe v0.1.14 [INFO] [stderr] Checking postcard v1.1.1 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking debugid v0.8.0 [INFO] [stderr] Checking hstr v1.0.0 [INFO] [stderr] Checking swc_allocator v4.0.0 [INFO] [stderr] Checking zerovec v0.9.7 [INFO] [stderr] Checking swc_atoms v5.0.0 [INFO] [stderr] Checking sourcemap v9.2.1 [INFO] [stderr] Checking swc_common v11.0.0 [INFO] [stderr] Checking boa_ast v0.17.3 [INFO] [stderr] Checking tinystr v0.7.2 [INFO] [stderr] Checking icu_collections v1.2.0 [INFO] [stderr] Checking icu_locid v1.2.0 [INFO] [stderr] Checking icu_provider v1.2.0 [INFO] [stderr] Checking swc_ecma_ast v11.0.0 [INFO] [stderr] Checking icu_properties v1.2.0 [INFO] [stderr] Checking icu_provider_blob v1.2.0 [INFO] [stderr] Checking icu_provider_adapters v1.2.0 [INFO] [stderr] Checking icu_normalizer v1.2.0 [INFO] [stderr] Checking boa_icu_provider v0.17.3 [INFO] [stderr] Checking boa_parser v0.17.3 [INFO] [stderr] Checking boa_engine v0.17.3 [INFO] [stderr] Checking swc_ecma_lexer v14.0.2 [INFO] [stderr] Checking swc_ecma_codegen v13.1.0 [INFO] [stderr] Checking swc_ecma_visit v11.0.0 [INFO] [stderr] Checking swc_ecma_parser v14.0.1 [INFO] [stderr] Checking mojes-mojo v0.1.0 (/opt/rustwide/workdir/mojes-mojo) [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> mojes-mojo/src/lib.rs:5876:13 [INFO] [stdout] | [INFO] [stdout] 5875 | panic!("Infinite or complex ranges not fully supported: {:?}", x); [INFO] [stdout] | ----------------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 5876 | / Ok(js::Expr::Array(js::ArrayLit { [INFO] [stdout] 5877 | | span: DUMMY_SP, [INFO] [stdout] 5878 | | elems: vec![], [INFO] [stdout] 5879 | | })) [INFO] [stdout] | |_______________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> mojes-mojo/src/lib.rs:396:13 [INFO] [stdout] | [INFO] [stdout] 396 | let mut final_exprs = exprs; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> mojes-mojo/src/lib.rs:5876:13 [INFO] [stdout] | [INFO] [stdout] 5875 | panic!("Infinite or complex ranges not fully supported: {:?}", x); [INFO] [stdout] | ----------------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 5876 | / Ok(js::Expr::Array(js::ArrayLit { [INFO] [stdout] 5877 | | span: DUMMY_SP, [INFO] [stdout] 5878 | | elems: vec![], [INFO] [stdout] 5879 | | })) [INFO] [stdout] | |_______________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1274:13 [INFO] [stdout] | [INFO] [stdout] 1274 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> mojes-mojo/src/lib.rs:1274:13 [INFO] [stdout] | [INFO] [stdout] 1192 | Stmt::Local(local) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1197 | Stmt::Item(item) => match item { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1215 | Stmt::Expr(expr, semi) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1270 | Stmt::Macro(mac_stmt) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1274 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_struct` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1202:35 [INFO] [stdout] | [INFO] [stdout] 1202 | syn::Item::Struct(item_struct) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_struct` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_enum` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1208:33 [INFO] [stdout] | [INFO] [stdout] 1208 | syn::Item::Enum(item_enum) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_enum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1400:13 [INFO] [stdout] | [INFO] [stdout] 1400 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> mojes-mojo/src/lib.rs:1400:13 [INFO] [stdout] | [INFO] [stdout] 1305 | Stmt::Local(local) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1310 | Stmt::Item(item) => match item { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1328 | Stmt::Expr(expr, semi) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1396 | Stmt::Macro(mac_stmt) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1400 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_struct` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1315:35 [INFO] [stdout] | [INFO] [stdout] 1315 | syn::Item::Struct(item_struct) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_enum` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1321:33 [INFO] [stdout] | [INFO] [stdout] 1321 | syn::Item::Enum(item_enum) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_enum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_action` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1506:5 [INFO] [stdout] | [INFO] [stdout] 1506 | block_action: BlockAction, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1507:5 [INFO] [stdout] | [INFO] [stdout] 1507 | expr: &Expr, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1508:5 [INFO] [stdout] | [INFO] [stdout] 1508 | state: &mut TranspilerState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1869:9 [INFO] [stdout] | [INFO] [stdout] 1811 | Expr::ForLoop(for_expr) => handle_for_expr(for_expr, state), [INFO] [stdout] | ----------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1869 | Expr::ForLoop(for_expr) => handle_for_expr(for_expr, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1872:9 [INFO] [stdout] | [INFO] [stdout] 1814 | Expr::Match(match_expr) => handle_match_expr(match_expr, state), [INFO] [stdout] | ----------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1872 | Expr::Match(match_expr) => handle_match_expr(match_expr, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1873:9 [INFO] [stdout] | [INFO] [stdout] 1818 | Expr::Closure(closure) => handle_closure_expr(closure, state), [INFO] [stdout] | ---------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1873 | Expr::Closure(closure) => handle_closure_expr(closure, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1874:9 [INFO] [stdout] | [INFO] [stdout] 1808 | Expr::Struct(struct_expr) => handle_struct_expr(struct_expr, state), [INFO] [stdout] | ------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1874 | Expr::Struct(struct_expr) => handle_struct_expr(struct_expr, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1877:9 [INFO] [stdout] | [INFO] [stdout] 1816 | Expr::Paren(paren) => handle_paren_expr(paren, state), [INFO] [stdout] | ------------------ matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1877 | Expr::Paren(paren) => handle_paren_expr(paren, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1919:9 [INFO] [stdout] | [INFO] [stdout] 1816 | Expr::Paren(paren) => handle_paren_expr(paren, state), [INFO] [stdout] | ------------------ matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1919 | Expr::Paren(paren) => handle_paren_expr(paren, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_struct` [INFO] [stdout] --> mojes-mojo/src/lib.rs:2852:41 [INFO] [stdout] | [INFO] [stdout] 2852 | ... if let Some(current_struct) = state.get_current_struct_name() { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> mojes-mojo/src/lib.rs:5876:13 [INFO] [stdout] | [INFO] [stdout] 5875 | panic!("Infinite or complex ranges not fully supported: {:?}", x); [INFO] [stdout] | ----------------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 5876 | / Ok(js::Expr::Array(js::ArrayLit { [INFO] [stdout] 5877 | | span: DUMMY_SP, [INFO] [stdout] 5878 | | elems: vec![], [INFO] [stdout] 5879 | | })) [INFO] [stdout] | |_______________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> mojes-mojo/src/lib.rs:396:13 [INFO] [stdout] | [INFO] [stdout] 396 | let mut final_exprs = exprs; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> mojes-mojo/src/lib.rs:4291:21 [INFO] [stdout] | [INFO] [stdout] 4291 | let (condition, mut binding_stmts) = [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> mojes-mojo/src/lib.rs:4618:21 [INFO] [stdout] | [INFO] [stdout] 4618 | let param = js::Param { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> mojes-mojo/src/lib.rs:4770:17 [INFO] [stdout] | [INFO] [stdout] 4770 | let mut stmts = vec![ [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enum_name` [INFO] [stdout] --> mojes-mojo/src/lib.rs:5599:13 [INFO] [stdout] | [INFO] [stdout] 5599 | let enum_name = struct_expr.path.segments.first().unwrap().ident.to_string(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enum_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> mojes-mojo/src/lib.rs:5947:13 [INFO] [stdout] | [INFO] [stdout] 5947 | let mut state = TranspilerState::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> mojes-mojo/src/lib.rs:5947:9 [INFO] [stdout] | [INFO] [stdout] 5947 | let mut state = TranspilerState::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1274:13 [INFO] [stdout] | [INFO] [stdout] 1274 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> mojes-mojo/src/lib.rs:1274:13 [INFO] [stdout] | [INFO] [stdout] 1192 | Stmt::Local(local) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1197 | Stmt::Item(item) => match item { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1215 | Stmt::Expr(expr, semi) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1270 | Stmt::Macro(mac_stmt) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1274 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_struct` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1202:35 [INFO] [stdout] | [INFO] [stdout] 1202 | syn::Item::Struct(item_struct) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_struct` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_enum` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1208:33 [INFO] [stdout] | [INFO] [stdout] 1208 | syn::Item::Enum(item_enum) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_enum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_be_statement` is never used [INFO] [stdout] --> mojes-mojo/src/lib.rs:588:4 [INFO] [stdout] | [INFO] [stdout] 588 | fn can_be_statement(expr: &Expr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_match_condition` is never used [INFO] [stdout] --> mojes-mojo/src/lib.rs:5287:4 [INFO] [stdout] | [INFO] [stdout] 5287 | fn create_match_condition( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_enum_to_json_method` is never used [INFO] [stdout] --> mojes-mojo/src/lib.rs:6081:4 [INFO] [stdout] | [INFO] [stdout] 6081 | fn create_enum_to_json_method( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_enum_to_json_standalone_function` is never used [INFO] [stdout] --> mojes-mojo/src/lib.rs:6383:4 [INFO] [stdout] | [INFO] [stdout] 6383 | fn create_enum_to_json_standalone_function( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> mojes-mojo/src/lib.rs:396:13 [INFO] [stdout] | [INFO] [stdout] 396 | let mut final_exprs = exprs; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1400:13 [INFO] [stdout] | [INFO] [stdout] 1400 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> mojes-mojo/src/lib.rs:1400:13 [INFO] [stdout] | [INFO] [stdout] 1305 | Stmt::Local(local) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1310 | Stmt::Item(item) => match item { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1328 | Stmt::Expr(expr, semi) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1396 | Stmt::Macro(mac_stmt) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1400 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_struct` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1315:35 [INFO] [stdout] | [INFO] [stdout] 1315 | syn::Item::Struct(item_struct) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_enum` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1321:33 [INFO] [stdout] | [INFO] [stdout] 1321 | syn::Item::Enum(item_enum) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_enum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_action` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1506:5 [INFO] [stdout] | [INFO] [stdout] 1506 | block_action: BlockAction, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1507:5 [INFO] [stdout] | [INFO] [stdout] 1507 | expr: &Expr, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1508:5 [INFO] [stdout] | [INFO] [stdout] 1508 | state: &mut TranspilerState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1869:9 [INFO] [stdout] | [INFO] [stdout] 1811 | Expr::ForLoop(for_expr) => handle_for_expr(for_expr, state), [INFO] [stdout] | ----------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1869 | Expr::ForLoop(for_expr) => handle_for_expr(for_expr, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1872:9 [INFO] [stdout] | [INFO] [stdout] 1814 | Expr::Match(match_expr) => handle_match_expr(match_expr, state), [INFO] [stdout] | ----------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1872 | Expr::Match(match_expr) => handle_match_expr(match_expr, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1873:9 [INFO] [stdout] | [INFO] [stdout] 1818 | Expr::Closure(closure) => handle_closure_expr(closure, state), [INFO] [stdout] | ---------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1873 | Expr::Closure(closure) => handle_closure_expr(closure, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1874:9 [INFO] [stdout] | [INFO] [stdout] 1808 | Expr::Struct(struct_expr) => handle_struct_expr(struct_expr, state), [INFO] [stdout] | ------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1874 | Expr::Struct(struct_expr) => handle_struct_expr(struct_expr, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1877:9 [INFO] [stdout] | [INFO] [stdout] 1816 | Expr::Paren(paren) => handle_paren_expr(paren, state), [INFO] [stdout] | ------------------ matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1877 | Expr::Paren(paren) => handle_paren_expr(paren, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1919:9 [INFO] [stdout] | [INFO] [stdout] 1816 | Expr::Paren(paren) => handle_paren_expr(paren, state), [INFO] [stdout] | ------------------ matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1919 | Expr::Paren(paren) => handle_paren_expr(paren, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_struct` [INFO] [stdout] --> mojes-mojo/src/lib.rs:2852:41 [INFO] [stdout] | [INFO] [stdout] 2852 | ... if let Some(current_struct) = state.get_current_struct_name() { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1274:13 [INFO] [stdout] | [INFO] [stdout] 1274 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> mojes-mojo/src/lib.rs:1274:13 [INFO] [stdout] | [INFO] [stdout] 1192 | Stmt::Local(local) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1197 | Stmt::Item(item) => match item { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1215 | Stmt::Expr(expr, semi) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1270 | Stmt::Macro(mac_stmt) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1274 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_struct` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1202:35 [INFO] [stdout] | [INFO] [stdout] 1202 | syn::Item::Struct(item_struct) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_struct` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_enum` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1208:33 [INFO] [stdout] | [INFO] [stdout] 1208 | syn::Item::Enum(item_enum) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_enum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1400:13 [INFO] [stdout] | [INFO] [stdout] 1400 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> mojes-mojo/src/lib.rs:1400:13 [INFO] [stdout] | [INFO] [stdout] 1305 | Stmt::Local(local) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1310 | Stmt::Item(item) => match item { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1328 | Stmt::Expr(expr, semi) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1396 | Stmt::Macro(mac_stmt) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1400 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_struct` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1315:35 [INFO] [stdout] | [INFO] [stdout] 1315 | syn::Item::Struct(item_struct) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_enum` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1321:33 [INFO] [stdout] | [INFO] [stdout] 1321 | syn::Item::Enum(item_enum) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_enum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_action` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1506:5 [INFO] [stdout] | [INFO] [stdout] 1506 | block_action: BlockAction, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1507:5 [INFO] [stdout] | [INFO] [stdout] 1507 | expr: &Expr, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1508:5 [INFO] [stdout] | [INFO] [stdout] 1508 | state: &mut TranspilerState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1869:9 [INFO] [stdout] | [INFO] [stdout] 1811 | Expr::ForLoop(for_expr) => handle_for_expr(for_expr, state), [INFO] [stdout] | ----------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1869 | Expr::ForLoop(for_expr) => handle_for_expr(for_expr, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1872:9 [INFO] [stdout] | [INFO] [stdout] 1814 | Expr::Match(match_expr) => handle_match_expr(match_expr, state), [INFO] [stdout] | ----------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1872 | Expr::Match(match_expr) => handle_match_expr(match_expr, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1873:9 [INFO] [stdout] | [INFO] [stdout] 1818 | Expr::Closure(closure) => handle_closure_expr(closure, state), [INFO] [stdout] | ---------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1873 | Expr::Closure(closure) => handle_closure_expr(closure, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1874:9 [INFO] [stdout] | [INFO] [stdout] 1808 | Expr::Struct(struct_expr) => handle_struct_expr(struct_expr, state), [INFO] [stdout] | ------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1874 | Expr::Struct(struct_expr) => handle_struct_expr(struct_expr, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1877:9 [INFO] [stdout] | [INFO] [stdout] 1816 | Expr::Paren(paren) => handle_paren_expr(paren, state), [INFO] [stdout] | ------------------ matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1877 | Expr::Paren(paren) => handle_paren_expr(paren, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1919:9 [INFO] [stdout] | [INFO] [stdout] 1816 | Expr::Paren(paren) => handle_paren_expr(paren, state), [INFO] [stdout] | ------------------ matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1919 | Expr::Paren(paren) => handle_paren_expr(paren, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> mojes-mojo/src/lib.rs:4291:21 [INFO] [stdout] | [INFO] [stdout] 4291 | let (condition, mut binding_stmts) = [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> mojes-mojo/src/lib.rs:4618:21 [INFO] [stdout] | [INFO] [stdout] 4618 | let param = js::Param { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> mojes-mojo/src/lib.rs:4770:17 [INFO] [stdout] | [INFO] [stdout] 4770 | let mut stmts = vec![ [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_struct` [INFO] [stdout] --> mojes-mojo/src/lib.rs:2852:41 [INFO] [stdout] | [INFO] [stdout] 2852 | ... if let Some(current_struct) = state.get_current_struct_name() { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enum_name` [INFO] [stdout] --> mojes-mojo/src/lib.rs:5599:13 [INFO] [stdout] | [INFO] [stdout] 5599 | let enum_name = struct_expr.path.segments.first().unwrap().ident.to_string(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enum_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> mojes-mojo/src/lib.rs:5947:13 [INFO] [stdout] | [INFO] [stdout] 5947 | let mut state = TranspilerState::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> mojes-mojo/src/lib.rs:5947:9 [INFO] [stdout] | [INFO] [stdout] 5947 | let mut state = TranspilerState::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_be_statement` is never used [INFO] [stdout] --> mojes-mojo/src/lib.rs:588:4 [INFO] [stdout] | [INFO] [stdout] 588 | fn can_be_statement(expr: &Expr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_match_condition` is never used [INFO] [stdout] --> mojes-mojo/src/lib.rs:5287:4 [INFO] [stdout] | [INFO] [stdout] 5287 | fn create_match_condition( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_enum_to_json_method` is never used [INFO] [stdout] --> mojes-mojo/src/lib.rs:6081:4 [INFO] [stdout] | [INFO] [stdout] 6081 | fn create_enum_to_json_method( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_enum_to_json_standalone_function` is never used [INFO] [stdout] --> mojes-mojo/src/lib.rs:6383:4 [INFO] [stdout] | [INFO] [stdout] 6383 | fn create_enum_to_json_standalone_function( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> mojes-mojo/src/lib.rs:4291:21 [INFO] [stdout] | [INFO] [stdout] 4291 | let (condition, mut binding_stmts) = [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> mojes-mojo/src/lib.rs:4618:21 [INFO] [stdout] | [INFO] [stdout] 4618 | let param = js::Param { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> mojes-mojo/src/lib.rs:4770:17 [INFO] [stdout] | [INFO] [stdout] 4770 | let mut stmts = vec![ [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking mojes-file v0.1.0 (/opt/rustwide/workdir/mojes-file) [INFO] [stdout] warning: unused variable: `enum_name` [INFO] [stdout] --> mojes-mojo/src/lib.rs:5599:13 [INFO] [stdout] | [INFO] [stdout] 5599 | let enum_name = struct_expr.path.segments.first().unwrap().ident.to_string(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enum_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> mojes-mojo/src/lib.rs:5947:13 [INFO] [stdout] | [INFO] [stdout] 5947 | let mut state = TranspilerState::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> mojes-mojo/src/lib.rs:5947:9 [INFO] [stdout] | [INFO] [stdout] 5947 | let mut state = TranspilerState::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write` and `self` [INFO] [stdout] --> mojes-file/src/main.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> mojes-file/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Write` and `self` [INFO] [stdout] --> mojes-file/src/main.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Write}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> mojes-file/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_be_statement` is never used [INFO] [stdout] --> mojes-mojo/src/lib.rs:588:4 [INFO] [stdout] | [INFO] [stdout] 588 | fn can_be_statement(expr: &Expr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_match_condition` is never used [INFO] [stdout] --> mojes-mojo/src/lib.rs:5287:4 [INFO] [stdout] | [INFO] [stdout] 5287 | fn create_match_condition( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_enum_to_json_method` is never used [INFO] [stdout] --> mojes-mojo/src/lib.rs:6081:4 [INFO] [stdout] | [INFO] [stdout] 6081 | fn create_enum_to_json_method( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_enum_to_json_standalone_function` is never used [INFO] [stdout] --> mojes-mojo/src/lib.rs:6383:4 [INFO] [stdout] | [INFO] [stdout] 6383 | fn create_enum_to_json_standalone_function( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Stmt` [INFO] [stdout] --> mojes-mojo/tests/statements.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use syn::{Block, Stmt, parse_quote}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `proc_macro2::TokenStream` [INFO] [stdout] --> mojes-mojo/tests/remaining_functions.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use proc_macro2::TokenStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ItemEnum`, `ItemStruct`, and `Type` [INFO] [stdout] --> mojes-mojo/tests/remaining_functions.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use syn::{Block, Expr, ItemEnum, ItemStruct, Type, parse_quote}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr_str` [INFO] [stdout] --> mojes-mojo/tests/remaining_functions.rs:309:9 [INFO] [stdout] | [INFO] [stdout] 309 | let expr_str = format!("{}", long_name); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expr_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking mojes-derive v0.1.0 (/opt/rustwide/workdir/mojes-derive) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> mojes-mojo/tests/test_webrtc_fix.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Block` and `Expr` [INFO] [stdout] --> mojes-mojo/tests/objects.rs:8:15 [INFO] [stdout] | [INFO] [stdout] 8 | use syn::{Block, Expr, ItemImpl, ItemStruct, parse_quote}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ident` [INFO] [stdout] --> mojes-derive/src/lib.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | use syn::{Fields, Ident}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> mojes-mojo/tests/objects.rs:39:39 [INFO] [stdout] | [INFO] [stdout] 39 | fn js_to_boolean(value: &JsValue, context: &mut Context) -> bool { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ident` [INFO] [stdout] --> mojes-derive/src/lib.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | use syn::{Fields, Ident}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> mojes-mojo/tests/additional_tests.rs:926:9 [INFO] [stdout] | [INFO] [stdout] 926 | let result = eval_js(test_code).unwrap(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_expr_with_vars` is never used [INFO] [stdout] --> mojes-mojo/tests/expressions.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn eval_expr_with_vars(expr_js: &str, vars: &[(&str, &str)]) -> JsResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_expr_with_vars` is never used [INFO] [stdout] --> mojes-mojo/tests/expressions.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn eval_expr_with_vars(expr_js: &str, vars: &[(&str, &str)]) -> JsResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wrapped` [INFO] [stdout] --> mojes-mojo/tests/more_tests.rs:668:9 [INFO] [stdout] | [INFO] [stdout] 668 | let wrapped = format!("(function() {{\n{}}})();", js_code); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wrapped` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> mojes-mojo/tests/objects.rs:17:35 [INFO] [stdout] | [INFO] [stdout] 17 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context)> { [INFO] [stdout] | ^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 17 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> mojes-mojo/src/lib.rs:5876:13 [INFO] [stdout] | [INFO] [stdout] 5875 | panic!("Infinite or complex ranges not fully supported: {:?}", x); [INFO] [stdout] | ----------------------------------------------------------------- any code following this expression is unreachable [INFO] [stdout] 5876 | / Ok(js::Expr::Array(js::ArrayLit { [INFO] [stdout] 5877 | | span: DUMMY_SP, [INFO] [stdout] 5878 | | elems: vec![], [INFO] [stdout] 5879 | | })) [INFO] [stdout] | |_______________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> mojes-mojo/src/lib.rs:396:13 [INFO] [stdout] | [INFO] [stdout] 396 | let mut final_exprs = exprs; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1274:13 [INFO] [stdout] | [INFO] [stdout] 1274 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> mojes-mojo/src/lib.rs:1274:13 [INFO] [stdout] | [INFO] [stdout] 1192 | Stmt::Local(local) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1197 | Stmt::Item(item) => match item { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1215 | Stmt::Expr(expr, semi) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1270 | Stmt::Macro(mac_stmt) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1274 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_struct` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1202:35 [INFO] [stdout] | [INFO] [stdout] 1202 | syn::Item::Struct(item_struct) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_struct` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_enum` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1208:33 [INFO] [stdout] | [INFO] [stdout] 1208 | syn::Item::Enum(item_enum) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_enum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1400:13 [INFO] [stdout] | [INFO] [stdout] 1400 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> mojes-mojo/src/lib.rs:1400:13 [INFO] [stdout] | [INFO] [stdout] 1305 | Stmt::Local(local) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1310 | Stmt::Item(item) => match item { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1328 | Stmt::Expr(expr, semi) => { [INFO] [stdout] | ---------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1396 | Stmt::Macro(mac_stmt) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 1400 | _ => { [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_struct` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1315:35 [INFO] [stdout] | [INFO] [stdout] 1315 | syn::Item::Struct(item_struct) => { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item_enum` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1321:33 [INFO] [stdout] | [INFO] [stdout] 1321 | syn::Item::Enum(item_enum) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_item_enum` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_action` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1506:5 [INFO] [stdout] | [INFO] [stdout] 1506 | block_action: BlockAction, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_action` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1507:5 [INFO] [stdout] | [INFO] [stdout] 1507 | expr: &Expr, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> mojes-mojo/src/lib.rs:1508:5 [INFO] [stdout] | [INFO] [stdout] 1508 | state: &mut TranspilerState, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1869:9 [INFO] [stdout] | [INFO] [stdout] 1811 | Expr::ForLoop(for_expr) => handle_for_expr(for_expr, state), [INFO] [stdout] | ----------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1869 | Expr::ForLoop(for_expr) => handle_for_expr(for_expr, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1872:9 [INFO] [stdout] | [INFO] [stdout] 1814 | Expr::Match(match_expr) => handle_match_expr(match_expr, state), [INFO] [stdout] | ----------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1872 | Expr::Match(match_expr) => handle_match_expr(match_expr, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1873:9 [INFO] [stdout] | [INFO] [stdout] 1818 | Expr::Closure(closure) => handle_closure_expr(closure, state), [INFO] [stdout] | ---------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1873 | Expr::Closure(closure) => handle_closure_expr(closure, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1874:9 [INFO] [stdout] | [INFO] [stdout] 1808 | Expr::Struct(struct_expr) => handle_struct_expr(struct_expr, state), [INFO] [stdout] | ------------------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1874 | Expr::Struct(struct_expr) => handle_struct_expr(struct_expr, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1877:9 [INFO] [stdout] | [INFO] [stdout] 1816 | Expr::Paren(paren) => handle_paren_expr(paren, state), [INFO] [stdout] | ------------------ matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1877 | Expr::Paren(paren) => handle_paren_expr(paren, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> mojes-mojo/src/lib.rs:1919:9 [INFO] [stdout] | [INFO] [stdout] 1816 | Expr::Paren(paren) => handle_paren_expr(paren, state), [INFO] [stdout] | ------------------ matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 1919 | Expr::Paren(paren) => handle_paren_expr(paren, state), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_struct` [INFO] [stdout] --> mojes-mojo/src/lib.rs:2852:41 [INFO] [stdout] | [INFO] [stdout] 2852 | ... if let Some(current_struct) = state.get_current_struct_name() { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> mojes-mojo/src/lib.rs:4291:21 [INFO] [stdout] | [INFO] [stdout] 4291 | let (condition, mut binding_stmts) = [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `param` [INFO] [stdout] --> mojes-mojo/src/lib.rs:4618:21 [INFO] [stdout] | [INFO] [stdout] 4618 | let param = js::Param { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_param` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> mojes-mojo/src/lib.rs:4770:17 [INFO] [stdout] | [INFO] [stdout] 4770 | let mut stmts = vec![ [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `enum_name` [INFO] [stdout] --> mojes-mojo/src/lib.rs:5599:13 [INFO] [stdout] | [INFO] [stdout] 5599 | let enum_name = struct_expr.path.segments.first().unwrap().ident.to_string(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enum_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> mojes-mojo/src/lib.rs:5947:13 [INFO] [stdout] | [INFO] [stdout] 5947 | let mut state = TranspilerState::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> mojes-mojo/src/lib.rs:5947:9 [INFO] [stdout] | [INFO] [stdout] 5947 | let mut state = TranspilerState::new(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `can_be_statement` is never used [INFO] [stdout] --> mojes-mojo/src/lib.rs:588:4 [INFO] [stdout] | [INFO] [stdout] 588 | fn can_be_statement(expr: &Expr) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_match_condition` is never used [INFO] [stdout] --> mojes-mojo/src/lib.rs:5287:4 [INFO] [stdout] | [INFO] [stdout] 5287 | fn create_match_condition( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_enum_to_json_method` is never used [INFO] [stdout] --> mojes-mojo/src/lib.rs:6081:4 [INFO] [stdout] | [INFO] [stdout] 6081 | fn create_enum_to_json_method( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_enum_to_json_standalone_function` is never used [INFO] [stdout] --> mojes-mojo/src/lib.rs:6383:4 [INFO] [stdout] | [INFO] [stdout] 6383 | fn create_enum_to_json_standalone_function( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ident` [INFO] [stdout] --> mojes-derive/src/lib.rs:11:19 [INFO] [stdout] | [INFO] [stdout] 11 | use syn::{Fields, Ident}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking mojes-dom-api v0.1.0 (/opt/rustwide/workdir/mojes-dom-api) [INFO] [stdout] warning: unexpected `cfg` condition name: `test_not_needed_now` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:1350:7 [INFO] [stdout] | [INFO] [stdout] 1350 | #[cfg(test_not_needed_now)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_not_needed_now)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_not_needed_now)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_not_needed_now` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:1906:7 [INFO] [stdout] | [INFO] [stdout] 1906 | #[cfg(test_not_needed_now)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_not_needed_now)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_not_needed_now)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_not_needed_now` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:1350:7 [INFO] [stdout] | [INFO] [stdout] 1350 | #[cfg(test_not_needed_now)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_not_needed_now)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_not_needed_now)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `test_not_needed_now` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:1906:7 [INFO] [stdout] | [INFO] [stdout] 1906 | #[cfg(test_not_needed_now)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test_not_needed_now)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(test_not_needed_now)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn resolve(value: T) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:55:30 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn then(&self, callback: F) -> Promise [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:63:28 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn catch(&self, callback: F) -> Promise [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn Number(s: &str) -> f64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:390:37 [INFO] [stdout] | [INFO] [stdout] 390 | pub fn set_srcObject(&mut self, stream: Option) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:458:37 [INFO] [stdout] | [INFO] [stdout] 458 | pub fn getElementsByName(&self, name: &str) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:641:33 [INFO] [stdout] | [INFO] [stdout] 641 | pub fn setTimeout(&self, callback: F, delay: u32) -> u32 [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn resolve(value: T) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:649:34 [INFO] [stdout] | [INFO] [stdout] 649 | pub fn setInterval(&self, callback: F, delay: u32) -> u32 [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:674:44 [INFO] [stdout] | [INFO] [stdout] 674 | pub fn requestAnimationFrame(&self, callback: F) -> u32 [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:55:30 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn then(&self, callback: F) -> Promise [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:63:28 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn catch(&self, callback: F) -> Promise [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn Number(s: &str) -> f64 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:390:37 [INFO] [stdout] | [INFO] [stdout] 390 | pub fn set_srcObject(&mut self, stream: Option) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:458:37 [INFO] [stdout] | [INFO] [stdout] 458 | pub fn getElementsByName(&self, name: &str) -> Vec { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:641:33 [INFO] [stdout] | [INFO] [stdout] 641 | pub fn setTimeout(&self, callback: F, delay: u32) -> u32 [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:649:34 [INFO] [stdout] | [INFO] [stdout] 649 | pub fn setInterval(&self, callback: F, delay: u32) -> u32 [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:674:44 [INFO] [stdout] | [INFO] [stdout] 674 | pub fn requestAnimationFrame(&self, callback: F) -> u32 [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `listener` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:1723:61 [INFO] [stdout] | [INFO] [stdout] 1723 | pub fn addEventListener(&mut self, event_type: &str, listener: F) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event_type` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:1983:43 [INFO] [stdout] | [INFO] [stdout] 1983 | pub fn addEventListener(&mut self, event_type: &str, listener: F) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_event_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `listener` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:1983:61 [INFO] [stdout] | [INFO] [stdout] 1983 | pub fn addEventListener(&mut self, event_type: &str, listener: F) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `listener` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:1723:61 [INFO] [stdout] | [INFO] [stdout] 1723 | pub fn addEventListener(&mut self, event_type: &str, listener: F) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `event_type` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:1983:43 [INFO] [stdout] | [INFO] [stdout] 1983 | pub fn addEventListener(&mut self, event_type: &str, listener: F) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_event_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `listener` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:1983:61 [INFO] [stdout] | [INFO] [stdout] 1983 | pub fn addEventListener(&mut self, event_type: &str, listener: F) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `listener` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:2195:61 [INFO] [stdout] | [INFO] [stdout] 2195 | pub fn addEventListener(&mut self, event_type: &str, listener: F) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `listener` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:2245:61 [INFO] [stdout] | [INFO] [stdout] 2245 | pub fn addEventListener(&mut self, event_type: &str, listener: F) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constraints` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:2327:32 [INFO] [stdout] | [INFO] [stdout] 2327 | pub fn getUserMedia(&self, constraints: &MediaStreamConstraints) -> Promise { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constraints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constraints` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:2333:35 [INFO] [stdout] | [INFO] [stdout] 2333 | pub fn getDisplayMedia(&self, constraints: &MediaStreamConstraints) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constraints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `listener` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:2554:61 [INFO] [stdout] | [INFO] [stdout] 2554 | pub fn addEventListener(&mut self, event_type: &str, listener: F) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `listener` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:2195:61 [INFO] [stdout] | [INFO] [stdout] 2195 | pub fn addEventListener(&mut self, event_type: &str, listener: F) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `listener` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:2245:61 [INFO] [stdout] | [INFO] [stdout] 2245 | pub fn addEventListener(&mut self, event_type: &str, listener: F) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constraints` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:2327:32 [INFO] [stdout] | [INFO] [stdout] 2327 | pub fn getUserMedia(&self, constraints: &MediaStreamConstraints) -> Promise { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constraints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constraints` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:2333:35 [INFO] [stdout] | [INFO] [stdout] 2333 | pub fn getDisplayMedia(&self, constraints: &MediaStreamConstraints) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constraints` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sender` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:2652:35 [INFO] [stdout] | [INFO] [stdout] 2652 | pub fn removeTrack(&mut self, sender: &RTCRtpSender) -> Result<(), String> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `listener` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:2669:57 [INFO] [stdout] | [INFO] [stdout] 2669 | pub fn addEventListener(&self, event_type: &str, listener: F) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `listener` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:2554:61 [INFO] [stdout] | [INFO] [stdout] 2554 | pub fn addEventListener(&mut self, event_type: &str, listener: F) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sender` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:2652:35 [INFO] [stdout] | [INFO] [stdout] 2652 | pub fn removeTrack(&mut self, sender: &RTCRtpSender) -> Result<(), String> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `listener` [INFO] [stdout] --> mojes-dom-api/src/lib.rs:2669:57 [INFO] [stdout] | [INFO] [stdout] 2669 | pub fn addEventListener(&self, event_type: &str, listener: F) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking mojes v0.1.0 (/opt/rustwide/workdir/mojes) [INFO] [stdout] warning: function `test_classList_basic_operations` should have a snake case name [INFO] [stdout] --> mojes-dom-api/tests/test_classList.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn test_classList_basic_operations() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_class_list_basic_operations` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_classList_edge_cases` should have a snake case name [INFO] [stdout] --> mojes-dom-api/tests/test_classList.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn test_classList_edge_cases() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_class_list_edge_cases` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_classList_whitespace_handling` should have a snake case name [INFO] [stdout] --> mojes-dom-api/tests/test_classList.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn test_classList_whitespace_handling() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_class_list_whitespace_handling` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_classList_item_access` should have a snake case name [INFO] [stdout] --> mojes-dom-api/tests/test_classList.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | fn test_classList_item_access() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_class_list_item_access` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_classList_value` should have a snake case name [INFO] [stdout] --> mojes-dom-api/tests/test_classList.rs:111:4 [INFO] [stdout] | [INFO] [stdout] 111 | fn test_classList_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_class_list_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_js_with_context` is never used [INFO] [stdout] --> mojes/tests/test_hashmap_contains_key.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | fn eval_js_with_context(code: &str) -> JsResult<(BoaJsValue, Context)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extract_logged_messages` is never used [INFO] [stdout] --> mojes/tests/test_hashmap_contains_key.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn extract_logged_messages(context: &mut Context) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> mojes/tests/test_hashmap_contains_key.rs:31:35 [INFO] [stdout] | [INFO] [stdout] 31 | fn eval_js_with_context(code: &str) -> JsResult<(BoaJsValue, Context)> { [INFO] [stdout] | ^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 31 | fn eval_js_with_context(code: &str) -> JsResult<(BoaJsValue, Context<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> mojes/tests/test_rust_retval_fix.rs:50:35 [INFO] [stdout] | [INFO] [stdout] 50 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context)> { [INFO] [stdout] | ^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 50 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyMap` is never constructed [INFO] [stdout] --> mojes/tests/test_contains_key_pattern.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct MyMap; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `contains_key` is never used [INFO] [stdout] --> mojes/tests/test_contains_key_pattern.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl MyMap { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 11 | fn contains_key(&self, _key: &str) -> bool { false } [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_contains_key_pattern` is never used [INFO] [stdout] --> mojes/tests/test_contains_key_pattern.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn test_contains_key_pattern() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data_channel` [INFO] [stdout] --> mojes/tests/test_variable_conflicts_full.rs:22:47 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn setup_data_channel_handlers(&self, data_channel: &str, participant_id: &str, connection_type: &str) { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_data_channel` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> mojes/tests/test_console_format_conditional.rs:149:35 [INFO] [stdout] | [INFO] [stdout] 149 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context)> { [INFO] [stdout] | ^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 149 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_implicit_return` is never used [INFO] [stdout] --> mojes/tests/test_function_implicit_return.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn simple_implicit_return() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `complex_implicit_return` is never used [INFO] [stdout] --> mojes/tests/test_function_implicit_return.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn complex_implicit_return() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `conditional_implicit_return` is never used [INFO] [stdout] --> mojes/tests/test_function_implicit_return.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn conditional_implicit_return(flag: bool) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `block_implicit_return` is never used [INFO] [stdout] --> mojes/tests/test_function_implicit_return.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn block_implicit_return() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> mojes/tests/test_function_implicit_return.rs:40:35 [INFO] [stdout] | [INFO] [stdout] 40 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context)> { [INFO] [stdout] | ^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 40 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `js_to_string` is never used [INFO] [stdout] --> mojes/tests/test_struct_match_scope.rs:301:8 [INFO] [stdout] | [INFO] [stdout] 301 | fn js_to_string(value: &JsValue, ctx: &mut Context) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> mojes/tests/test_struct_match_scope.rs:269:35 [INFO] [stdout] | [INFO] [stdout] 269 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context)> { [INFO] [stdout] | ^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 269 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> mojes/tests/test_result_transpilation.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 154 | let result = test_early_return_ok(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_function_body` is never used [INFO] [stdout] --> mojes/tests/debug_block_path.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn simple_function_body() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `direct_block` is never used [INFO] [stdout] --> mojes/tests/debug_block_path.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn direct_block() -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `whole_block_as_body` is never used [INFO] [stdout] --> mojes/tests/debug_block_path.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn whole_block_as_body() -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_js_with_context` is never used [INFO] [stdout] --> mojes/tests/test_keys_method.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> mojes/tests/test_keys_method.rs:44:35 [INFO] [stdout] | [INFO] [stdout] 44 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context)> { [INFO] [stdout] | ^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 44 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_custom_result_patterns` is never used [INFO] [stdout] --> mojes/tests/test_result_transpilation.rs:219:4 [INFO] [stdout] | [INFO] [stdout] 219 | fn test_custom_result_patterns() -> CustomResult { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_status_patterns` is never used [INFO] [stdout] --> mojes/tests/test_result_transpilation.rs:228:4 [INFO] [stdout] | [INFO] [stdout] 228 | fn test_status_patterns(active: bool) -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_status_pending` is never used [INFO] [stdout] --> mojes/tests/test_result_transpilation.rs:237:4 [INFO] [stdout] | [INFO] [stdout] 237 | fn test_status_pending() -> Status { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_message_patterns` is never used [INFO] [stdout] --> mojes/tests/test_result_transpilation.rs:242:4 [INFO] [stdout] | [INFO] [stdout] 242 | fn test_message_patterns(is_text: bool) -> Message { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_direct_custom_enum_construction` is never used [INFO] [stdout] --> mojes/tests/test_result_transpilation.rs:252:4 [INFO] [stdout] | [INFO] [stdout] 252 | fn test_direct_custom_enum_construction() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_match_on_custom_enums` is never used [INFO] [stdout] --> mojes/tests/test_result_transpilation.rs:281:4 [INFO] [stdout] | [INFO] [stdout] 281 | fn test_match_on_custom_enums() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `participant_id` [INFO] [stdout] --> mojes/tests/test_variable_reference_bug.rs:55:38 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn test_nested_scopes(&self, participant_id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_participant_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `video_element` [INFO] [stdout] --> mojes/tests/test_variable_reference_bug.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let video_element = "first".to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_video_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `audio_element` [INFO] [stdout] --> mojes/tests/test_variable_reference_bug.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | let audio_element = "audio1".to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_audio_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `participant_id` [INFO] [stdout] --> mojes/tests/test_variable_reference_bug.rs:88:44 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn test_complex_expressions(&self, participant_id: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_participant_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `video_element` [INFO] [stdout] --> mojes/tests/test_variable_reference_bug.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | let video_element = format!("test"); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_video_element` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `js_code` [INFO] [stdout] --> mojes/tests/test_variable_reference_bug.rs:282:37 [INFO] [stdout] | [INFO] [stdout] 282 | fn check_separate_if_blocks_pattern(js_code: &str) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_js_code` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error_str` [INFO] [stdout] --> mojes/tests/test_hashmap_remove_bug.rs:230:25 [INFO] [stdout] | [INFO] [stdout] 230 | let error_str = format!("{:?}", e); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> mojes/tests/test_hashmap_remove_bug.rs:131:35 [INFO] [stdout] | [INFO] [stdout] 131 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context)> { [INFO] [stdout] | ^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 131 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_func_with_closure` is never used [INFO] [stdout] --> mojes/tests/test_closure_parameters.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn test_func_with_closure(callback: F) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_closure_without_types` is never used [INFO] [stdout] --> mojes/tests/test_closure_parameters.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn test_closure_without_types() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_closure_with_types` is never used [INFO] [stdout] --> mojes/tests/test_closure_parameters.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn test_closure_with_types() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_multi_param_closures` is never used [INFO] [stdout] --> mojes/tests/test_closure_parameters.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn test_multi_param_closures() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_closure_return_values` is never used [INFO] [stdout] --> mojes/tests/test_closure_parameters.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn test_closure_return_values() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_nested_closures` is never used [INFO] [stdout] --> mojes/tests/test_closure_parameters.rs:99:4 [INFO] [stdout] | [INFO] [stdout] 99 | fn test_nested_closures() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_complex_type_closures` is never used [INFO] [stdout] --> mojes/tests/test_closure_parameters.rs:123:4 [INFO] [stdout] | [INFO] [stdout] 123 | fn test_complex_type_closures() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `js_to_string` is never used [INFO] [stdout] --> mojes/tests/test_as_str_issue.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 187 | fn js_to_string(value: &JsValue, ctx: &mut Context) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `connectionState` should have a snake case name [INFO] [stdout] --> mojes/tests/test_as_str_issue.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub connectionState: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `connection_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `addEventListener` should have a snake case name [INFO] [stdout] --> mojes/tests/test_as_str_issue.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn addEventListener(&self, _event_type: &str, _callback: impl FnOnce()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `add_event_listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> mojes/tests/test_as_str_issue.rs:155:35 [INFO] [stdout] | [INFO] [stdout] 155 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context)> { [INFO] [stdout] | ^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 155 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> mojes/tests/test_message_variable_conflict.rs:65:35 [INFO] [stdout] | [INFO] [stdout] 65 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context)> { [INFO] [stdout] | ^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 65 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auth_token` [INFO] [stdout] --> mojes/tests/test_complex_message_conflict.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 42 | auth_token, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `auth_token: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_signature` [INFO] [stdout] --> mojes/tests/test_complex_message_conflict.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | token_signature, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try ignoring the field: `token_signature: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> mojes/tests/test_rtype_field_issue.rs:56:35 [INFO] [stdout] | [INFO] [stdout] 56 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context)> { [INFO] [stdout] | ^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 56 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `AuthSuccess` is never constructed [INFO] [stdout] --> mojes/tests/test_complex_message_conflict.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | enum ServerMessage { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 11 | AuthSuccess { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServerMessage` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `client_id` is never read [INFO] [stdout] --> mojes/tests/test_complex_message_conflict.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 24 | struct ConferenceApp { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 25 | client_id: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> mojes/tests/test_complex_message_conflict.rs:107:35 [INFO] [stdout] | [INFO] [stdout] 107 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context)> { [INFO] [stdout] | ^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 107 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> mojes/tests/test_simple_hashmap.rs:66:35 [INFO] [stdout] | [INFO] [stdout] 66 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context)> { [INFO] [stdout] | ^^^^ ^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 66 | fn eval_js_with_context(code: &str) -> JsResult<(JsValue, Context<'_>)> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 07s [INFO] running `Command { std: "docker" "inspect" "729715c49a34922ae5ae4a929f40be5ca46c95c7a8a3fd83e98ce352b0c7dc30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "729715c49a34922ae5ae4a929f40be5ca46c95c7a8a3fd83e98ce352b0c7dc30", kill_on_drop: false }` [INFO] [stdout] 729715c49a34922ae5ae4a929f40be5ca46c95c7a8a3fd83e98ce352b0c7dc30