[INFO] fetching crate rqjs-ext 0.1.3... [INFO] testing rqjs-ext-0.1.3 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate rqjs-ext 0.1.3 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate rqjs-ext 0.1.3 [INFO] finished tweaking crates.io crate rqjs-ext 0.1.3 [INFO] tweaked toml for crates.io crate rqjs-ext 0.1.3 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rqjs-ext 0.1.3 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 245 packages to latest compatible versions [INFO] [stderr] Adding phf v0.11.3 (available: v0.12.1) [INFO] [stderr] Adding quick-xml v0.32.0 (available: v0.38.0) [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.1) [INFO] [stderr] Adding rquickjs v0.6.2 (available: v0.9.0) [INFO] [stderr] Adding simd-json v0.13.11 (available: v0.15.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded value-trait v0.8.1 [INFO] [stderr] Downloaded rquickjs v0.6.2 [INFO] [stderr] Downloaded rquickjs-macro v0.6.2 [INFO] [stderr] Downloaded hex-simd v0.8.0 [INFO] [stderr] Downloaded simd-json v0.13.11 [INFO] [stderr] Downloaded rquickjs-core v0.6.2 [INFO] [stderr] Downloaded rquickjs-sys v0.6.2 [INFO] [stderr] Downloaded cross-uname v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4bd0a08845a8aa3dd8386b3ebe61aa6cebe7fe9da2cc61e933fee84778f3d05b [INFO] running `Command { std: "docker" "start" "-a" "4bd0a08845a8aa3dd8386b3ebe61aa6cebe7fe9da2cc61e933fee84778f3d05b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4bd0a08845a8aa3dd8386b3ebe61aa6cebe7fe9da2cc61e933fee84778f3d05b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4bd0a08845a8aa3dd8386b3ebe61aa6cebe7fe9da2cc61e933fee84778f3d05b", kill_on_drop: false }` [INFO] [stdout] 4bd0a08845a8aa3dd8386b3ebe61aa6cebe7fe9da2cc61e933fee84778f3d05b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 9faf868aa386f2de59374b02f62fac7df0535850194fafdea23f570a7532a5ac [INFO] running `Command { std: "docker" "start" "-a" "9faf868aa386f2de59374b02f62fac7df0535850194fafdea23f570a7532a5ac", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling prettyplease v0.2.35 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling libloading v0.8.8 [INFO] [stderr] Compiling bindgen v0.69.5 [INFO] [stderr] Compiling home v0.5.11 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling lexical-util v1.0.6 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling rustls v0.23.28 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling tokio v1.45.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling utf8parse v0.2.2 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling rustls-webpki v0.103.3 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling nix v0.30.1 [INFO] [stderr] Compiling anstyle-parse v0.2.7 [INFO] [stderr] Compiling dlopen_derive v0.1.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling lexical-write-integer v1.0.5 [INFO] [stderr] Compiling lexical-parse-integer v1.0.5 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling vsimd v0.8.0 [INFO] [stderr] Compiling relative-path v1.9.3 [INFO] [stderr] Compiling outref v0.5.2 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling ref-cast v1.0.24 [INFO] [stderr] Compiling colorchoice v1.0.4 [INFO] [stderr] Compiling anstyle v1.0.11 [INFO] [stderr] Compiling is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling bytemuck v1.23.1 [INFO] [stderr] Compiling anstyle-query v1.1.3 [INFO] [stderr] Compiling anstream v0.6.19 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling atomic v0.6.1 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling dlopen v0.1.8 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling lexical-parse-float v1.0.5 [INFO] [stderr] Compiling lexical-write-float v1.0.5 [INFO] [stderr] Compiling h2 v0.4.10 [INFO] [stderr] Compiling crc32c v0.6.8 [INFO] [stderr] Compiling rand v0.9.1 [INFO] [stderr] Compiling rquickjs-sys v0.6.2 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling ref-cast-impl v1.0.24 [INFO] [stderr] Compiling float-cmp v0.9.0 [INFO] [stderr] Compiling halfbrown v0.2.5 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling sha1_smol v1.0.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling clap_lex v0.7.5 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling clap_builder v4.5.40 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling clap_derive v4.5.40 [INFO] [stderr] Compiling tokio-rustls v0.26.2 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling value-trait v0.8.1 [INFO] [stderr] Compiling hyper-util v0.1.14 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling lexical-core v1.0.5 [INFO] [stderr] Compiling webpki-roots v1.0.1 [INFO] [stderr] Compiling simdutf8 v0.1.5 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling simd-json v0.13.11 [INFO] [stderr] Compiling ctrlc v3.4.7 [INFO] [stderr] Compiling clap v4.5.40 [INFO] [stderr] Compiling uuid-simd v0.8.0 [INFO] [stderr] Compiling quick-xml v0.32.0 [INFO] [stderr] Compiling hex-simd v0.8.0 [INFO] [stderr] Compiling base64-simd v0.8.0 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling cross-uname v0.1.0 [INFO] [stderr] Compiling rquickjs-core v0.6.2 [INFO] [stderr] Compiling rquickjs-macro v0.6.2 [INFO] [stderr] Compiling rquickjs v0.6.2 [INFO] [stderr] Compiling rqjs-ext v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `rust_nightly` [INFO] [stdout] --> src/lib.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | #![cfg_attr(rust_nightly, feature(portable_simd))] [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(rust_nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(rust_nightly)");` 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: `rust_nightly` [INFO] [stdout] --> src/json/escape.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(rust_nightly)] //FIXME remove when std::simd is stable [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(rust_nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(rust_nightly)");` 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: `rust_nightly` [INFO] [stdout] --> src/json/escape.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 65 | #[cfg(not(rust_nightly))] [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(rust_nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(rust_nightly)");` 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: `rust_nightly` [INFO] [stdout] --> src/json/escape.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | #[cfg(rust_nightly)] [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(rust_nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(rust_nightly)");` 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 import: `std::env` [INFO] [stdout] --> src/modules/console.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::modules::module::export_default` [INFO] [stdout] --> src/modules/console.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::modules::module::export_default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/modules/console.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Class`, `Constructor`, `Object`, `Opt`, and `atom::PredefinedAtom` [INFO] [stdout] --> src/modules/console.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | atom::PredefinedAtom, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | function::{Constructor, Opt}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^ [INFO] [stdout] 8 | Class, Object, Value, [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncContext`, `Declarations`, `Exports`, `ModuleDef`, and `prelude::Func` [INFO] [stdout] --> src/modules/console.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | module::{Declarations, Exports, ModuleDef}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 12 | prelude::Func, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 13 | AsyncContext, Ctx, Function, Result, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `iterable_enum` [INFO] [stdout] --> src/modules/macros.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | macro_rules! iterable_enum { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `impl_stream_events` [INFO] [stdout] --> src/modules/macros.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 18 | macro_rules! impl_stream_events { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/macros.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncReadExt` [INFO] [stdout] --> src/stream/readable.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | io::{AsyncRead, AsyncReadExt}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncWriteExt` [INFO] [stdout] --> src/stream/writable.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | io::{AsyncWrite, AsyncWriteExt}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback` [INFO] [stdout] --> src/modules/crypto/mod.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let callback: Function = args_iter [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/modules/crypto/mod.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let size = args_iter [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/modules/crypto/mod.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let offset = args_iter [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/modules/crypto/mod.rs:81:36 [INFO] [stdout] | [INFO] [stdout] 81 | fn random_fill<'js>(ctx: Ctx<'js>, obj: Object<'js>, args: Rest>) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timeout_error` [INFO] [stdout] --> src/modules/events.rs:627:13 [INFO] [stdout] | [INFO] [stdout] 627 | let timeout_error = get_reason_or_dom_exception(&ctx, None, "TimeoutError")?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timeout_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `milliseconds` [INFO] [stdout] --> src/modules/events.rs:626:35 [INFO] [stdout] | [INFO] [stdout] 626 | pub fn timeout(ctx: Ctx<'js>, milliseconds: u64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_milliseconds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/modules/timers.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | ctx: &Ctx<'js>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx2` [INFO] [stdout] --> src/stream/readable.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | let ctx2 = ctx.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ctx2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/stream/readable.rs:237:9 [INFO] [stdout] | [INFO] [stdout] 237 | this: Class<'js, Self>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `readable` [INFO] [stdout] --> src/stream/readable.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | readable: T, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_readable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `on_end` [INFO] [stdout] --> src/stream/readable.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | on_end: C, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_on_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/stream/writable.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | this: This>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/stream/writable.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | ctx: Ctx<'js>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/stream/writable.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | value: Value<'js>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cb` [INFO] [stdout] --> src/stream/writable.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | cb: Opt>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flush` [INFO] [stdout] --> src/stream/writable.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | flush: bool, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_flush` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_ended` [INFO] [stdout] --> src/stream/writable.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | let is_ended = inner.is_finished; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_ended` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_destroyed` [INFO] [stdout] --> src/stream/writable.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | let is_destroyed = inner.is_destroyed; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_destroyed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `emit_close` [INFO] [stdout] --> src/stream/writable.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | let emit_close = inner.emit_close; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_emit_close` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_rx` [INFO] [stdout] --> src/stream/writable.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | let command_rx = inner [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_rx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `destroy_rx` [INFO] [stdout] --> src/stream/writable.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let destroy_rx = inner.destroy_tx.subscribe(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_destroy_rx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/stream/writable.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | ctx: &Ctx<'js>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writable` [INFO] [stdout] --> src/stream/writable.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | writable: T, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_writable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `future` [INFO] [stdout] --> src/vm.rs:722:32 [INFO] [stdout] | [INFO] [stdout] 722 | fn spawn_exit(&self, future: F) -> Result> [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `notify` and `write_semaphore` are never read [INFO] [stdout] --> src/bytearray_buffer.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct BytearrayBuffer { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | notify: Arc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | closed: Arc, [INFO] [stdout] 21 | write_semaphore: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BytearrayBuffer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `len`, `write`, `close`, `clear`, and `read` are never used [INFO] [stdout] --> src/bytearray_buffer.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl BytearrayBuffer { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 25 | pub fn new(capacity: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub async fn write(&self, item: &mut [u8]) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub async fn close(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub async fn clear(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn read(&self, desired_size: Option) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TIMER_ID` is never used [INFO] [stdout] --> src/modules/timers.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | static TIMER_ID: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TIME_POLL_ACTIVE` is never used [INFO] [stdout] --> src/modules/timers.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | static TIME_POLL_ACTIVE: AtomicBool = AtomicBool::new(false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Timeout` is never constructed [INFO] [stdout] --> src/modules/timers.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct Timeout<'js> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Timeout` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_immediate` is never used [INFO] [stdout] --> src/modules/timers.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn set_immediate(cb: Function) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_current_time_millis` is never used [INFO] [stdout] --> src/modules/timers.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn get_current_time_millis() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_timeout_interval` is never used [INFO] [stdout] --> src/modules/timers.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn set_timeout_interval<'js>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clear_timeout_interval` is never used [INFO] [stdout] --> src/modules/timers.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn clear_timeout_interval(timeouts: &Arc>>, id: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_destroyed_and_error` is never used [INFO] [stdout] --> src/stream/mod.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn set_destroyed_and_error<'js>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_BUFFER_SIZE` is never used [INFO] [stdout] --> src/stream/mod.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const DEFAULT_BUFFER_SIZE: usize = 1024 * 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `emit_close` is never used [INFO] [stdout] --> src/stream/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait SteamEvents<'js> [INFO] [stdout] | ----------- associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 30 | fn emit_close(this: Class<'js, Self>, ctx: &Ctx<'js>, had_error: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Init` is never constructed [INFO] [stdout] --> src/stream/readable.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum ReadableState { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 33 | Init, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReadableState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/stream/readable.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl<'js> ReadableStreamInner<'js> { [INFO] [stdout] | ---------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn new(emitter: EventEmitter<'js>, emit_close: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `with_emitter` and `new` are never used [INFO] [stdout] --> src/stream/readable.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 114 | impl<'js> DefaultReadableStream<'js> { [INFO] [stdout] | ------------------------------------ associated functions in this implementation [INFO] [stdout] 115 | fn with_emitter(ctx: Ctx<'js>, emitter: EventEmitter<'js>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn new(ctx: Ctx<'js>) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ReadableStream` is never used [INFO] [stdout] --> src/stream/readable.rs:148:11 [INFO] [stdout] | [INFO] [stdout] 148 | pub trait ReadableStream<'js> [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `command_rx`, `is_finished`, `emit_close`, `is_destroyed`, and `destroy_tx` are never read [INFO] [stdout] --> src/stream/writable.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct WritableStreamInner<'js> { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | command_rx: Option>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | is_finished: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | emit_close: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 36 | is_destroyed: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 37 | destroy_tx: Sender>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/stream/writable.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl<'js> WritableStreamInner<'js> { [INFO] [stdout] | ---------------------------------- associated function in this implementation [INFO] [stdout] 41 | pub fn new(emitter: EventEmitter<'js>, emit_close: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `with_emitter` and `new` are never used [INFO] [stdout] --> src/stream/writable.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 85 | impl<'js> DefaultWritableStream<'js> { [INFO] [stdout] | ------------------------------------ associated functions in this implementation [INFO] [stdout] 86 | fn with_emitter(ctx: Ctx<'js>, emitter: EventEmitter<'js>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn new(ctx: Ctx<'js>) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/stream/writable.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub trait WritableStream<'js> [INFO] [stdout] | -------------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 114 | fn inner_mut(&mut self) -> &mut WritableStreamInner<'js>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn add_writable_stream_prototype(ctx: &Ctx<'js>) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn destroy( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn end(this: This>) -> Class<'js, Self> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | fn write_flushed( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn write( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | fn do_write( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | fn process( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print` is never used [INFO] [stdout] --> src/vm.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn print(value: String, stdout: Opt) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LifetimeArgs` is never constructed [INFO] [stdout] --> src/vm.rs:317:8 [INFO] [stdout] | [INFO] [stdout] 317 | struct LifetimeArgs<'js>(Ctx<'js>); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `json_parse_string` is never used [INFO] [stdout] --> src/vm.rs:478:4 [INFO] [stdout] | [INFO] [stdout] 478 | fn json_parse_string<'js>(ctx: Ctx<'js>, value: Value<'js>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_gc` is never used [INFO] [stdout] --> src/vm.rs:483:4 [INFO] [stdout] | [INFO] [stdout] 483 | fn run_gc(ctx: Ctx<'_>) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init` is never used [INFO] [stdout] --> src/vm.rs:493:4 [INFO] [stdout] | [INFO] [stdout] 493 | fn init(ctx: &Ctx<'_>, module_names: HashSet<&'static str>) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load` is never used [INFO] [stdout] --> src/vm.rs:640:4 [INFO] [stdout] | [INFO] [stdout] 640 | fn load<'js>(ctx: Ctx<'js>, filename: String, options: Opt>) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_script_or_module_name` is never used [INFO] [stdout] --> src/vm.rs:670:4 [INFO] [stdout] | [INFO] [stdout] 670 | fn get_script_or_module_name(ctx: Ctx<'_>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_import_meta` is never used [INFO] [stdout] --> src/vm.rs:686:4 [INFO] [stdout] | [INFO] [stdout] 686 | fn set_import_meta(module: &Module<'_>, filepath: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/modules/uuid.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | fn parse(ctx: Ctx<'_>, value: String) -> Result> { [INFO] [stdout] | ^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'_` [INFO] [stdout] | [INFO] [stdout] 63 | fn parse(ctx: Ctx<'_>, value: String) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 53.87s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rquickjs-core v0.6.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "9faf868aa386f2de59374b02f62fac7df0535850194fafdea23f570a7532a5ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9faf868aa386f2de59374b02f62fac7df0535850194fafdea23f570a7532a5ac", kill_on_drop: false }` [INFO] [stdout] 9faf868aa386f2de59374b02f62fac7df0535850194fafdea23f570a7532a5ac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 435ebcd65fe2c9abe8d81d4df1c4642e1377875899526ab393b8063258e58fe3 [INFO] running `Command { std: "docker" "start" "-a" "435ebcd65fe2c9abe8d81d4df1c4642e1377875899526ab393b8063258e58fe3", kill_on_drop: false }` [INFO] [stdout] warning: unexpected `cfg` condition name: `rust_nightly` [INFO] [stdout] --> src/lib.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | #![cfg_attr(rust_nightly, feature(portable_simd))] [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(rust_nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(rust_nightly)");` 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: `rust_nightly` [INFO] [stdout] --> src/json/escape.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(rust_nightly)] //FIXME remove when std::simd is stable [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(rust_nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(rust_nightly)");` 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: `rust_nightly` [INFO] [stdout] --> src/json/escape.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 65 | #[cfg(not(rust_nightly))] [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(rust_nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(rust_nightly)");` 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: `rust_nightly` [INFO] [stdout] --> src/json/escape.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | #[cfg(rust_nightly)] [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(rust_nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(rust_nightly)");` 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 import: `std::env` [INFO] [stdout] --> src/modules/console.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::modules::module::export_default` [INFO] [stdout] --> src/modules/console.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::modules::module::export_default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/modules/console.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Class`, `Constructor`, `Object`, `Opt`, and `atom::PredefinedAtom` [INFO] [stdout] --> src/modules/console.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | atom::PredefinedAtom, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | function::{Constructor, Opt}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^ [INFO] [stdout] 8 | Class, Object, Value, [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncContext`, `Declarations`, `Exports`, `ModuleDef`, and `prelude::Func` [INFO] [stdout] --> src/modules/console.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | module::{Declarations, Exports, ModuleDef}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 12 | prelude::Func, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 13 | AsyncContext, Ctx, Function, Result, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `iterable_enum` [INFO] [stdout] --> src/modules/macros.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | macro_rules! iterable_enum { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `impl_stream_events` [INFO] [stdout] --> src/modules/macros.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 18 | macro_rules! impl_stream_events { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/macros.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncReadExt` [INFO] [stdout] --> src/stream/readable.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | io::{AsyncRead, AsyncReadExt}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncWriteExt` [INFO] [stdout] --> src/stream/writable.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | io::{AsyncWrite, AsyncWriteExt}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback` [INFO] [stdout] --> src/modules/crypto/mod.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let callback: Function = args_iter [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/modules/crypto/mod.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let size = args_iter [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/modules/crypto/mod.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let offset = args_iter [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/modules/crypto/mod.rs:81:36 [INFO] [stdout] | [INFO] [stdout] 81 | fn random_fill<'js>(ctx: Ctx<'js>, obj: Object<'js>, args: Rest>) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timeout_error` [INFO] [stdout] --> src/modules/events.rs:627:13 [INFO] [stdout] | [INFO] [stdout] 627 | let timeout_error = get_reason_or_dom_exception(&ctx, None, "TimeoutError")?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timeout_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `milliseconds` [INFO] [stdout] --> src/modules/events.rs:626:35 [INFO] [stdout] | [INFO] [stdout] 626 | pub fn timeout(ctx: Ctx<'js>, milliseconds: u64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_milliseconds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/modules/timers.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | ctx: &Ctx<'js>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx2` [INFO] [stdout] --> src/stream/readable.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | let ctx2 = ctx.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ctx2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/stream/readable.rs:237:9 [INFO] [stdout] | [INFO] [stdout] 237 | this: Class<'js, Self>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `readable` [INFO] [stdout] --> src/stream/readable.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | readable: T, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_readable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `on_end` [INFO] [stdout] --> src/stream/readable.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | on_end: C, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_on_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/stream/writable.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | this: This>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/stream/writable.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | ctx: Ctx<'js>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/stream/writable.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | value: Value<'js>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cb` [INFO] [stdout] --> src/stream/writable.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | cb: Opt>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flush` [INFO] [stdout] --> src/stream/writable.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | flush: bool, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_flush` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_ended` [INFO] [stdout] --> src/stream/writable.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | let is_ended = inner.is_finished; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_ended` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_destroyed` [INFO] [stdout] --> src/stream/writable.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | let is_destroyed = inner.is_destroyed; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_destroyed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `emit_close` [INFO] [stdout] --> src/stream/writable.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | let emit_close = inner.emit_close; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_emit_close` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_rx` [INFO] [stdout] --> src/stream/writable.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | let command_rx = inner [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_rx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `destroy_rx` [INFO] [stdout] --> src/stream/writable.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let destroy_rx = inner.destroy_tx.subscribe(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_destroy_rx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/stream/writable.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | ctx: &Ctx<'js>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writable` [INFO] [stdout] --> src/stream/writable.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | writable: T, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_writable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `future` [INFO] [stdout] --> src/vm.rs:722:32 [INFO] [stdout] | [INFO] [stdout] 722 | fn spawn_exit(&self, future: F) -> Result> [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `notify` and `write_semaphore` are never read [INFO] [stdout] --> src/bytearray_buffer.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct BytearrayBuffer { [INFO] [stdout] | --------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | notify: Arc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 20 | closed: Arc, [INFO] [stdout] 21 | write_semaphore: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BytearrayBuffer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `len`, `write`, `close`, `clear`, and `read` are never used [INFO] [stdout] --> src/bytearray_buffer.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl BytearrayBuffer { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] 25 | pub fn new(capacity: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | pub async fn write(&self, item: &mut [u8]) -> usize { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub async fn close(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | pub async fn clear(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn read(&self, desired_size: Option) -> Option> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TIMER_ID` is never used [INFO] [stdout] --> src/modules/timers.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | static TIMER_ID: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TIME_POLL_ACTIVE` is never used [INFO] [stdout] --> src/modules/timers.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | static TIME_POLL_ACTIVE: AtomicBool = AtomicBool::new(false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Timeout` is never constructed [INFO] [stdout] --> src/modules/timers.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct Timeout<'js> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Timeout` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_immediate` is never used [INFO] [stdout] --> src/modules/timers.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn set_immediate(cb: Function) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_current_time_millis` is never used [INFO] [stdout] --> src/modules/timers.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn get_current_time_millis() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_timeout_interval` is never used [INFO] [stdout] --> src/modules/timers.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn set_timeout_interval<'js>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clear_timeout_interval` is never used [INFO] [stdout] --> src/modules/timers.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn clear_timeout_interval(timeouts: &Arc>>, id: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_destroyed_and_error` is never used [INFO] [stdout] --> src/stream/mod.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn set_destroyed_and_error<'js>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_BUFFER_SIZE` is never used [INFO] [stdout] --> src/stream/mod.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const DEFAULT_BUFFER_SIZE: usize = 1024 * 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `emit_close` is never used [INFO] [stdout] --> src/stream/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait SteamEvents<'js> [INFO] [stdout] | ----------- associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 30 | fn emit_close(this: Class<'js, Self>, ctx: &Ctx<'js>, had_error: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Init` is never constructed [INFO] [stdout] --> src/stream/readable.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum ReadableState { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 33 | Init, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReadableState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/stream/readable.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl<'js> ReadableStreamInner<'js> { [INFO] [stdout] | ---------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn new(emitter: EventEmitter<'js>, emit_close: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rqjs-ext v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated functions `with_emitter` and `new` are never used [INFO] [stdout] --> src/stream/readable.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 114 | impl<'js> DefaultReadableStream<'js> { [INFO] [stdout] | ------------------------------------ associated functions in this implementation [INFO] [stdout] 115 | fn with_emitter(ctx: Ctx<'js>, emitter: EventEmitter<'js>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn new(ctx: Ctx<'js>) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ReadableStream` is never used [INFO] [stdout] --> src/stream/readable.rs:148:11 [INFO] [stdout] | [INFO] [stdout] 148 | pub trait ReadableStream<'js> [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `command_rx`, `is_finished`, `emit_close`, `is_destroyed`, and `destroy_tx` are never read [INFO] [stdout] --> src/stream/writable.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct WritableStreamInner<'js> { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | command_rx: Option>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | is_finished: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | emit_close: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 36 | is_destroyed: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 37 | destroy_tx: Sender>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/stream/writable.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl<'js> WritableStreamInner<'js> { [INFO] [stdout] | ---------------------------------- associated function in this implementation [INFO] [stdout] 41 | pub fn new(emitter: EventEmitter<'js>, emit_close: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `with_emitter` and `new` are never used [INFO] [stdout] --> src/stream/writable.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 85 | impl<'js> DefaultWritableStream<'js> { [INFO] [stdout] | ------------------------------------ associated functions in this implementation [INFO] [stdout] 86 | fn with_emitter(ctx: Ctx<'js>, emitter: EventEmitter<'js>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn new(ctx: Ctx<'js>) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/stream/writable.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub trait WritableStream<'js> [INFO] [stdout] | -------------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 114 | fn inner_mut(&mut self) -> &mut WritableStreamInner<'js>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn add_writable_stream_prototype(ctx: &Ctx<'js>) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn destroy( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn end(this: This>) -> Class<'js, Self> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | fn write_flushed( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn write( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | fn do_write( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | fn process( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print` is never used [INFO] [stdout] --> src/vm.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn print(value: String, stdout: Opt) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LifetimeArgs` is never constructed [INFO] [stdout] --> src/vm.rs:317:8 [INFO] [stdout] | [INFO] [stdout] 317 | struct LifetimeArgs<'js>(Ctx<'js>); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `json_parse_string` is never used [INFO] [stdout] --> src/vm.rs:478:4 [INFO] [stdout] | [INFO] [stdout] 478 | fn json_parse_string<'js>(ctx: Ctx<'js>, value: Value<'js>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_gc` is never used [INFO] [stdout] --> src/vm.rs:483:4 [INFO] [stdout] | [INFO] [stdout] 483 | fn run_gc(ctx: Ctx<'_>) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init` is never used [INFO] [stdout] --> src/vm.rs:493:4 [INFO] [stdout] | [INFO] [stdout] 493 | fn init(ctx: &Ctx<'_>, module_names: HashSet<&'static str>) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load` is never used [INFO] [stdout] --> src/vm.rs:640:4 [INFO] [stdout] | [INFO] [stdout] 640 | fn load<'js>(ctx: Ctx<'js>, filename: String, options: Opt>) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_script_or_module_name` is never used [INFO] [stdout] --> src/vm.rs:670:4 [INFO] [stdout] | [INFO] [stdout] 670 | fn get_script_or_module_name(ctx: Ctx<'_>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_import_meta` is never used [INFO] [stdout] --> src/vm.rs:686:4 [INFO] [stdout] | [INFO] [stdout] 686 | fn set_import_meta(module: &Module<'_>, filepath: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/modules/uuid.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | fn parse(ctx: Ctx<'_>, value: String) -> Result> { [INFO] [stdout] | ^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'_` [INFO] [stdout] | [INFO] [stdout] 63 | fn parse(ctx: Ctx<'_>, value: String) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `rust_nightly` [INFO] [stdout] --> src/lib.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | #![cfg_attr(rust_nightly, feature(portable_simd))] [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(rust_nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(rust_nightly)");` 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: `rust_nightly` [INFO] [stdout] --> src/json/escape.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | #[cfg(rust_nightly)] //FIXME remove when std::simd is stable [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(rust_nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(rust_nightly)");` 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: `rust_nightly` [INFO] [stdout] --> src/json/escape.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 65 | #[cfg(not(rust_nightly))] [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(rust_nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(rust_nightly)");` 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: `rust_nightly` [INFO] [stdout] --> src/json/escape.rs:70:7 [INFO] [stdout] | [INFO] [stdout] 70 | #[cfg(rust_nightly)] [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(rust_nightly)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(rust_nightly)");` 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 import: `std::env` [INFO] [stdout] --> src/modules/console.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::modules::module::export_default` [INFO] [stdout] --> src/modules/console.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::modules::module::export_default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/modules/console.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Class`, `Constructor`, `Object`, `Opt`, and `atom::PredefinedAtom` [INFO] [stdout] --> src/modules/console.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | atom::PredefinedAtom, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | function::{Constructor, Opt}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^ [INFO] [stdout] 8 | Class, Object, Value, [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AsyncContext`, `Declarations`, `Exports`, `ModuleDef`, and `prelude::Func` [INFO] [stdout] --> src/modules/console.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | module::{Declarations, Exports, ModuleDef}, [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] 12 | prelude::Func, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 13 | AsyncContext, Ctx, Function, Result, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `iterable_enum` [INFO] [stdout] --> src/modules/macros.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | macro_rules! iterable_enum { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `impl_stream_events` [INFO] [stdout] --> src/modules/macros.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 18 | macro_rules! impl_stream_events { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stdout] --> src/macros.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncWriteExt` [INFO] [stdout] --> src/stream/writable.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 12 | io::{AsyncWrite, AsyncWriteExt}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsyncReadExt` [INFO] [stdout] --> src/stream/readable.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | io::{AsyncRead, AsyncReadExt}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `callback` [INFO] [stdout] --> src/modules/crypto/mod.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | let callback: Function = args_iter [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `size` [INFO] [stdout] --> src/modules/crypto/mod.rs:89:9 [INFO] [stdout] | [INFO] [stdout] 89 | let size = args_iter [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `offset` [INFO] [stdout] --> src/modules/crypto/mod.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let offset = args_iter [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/modules/crypto/mod.rs:81:36 [INFO] [stdout] | [INFO] [stdout] 81 | fn random_fill<'js>(ctx: Ctx<'js>, obj: Object<'js>, args: Rest>) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timeout_error` [INFO] [stdout] --> src/modules/events.rs:627:13 [INFO] [stdout] | [INFO] [stdout] 627 | let timeout_error = get_reason_or_dom_exception(&ctx, None, "TimeoutError")?; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timeout_error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `milliseconds` [INFO] [stdout] --> src/modules/events.rs:626:35 [INFO] [stdout] | [INFO] [stdout] 626 | pub fn timeout(ctx: Ctx<'js>, milliseconds: u64) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_milliseconds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/modules/timers.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | ctx: &Ctx<'js>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx2` [INFO] [stdout] --> src/stream/readable.rs:242:13 [INFO] [stdout] | [INFO] [stdout] 242 | let ctx2 = ctx.clone(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ctx2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/stream/readable.rs:237:9 [INFO] [stdout] | [INFO] [stdout] 237 | this: Class<'js, Self>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `readable` [INFO] [stdout] --> src/stream/readable.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | readable: T, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_readable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `on_end` [INFO] [stdout] --> src/stream/readable.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | on_end: C, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_on_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `this` [INFO] [stdout] --> src/stream/writable.rs:190:9 [INFO] [stdout] | [INFO] [stdout] 190 | this: This>, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/stream/writable.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | ctx: Ctx<'js>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/stream/writable.rs:192:9 [INFO] [stdout] | [INFO] [stdout] 192 | value: Value<'js>, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cb` [INFO] [stdout] --> src/stream/writable.rs:193:9 [INFO] [stdout] | [INFO] [stdout] 193 | cb: Opt>, [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flush` [INFO] [stdout] --> src/stream/writable.rs:194:9 [INFO] [stdout] | [INFO] [stdout] 194 | flush: bool, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_flush` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_ended` [INFO] [stdout] --> src/stream/writable.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | let is_ended = inner.is_finished; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_ended` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_destroyed` [INFO] [stdout] --> src/stream/writable.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | let is_destroyed = inner.is_destroyed; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_destroyed` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `emit_close` [INFO] [stdout] --> src/stream/writable.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | let emit_close = inner.emit_close; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_emit_close` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `command_rx` [INFO] [stdout] --> src/stream/writable.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | let command_rx = inner [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_rx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `destroy_rx` [INFO] [stdout] --> src/stream/writable.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let destroy_rx = inner.destroy_tx.subscribe(); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_destroy_rx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/stream/writable.rs:221:9 [INFO] [stdout] | [INFO] [stdout] 221 | ctx: &Ctx<'js>, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `writable` [INFO] [stdout] --> src/stream/writable.rs:222:9 [INFO] [stdout] | [INFO] [stdout] 222 | writable: T, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_writable` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `future` [INFO] [stdout] --> src/vm.rs:722:32 [INFO] [stdout] | [INFO] [stdout] 722 | fn spawn_exit(&self, future: F) -> Result> [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `len` is never used [INFO] [stdout] --> src/bytearray_buffer.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl BytearrayBuffer { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TIMER_ID` is never used [INFO] [stdout] --> src/modules/timers.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | static TIMER_ID: AtomicUsize = AtomicUsize::new(0); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `TIME_POLL_ACTIVE` is never used [INFO] [stdout] --> src/modules/timers.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | static TIME_POLL_ACTIVE: AtomicBool = AtomicBool::new(false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Timeout` is never constructed [INFO] [stdout] --> src/modules/timers.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct Timeout<'js> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Timeout` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_immediate` is never used [INFO] [stdout] --> src/modules/timers.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn set_immediate(cb: Function) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_current_time_millis` is never used [INFO] [stdout] --> src/modules/timers.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn get_current_time_millis() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_timeout_interval` is never used [INFO] [stdout] --> src/modules/timers.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn set_timeout_interval<'js>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clear_timeout_interval` is never used [INFO] [stdout] --> src/modules/timers.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn clear_timeout_interval(timeouts: &Arc>>, id: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_destroyed_and_error` is never used [INFO] [stdout] --> src/stream/mod.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn set_destroyed_and_error<'js>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_BUFFER_SIZE` is never used [INFO] [stdout] --> src/stream/mod.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const DEFAULT_BUFFER_SIZE: usize = 1024 * 16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `emit_close` is never used [INFO] [stdout] --> src/stream/mod.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 26 | pub trait SteamEvents<'js> [INFO] [stdout] | ----------- associated function in this trait [INFO] [stdout] ... [INFO] [stdout] 30 | fn emit_close(this: Class<'js, Self>, ctx: &Ctx<'js>, had_error: bool) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Init` is never constructed [INFO] [stdout] --> src/stream/readable.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum ReadableState { [INFO] [stdout] | ------------- variant in this enum [INFO] [stdout] 33 | Init, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ReadableState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/stream/readable.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl<'js> ReadableStreamInner<'js> { [INFO] [stdout] | ---------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn new(emitter: EventEmitter<'js>, emit_close: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `with_emitter` and `new` are never used [INFO] [stdout] --> src/stream/readable.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 114 | impl<'js> DefaultReadableStream<'js> { [INFO] [stdout] | ------------------------------------ associated functions in this implementation [INFO] [stdout] 115 | fn with_emitter(ctx: Ctx<'js>, emitter: EventEmitter<'js>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn new(ctx: Ctx<'js>) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ReadableStream` is never used [INFO] [stdout] --> src/stream/readable.rs:148:11 [INFO] [stdout] | [INFO] [stdout] 148 | pub trait ReadableStream<'js> [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `command_rx`, `is_finished`, `emit_close`, `is_destroyed`, and `destroy_tx` are never read [INFO] [stdout] --> src/stream/writable.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct WritableStreamInner<'js> { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 31 | command_rx: Option>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 32 | is_finished: bool, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | emit_close: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 36 | is_destroyed: bool, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 37 | destroy_tx: Sender>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/stream/writable.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl<'js> WritableStreamInner<'js> { [INFO] [stdout] | ---------------------------------- associated function in this implementation [INFO] [stdout] 41 | pub fn new(emitter: EventEmitter<'js>, emit_close: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `with_emitter` and `new` are never used [INFO] [stdout] --> src/stream/writable.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 85 | impl<'js> DefaultWritableStream<'js> { [INFO] [stdout] | ------------------------------------ associated functions in this implementation [INFO] [stdout] 86 | fn with_emitter(ctx: Ctx<'js>, emitter: EventEmitter<'js>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn new(ctx: Ctx<'js>) -> Result> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/stream/writable.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub trait WritableStream<'js> [INFO] [stdout] | -------------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 114 | fn inner_mut(&mut self) -> &mut WritableStreamInner<'js>; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | fn add_writable_stream_prototype(ctx: &Ctx<'js>) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn destroy( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | fn end(this: This>) -> Class<'js, Self> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 171 | fn write_flushed( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 180 | fn write( [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 189 | fn do_write( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | fn process( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print` is never used [INFO] [stdout] --> src/vm.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn print(value: String, stdout: Opt) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LifetimeArgs` is never constructed [INFO] [stdout] --> src/vm.rs:317:8 [INFO] [stdout] | [INFO] [stdout] 317 | struct LifetimeArgs<'js>(Ctx<'js>); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `json_parse_string` is never used [INFO] [stdout] --> src/vm.rs:478:4 [INFO] [stdout] | [INFO] [stdout] 478 | fn json_parse_string<'js>(ctx: Ctx<'js>, value: Value<'js>) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_gc` is never used [INFO] [stdout] --> src/vm.rs:483:4 [INFO] [stdout] | [INFO] [stdout] 483 | fn run_gc(ctx: Ctx<'_>) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init` is never used [INFO] [stdout] --> src/vm.rs:493:4 [INFO] [stdout] | [INFO] [stdout] 493 | fn init(ctx: &Ctx<'_>, module_names: HashSet<&'static str>) -> Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load` is never used [INFO] [stdout] --> src/vm.rs:640:4 [INFO] [stdout] | [INFO] [stdout] 640 | fn load<'js>(ctx: Ctx<'js>, filename: String, options: Opt>) -> Result> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_script_or_module_name` is never used [INFO] [stdout] --> src/vm.rs:670:4 [INFO] [stdout] | [INFO] [stdout] 670 | fn get_script_or_module_name(ctx: Ctx<'_>) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_import_meta` is never used [INFO] [stdout] --> src/vm.rs:686:4 [INFO] [stdout] | [INFO] [stdout] 686 | fn set_import_meta(module: &Module<'_>, filepath: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/modules/uuid.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | fn parse(ctx: Ctx<'_>, value: String) -> Result> { [INFO] [stdout] | ^^ -------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to consistently use `'_` [INFO] [stdout] | [INFO] [stdout] 63 | fn parse(ctx: Ctx<'_>, value: String) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.60s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rquickjs-core v0.6.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "435ebcd65fe2c9abe8d81d4df1c4642e1377875899526ab393b8063258e58fe3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "435ebcd65fe2c9abe8d81d4df1c4642e1377875899526ab393b8063258e58fe3", kill_on_drop: false }` [INFO] [stdout] 435ebcd65fe2c9abe8d81d4df1c4642e1377875899526ab393b8063258e58fe3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 3b9f2331fde1e9654e1900097cf9d622155316c5e2ad27eff1f64e812fbcbeaa [INFO] running `Command { std: "docker" "start" "-a" "3b9f2331fde1e9654e1900097cf9d622155316c5e2ad27eff1f64e812fbcbeaa", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition name: `rust_nightly` [INFO] [stderr] --> src/lib.rs:3:13 [INFO] [stderr] | [INFO] [stderr] 3 | #![cfg_attr(rust_nightly, feature(portable_simd))] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(rust_nightly)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(rust_nightly)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `rust_nightly` [INFO] [stderr] --> src/json/escape.rs:3:7 [INFO] [stderr] | [INFO] [stderr] 3 | #[cfg(rust_nightly)] //FIXME remove when std::simd is stable [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(rust_nightly)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(rust_nightly)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `rust_nightly` [INFO] [stderr] --> src/json/escape.rs:65:11 [INFO] [stderr] | [INFO] [stderr] 65 | #[cfg(not(rust_nightly))] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(rust_nightly)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(rust_nightly)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition name: `rust_nightly` [INFO] [stderr] --> src/json/escape.rs:70:7 [INFO] [stderr] | [INFO] [stderr] 70 | #[cfg(rust_nightly)] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(rust_nightly)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(rust_nightly)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::env` [INFO] [stderr] --> src/modules/console.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::env; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::modules::module::export_default` [INFO] [stderr] --> src/modules/console.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::modules::module::export_default; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `once_cell::sync::Lazy` [INFO] [stderr] --> src/modules/console.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use once_cell::sync::Lazy; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Class`, `Constructor`, `Object`, `Opt`, and `atom::PredefinedAtom` [INFO] [stderr] --> src/modules/console.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | atom::PredefinedAtom, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 7 | function::{Constructor, Opt}, [INFO] [stderr] | ^^^^^^^^^^^ ^^^ [INFO] [stderr] 8 | Class, Object, Value, [INFO] [stderr] | ^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AsyncContext`, `Declarations`, `Exports`, `ModuleDef`, and `prelude::Func` [INFO] [stderr] --> src/modules/console.rs:11:14 [INFO] [stderr] | [INFO] [stderr] 11 | module::{Declarations, Exports, ModuleDef}, [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^ [INFO] [stderr] 12 | prelude::Func, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 13 | AsyncContext, Ctx, Function, Result, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused macro definition: `iterable_enum` [INFO] [stderr] --> src/modules/macros.rs:3:14 [INFO] [stderr] | [INFO] [stderr] 3 | macro_rules! iterable_enum { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_macros)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused macro definition: `impl_stream_events` [INFO] [stderr] --> src/modules/macros.rs:18:14 [INFO] [stderr] | [INFO] [stderr] 18 | macro_rules! impl_stream_events { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `#[macro_use]` only has an effect on `extern crate` and modules [INFO] [stderr] --> src/macros.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_attributes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `AsyncReadExt` [INFO] [stderr] --> src/stream/readable.rs:12:21 [INFO] [stderr] | [INFO] [stderr] 12 | io::{AsyncRead, AsyncReadExt}, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `AsyncWriteExt` [INFO] [stderr] --> src/stream/writable.rs:12:22 [INFO] [stderr] | [INFO] [stderr] 12 | io::{AsyncWrite, AsyncWriteExt}, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `callback` [INFO] [stderr] --> src/modules/crypto/mod.rs:85:9 [INFO] [stderr] | [INFO] [stderr] 85 | let callback: Function = args_iter [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_callback` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `size` [INFO] [stderr] --> src/modules/crypto/mod.rs:89:9 [INFO] [stderr] | [INFO] [stderr] 89 | let size = args_iter [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_size` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `offset` [INFO] [stderr] --> src/modules/crypto/mod.rs:93:9 [INFO] [stderr] | [INFO] [stderr] 93 | let offset = args_iter [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `obj` [INFO] [stderr] --> src/modules/crypto/mod.rs:81:36 [INFO] [stderr] | [INFO] [stderr] 81 | fn random_fill<'js>(ctx: Ctx<'js>, obj: Object<'js>, args: Rest>) -> Result<()> { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `timeout_error` [INFO] [stderr] --> src/modules/events.rs:627:13 [INFO] [stderr] | [INFO] [stderr] 627 | let timeout_error = get_reason_or_dom_exception(&ctx, None, "TimeoutError")?; [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_timeout_error` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `milliseconds` [INFO] [stderr] --> src/modules/events.rs:626:35 [INFO] [stderr] | [INFO] [stderr] 626 | pub fn timeout(ctx: Ctx<'js>, milliseconds: u64) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_milliseconds` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/modules/timers.rs:45:5 [INFO] [stderr] | [INFO] [stderr] 45 | ctx: &Ctx<'js>, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx2` [INFO] [stderr] --> src/stream/readable.rs:242:13 [INFO] [stderr] | [INFO] [stderr] 242 | let ctx2 = ctx.clone(); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_ctx2` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `this` [INFO] [stderr] --> src/stream/readable.rs:237:9 [INFO] [stderr] | [INFO] [stderr] 237 | this: Class<'js, Self>, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `readable` [INFO] [stderr] --> src/stream/readable.rs:239:9 [INFO] [stderr] | [INFO] [stderr] 239 | readable: T, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_readable` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `on_end` [INFO] [stderr] --> src/stream/readable.rs:240:9 [INFO] [stderr] | [INFO] [stderr] 240 | on_end: C, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_on_end` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `this` [INFO] [stderr] --> src/stream/writable.rs:190:9 [INFO] [stderr] | [INFO] [stderr] 190 | this: This>, [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_this` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/stream/writable.rs:191:9 [INFO] [stderr] | [INFO] [stderr] 191 | ctx: Ctx<'js>, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `value` [INFO] [stderr] --> src/stream/writable.rs:192:9 [INFO] [stderr] | [INFO] [stderr] 192 | value: Value<'js>, [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cb` [INFO] [stderr] --> src/stream/writable.rs:193:9 [INFO] [stderr] | [INFO] [stderr] 193 | cb: Opt>, [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_cb` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `flush` [INFO] [stderr] --> src/stream/writable.rs:194:9 [INFO] [stderr] | [INFO] [stderr] 194 | flush: bool, [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_flush` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `is_ended` [INFO] [stderr] --> src/stream/writable.rs:226:13 [INFO] [stderr] | [INFO] [stderr] 226 | let is_ended = inner.is_finished; [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_ended` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `is_destroyed` [INFO] [stderr] --> src/stream/writable.rs:227:13 [INFO] [stderr] | [INFO] [stderr] 227 | let is_destroyed = inner.is_destroyed; [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_destroyed` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `emit_close` [INFO] [stderr] --> src/stream/writable.rs:228:13 [INFO] [stderr] | [INFO] [stderr] 228 | let emit_close = inner.emit_close; [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_emit_close` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `command_rx` [INFO] [stderr] --> src/stream/writable.rs:229:13 [INFO] [stderr] | [INFO] [stderr] 229 | let command_rx = inner [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_command_rx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `destroy_rx` [INFO] [stderr] --> src/stream/writable.rs:233:13 [INFO] [stderr] | [INFO] [stderr] 233 | let destroy_rx = inner.destroy_tx.subscribe(); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_destroy_rx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ctx` [INFO] [stderr] --> src/stream/writable.rs:221:9 [INFO] [stderr] | [INFO] [stderr] 221 | ctx: &Ctx<'js>, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `writable` [INFO] [stderr] --> src/stream/writable.rs:222:9 [INFO] [stderr] | [INFO] [stderr] 222 | writable: T, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_writable` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `future` [INFO] [stderr] --> src/vm.rs:722:32 [INFO] [stderr] | [INFO] [stderr] 722 | fn spawn_exit(&self, future: F) -> Result> [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_future` [INFO] [stderr] [INFO] [stderr] warning: fields `notify` and `write_semaphore` are never read [INFO] [stderr] --> src/bytearray_buffer.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 15 | pub struct BytearrayBuffer { [INFO] [stderr] | --------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 19 | notify: Arc, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 20 | closed: Arc, [INFO] [stderr] 21 | write_semaphore: Arc, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BytearrayBuffer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `len`, `write`, `close`, `clear`, and `read` are never used [INFO] [stderr] --> src/bytearray_buffer.rs:25:12 [INFO] [stderr] | [INFO] [stderr] 24 | impl BytearrayBuffer { [INFO] [stderr] | -------------------- associated items in this implementation [INFO] [stderr] 25 | pub fn new(capacity: usize) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | pub fn len(&self) -> usize { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 51 | pub async fn write(&self, item: &mut [u8]) -> usize { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 86 | pub async fn close(&self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 93 | pub async fn clear(&self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 103 | pub fn read(&self, desired_size: Option) -> Option> { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `TIMER_ID` is never used [INFO] [stderr] --> src/modules/timers.rs:20:8 [INFO] [stderr] | [INFO] [stderr] 20 | static TIMER_ID: AtomicUsize = AtomicUsize::new(0); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `TIME_POLL_ACTIVE` is never used [INFO] [stderr] --> src/modules/timers.rs:21:8 [INFO] [stderr] | [INFO] [stderr] 21 | static TIME_POLL_ACTIVE: AtomicBool = AtomicBool::new(false); [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Timeout` is never constructed [INFO] [stderr] --> src/modules/timers.rs:24:8 [INFO] [stderr] | [INFO] [stderr] 24 | struct Timeout<'js> { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Timeout` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `set_immediate` is never used [INFO] [stderr] --> src/modules/timers.rs:32:4 [INFO] [stderr] | [INFO] [stderr] 32 | fn set_immediate(cb: Function) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_current_time_millis` is never used [INFO] [stderr] --> src/modules/timers.rs:37:4 [INFO] [stderr] | [INFO] [stderr] 37 | fn get_current_time_millis() -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `set_timeout_interval` is never used [INFO] [stderr] --> src/modules/timers.rs:44:4 [INFO] [stderr] | [INFO] [stderr] 44 | fn set_timeout_interval<'js>( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `clear_timeout_interval` is never used [INFO] [stderr] --> src/modules/timers.rs:67:4 [INFO] [stderr] | [INFO] [stderr] 67 | fn clear_timeout_interval(timeouts: &Arc>>, id: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `set_destroyed_and_error` is never used [INFO] [stderr] --> src/stream/mod.rs:14:8 [INFO] [stderr] | [INFO] [stderr] 14 | pub fn set_destroyed_and_error<'js>( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `DEFAULT_BUFFER_SIZE` is never used [INFO] [stderr] --> src/stream/mod.rs:24:7 [INFO] [stderr] | [INFO] [stderr] 24 | const DEFAULT_BUFFER_SIZE: usize = 1024 * 16; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `emit_close` is never used [INFO] [stderr] --> src/stream/mod.rs:30:8 [INFO] [stderr] | [INFO] [stderr] 26 | pub trait SteamEvents<'js> [INFO] [stderr] | ----------- associated function in this trait [INFO] [stderr] ... [INFO] [stderr] 30 | fn emit_close(this: Class<'js, Self>, ctx: &Ctx<'js>, had_error: bool) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Init` is never constructed [INFO] [stderr] --> src/stream/readable.rs:33:5 [INFO] [stderr] | [INFO] [stderr] 32 | pub enum ReadableState { [INFO] [stderr] | ------------- variant in this enum [INFO] [stderr] 33 | Init, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ReadableState` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/stream/readable.rs:89:12 [INFO] [stderr] | [INFO] [stderr] 59 | impl<'js> ReadableStreamInner<'js> { [INFO] [stderr] | ---------------------------------- associated function in this implementation [INFO] [stderr] ... [INFO] [stderr] 89 | pub fn new(emitter: EventEmitter<'js>, emit_close: bool) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `with_emitter` and `new` are never used [INFO] [stderr] --> src/stream/readable.rs:115:8 [INFO] [stderr] | [INFO] [stderr] 114 | impl<'js> DefaultReadableStream<'js> { [INFO] [stderr] | ------------------------------------ associated functions in this implementation [INFO] [stderr] 115 | fn with_emitter(ctx: Ctx<'js>, emitter: EventEmitter<'js>) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 124 | pub fn new(ctx: Ctx<'js>) -> Result> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `ReadableStream` is never used [INFO] [stderr] --> src/stream/readable.rs:148:11 [INFO] [stderr] | [INFO] [stderr] 148 | pub trait ReadableStream<'js> [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `command_rx`, `is_finished`, `emit_close`, `is_destroyed`, and `destroy_tx` are never read [INFO] [stderr] --> src/stream/writable.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 28 | pub struct WritableStreamInner<'js> { [INFO] [stderr] | ------------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 31 | command_rx: Option>>, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 32 | is_finished: bool, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 35 | emit_close: bool, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 36 | is_destroyed: bool, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 37 | destroy_tx: Sender>>, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/stream/writable.rs:41:12 [INFO] [stderr] | [INFO] [stderr] 40 | impl<'js> WritableStreamInner<'js> { [INFO] [stderr] | ---------------------------------- associated function in this implementation [INFO] [stderr] 41 | pub fn new(emitter: EventEmitter<'js>, emit_close: bool) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `with_emitter` and `new` are never used [INFO] [stderr] --> src/stream/writable.rs:86:8 [INFO] [stderr] | [INFO] [stderr] 85 | impl<'js> DefaultWritableStream<'js> { [INFO] [stderr] | ------------------------------------ associated functions in this implementation [INFO] [stderr] 86 | fn with_emitter(ctx: Ctx<'js>, emitter: EventEmitter<'js>) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 95 | pub fn new(ctx: Ctx<'js>) -> Result> { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/stream/writable.rs:114:8 [INFO] [stderr] | [INFO] [stderr] 110 | pub trait WritableStream<'js> [INFO] [stderr] | -------------- associated items in this trait [INFO] [stderr] ... [INFO] [stderr] 114 | fn inner_mut(&mut self) -> &mut WritableStreamInner<'js>; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 118 | fn add_writable_stream_prototype(ctx: &Ctx<'js>) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 129 | fn destroy( [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 147 | fn end(this: This>) -> Class<'js, Self> { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 171 | fn write_flushed( [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 180 | fn write( [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 189 | fn do_write( [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 219 | fn process( [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `print` is never used [INFO] [stderr] --> src/vm.rs:59:4 [INFO] [stderr] | [INFO] [stderr] 59 | fn print(value: String, stdout: Opt) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `LifetimeArgs` is never constructed [INFO] [stderr] --> src/vm.rs:317:8 [INFO] [stderr] | [INFO] [stderr] 317 | struct LifetimeArgs<'js>(Ctx<'js>); [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `json_parse_string` is never used [INFO] [stderr] --> src/vm.rs:478:4 [INFO] [stderr] | [INFO] [stderr] 478 | fn json_parse_string<'js>(ctx: Ctx<'js>, value: Value<'js>) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `run_gc` is never used [INFO] [stderr] --> src/vm.rs:483:4 [INFO] [stderr] | [INFO] [stderr] 483 | fn run_gc(ctx: Ctx<'_>) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `init` is never used [INFO] [stderr] --> src/vm.rs:493:4 [INFO] [stderr] | [INFO] [stderr] 493 | fn init(ctx: &Ctx<'_>, module_names: HashSet<&'static str>) -> Result<()> { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `load` is never used [INFO] [stderr] --> src/vm.rs:640:4 [INFO] [stderr] | [INFO] [stderr] 640 | fn load<'js>(ctx: Ctx<'js>, filename: String, options: Opt>) -> Result> { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_script_or_module_name` is never used [INFO] [stderr] --> src/vm.rs:670:4 [INFO] [stderr] | [INFO] [stderr] 670 | fn get_script_or_module_name(ctx: Ctx<'_>) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `set_import_meta` is never used [INFO] [stderr] --> src/vm.rs:686:4 [INFO] [stderr] | [INFO] [stderr] 686 | fn set_import_meta(module: &Module<'_>, filepath: &str) -> Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/modules/uuid.rs:63:19 [INFO] [stderr] | [INFO] [stderr] 63 | fn parse(ctx: Ctx<'_>, value: String) -> Result> { [INFO] [stderr] | ^^ -------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to consistently use `'_` [INFO] [stderr] | [INFO] [stderr] 63 | fn parse(ctx: Ctx<'_>, value: String) -> Result> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: method `len` is never used [INFO] [stderr] --> src/bytearray_buffer.rs:38:12 [INFO] [stderr] | [INFO] [stderr] 24 | impl BytearrayBuffer { [INFO] [stderr] | -------------------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 38 | pub fn len(&self) -> usize { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `rqjs-ext` (lib) generated 67 warnings (run `cargo fix --lib -p rqjs-ext` to apply 6 suggestions) [INFO] [stderr] warning: `rqjs-ext` (lib test) generated 66 warnings (65 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rquickjs-core v0.6.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/rqjs_ext-8828ac47723c2c89) [INFO] [stdout] [INFO] [stdout] running 16 tests [INFO] [stdout] test json::escape::tests::escape_json_backslash ... ok [INFO] [stdout] test json::escape::tests::escape_json_mixed_characters ... ok [INFO] [stdout] test json::escape::tests::escape_json_quotes ... ok [INFO] [stdout] test json::escape::tests::escape_json_newline ... ok [INFO] [stdout] test json::escape::tests::escape_json_simple ... ok [INFO] [stdout] test json::escape::tests::escape_json_special_characters ... ok [INFO] [stdout] test bytearray_buffer::tests::clear_while_writing ... ok [INFO] [stdout] test bytearray_buffer::tests::write_one_at_a_time ... ok [INFO] [stdout] test json::escape::tests::escape_json_tab ... ok [INFO] [stdout] test json::escape::tests::escape_json_unicode ... ok [INFO] [stdout] test modules::bytearray_buffer::tests::clear_while_writing ... ok [INFO] [stdout] test modules::bytearray_buffer::tests::write_one_at_a_time ... ok [INFO] [stdout] test utils::mc_oneshot::tests::test ... ok [INFO] [stdout] test bytearray_buffer::tests::queue ... ok [INFO] [stdout] test modules::bytearray_buffer::tests::queue ... ok [INFO] [stdout] test number::test::test_base_conversions ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.12s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "3b9f2331fde1e9654e1900097cf9d622155316c5e2ad27eff1f64e812fbcbeaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b9f2331fde1e9654e1900097cf9d622155316c5e2ad27eff1f64e812fbcbeaa", kill_on_drop: false }` [INFO] [stdout] 3b9f2331fde1e9654e1900097cf9d622155316c5e2ad27eff1f64e812fbcbeaa