[INFO] fetching crate swc_ecma_lints 0.33.0... [INFO] testing swc_ecma_lints-0.33.0 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate swc_ecma_lints 0.33.0 into /workspace/builds/worker-14/source [INFO] validating manifest of crates.io crate swc_ecma_lints 0.33.0 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate swc_ecma_lints 0.33.0 [INFO] finished tweaking crates.io crate swc_ecma_lints 0.33.0 [INFO] tweaked toml for crates.io crate swc_ecma_lints 0.33.0 written to /workspace/builds/worker-14/source/Cargo.toml [INFO] crate crates.io crate swc_ecma_lints 0.33.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c98013287891e14431474c12ebffec4856ee6659392fbf2fd45a16f9de473b14 [INFO] running `Command { std: "docker" "start" "-a" "c98013287891e14431474c12ebffec4856ee6659392fbf2fd45a16f9de473b14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c98013287891e14431474c12ebffec4856ee6659392fbf2fd45a16f9de473b14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c98013287891e14431474c12ebffec4856ee6659392fbf2fd45a16f9de473b14", kill_on_drop: false }` [INFO] [stdout] c98013287891e14431474c12ebffec4856ee6659392fbf2fd45a16f9de473b14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0b6d3ca0804a1ffd1d45ee7a9a11ab112cd58bec3c4ffd566b5ceaac396e3bd4 [INFO] running `Command { std: "docker" "start" "-a" "0b6d3ca0804a1ffd1d45ee7a9a11ab112cd58bec3c4ffd566b5ceaac396e3bd4", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.122 [INFO] [stderr] Compiling tracing-core v0.1.24 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling is-macro v0.2.0 [INFO] [stderr] Compiling tracing v0.1.33 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling auto_impl v0.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.2 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling string_cache v0.8.4 [INFO] [stderr] Compiling dashmap v5.2.0 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling swc_common v0.17.21 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.2 [INFO] [stderr] Compiling swc_atoms v0.2.11 [INFO] [stderr] Compiling swc_ecma_ast v0.76.0 [INFO] [stderr] Compiling swc_ecma_visit v0.62.0 [INFO] [stderr] Compiling swc_ecma_utils v0.80.0 [INFO] [stderr] Compiling swc_ecma_lints v0.33.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `lint_params` [INFO] [stdout] --> src/rules/mod.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn all(lint_params: LintParams) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lint_params` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rules/mod.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut rules = vec![ [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_rule_reaction` [INFO] [stdout] --> src/config.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | pub(crate) fn get_rule_reaction(&self) -> LintRuleReaction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_rule_config` [INFO] [stdout] --> src/config.rs:67:19 [INFO] [stdout] | [INFO] [stdout] 67 | pub(crate) fn get_rule_config(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_char` [INFO] [stdout] --> src/rules/utils.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn get_char(&self) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `resolve_string_quote_type` [INFO] [stdout] --> src/rules/utils.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn resolve_string_quote_type(lit_str: &Str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Str` [INFO] [stdout] --> src/rules/utils.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | Str(JsWord), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rules/utils.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Number` [INFO] [stdout] --> src/rules/utils.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | Number(f64), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rules/utils.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RegExp` [INFO] [stdout] --> src/rules/utils.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | RegExp { exp: JsWord, flags: JsWord }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rules/utils.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Ident` [INFO] [stdout] --> src/rules/utils.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | Ident, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rules/utils.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Other` [INFO] [stdout] --> src/rules/utils.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | Other, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rules/utils.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `extract_arg_val` [INFO] [stdout] --> src/rules/utils.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn extract_arg_val( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `unwrap_seqs_and_parens` [INFO] [stdout] --> src/rules/utils.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn unwrap_seqs_and_parens(expr: &Expr) -> &Expr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 39.79s [INFO] running `Command { std: "docker" "inspect" "0b6d3ca0804a1ffd1d45ee7a9a11ab112cd58bec3c4ffd566b5ceaac396e3bd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b6d3ca0804a1ffd1d45ee7a9a11ab112cd58bec3c4ffd566b5ceaac396e3bd4", kill_on_drop: false }` [INFO] [stdout] 0b6d3ca0804a1ffd1d45ee7a9a11ab112cd58bec3c4ffd566b5ceaac396e3bd4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b28e4d2ee9881365df5bef4ca7c4a7ce7b69810d255f7ec4150601d5894dda6a [INFO] running `Command { std: "docker" "start" "-a" "b28e4d2ee9881365df5bef4ca7c4a7ce7b69810d255f7ec4150601d5894dda6a", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling tracing-core v0.1.24 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling terminal_size v0.1.17 [INFO] [stderr] Compiling backtrace v0.3.64 [INFO] [stderr] Compiling lexical-core v0.8.3 [INFO] [stderr] Compiling miette-derive v4.3.0 [INFO] [stderr] Compiling unicode-linebreak v0.1.2 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling swc_ecma_codegen_macros v0.7.0 [INFO] [stderr] Compiling phf_macros v0.10.0 [INFO] [stderr] Compiling supports-unicode v1.0.2 [INFO] [stderr] Compiling supports-color v1.3.0 [INFO] [stderr] Compiling supports-hyperlinks v1.2.0 [INFO] [stderr] Compiling lexical v6.1.0 [INFO] [stderr] Compiling tracing v0.1.33 [INFO] [stderr] Compiling tracing-log v0.1.2 [INFO] [stderr] Compiling swc_common v0.17.21 [INFO] [stderr] Compiling tracing-subscriber v0.3.11 [INFO] [stderr] Compiling textwrap v0.15.0 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling miette v4.3.0 [INFO] [stderr] Compiling swc_ecma_ast v0.76.0 [INFO] [stderr] Compiling swc_error_reporters v0.1.1 [INFO] [stderr] Compiling testing v0.19.1 [INFO] [stderr] Compiling swc_ecma_visit v0.62.0 [INFO] [stderr] Compiling swc_ecma_parser v0.101.0 [INFO] [stderr] Compiling swc_ecma_codegen v0.104.0 [INFO] [stderr] Compiling swc_ecma_utils v0.80.0 [INFO] [stderr] Compiling swc_ecma_transforms_base v0.77.0 [INFO] [stderr] Compiling swc_ecma_lints v0.33.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `lint_params` [INFO] [stdout] --> src/rules/mod.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn all(lint_params: LintParams) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lint_params` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rules/mod.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut rules = vec![ [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_rule_reaction` [INFO] [stdout] --> src/config.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | pub(crate) fn get_rule_reaction(&self) -> LintRuleReaction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_rule_config` [INFO] [stdout] --> src/config.rs:67:19 [INFO] [stdout] | [INFO] [stdout] 67 | pub(crate) fn get_rule_config(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_char` [INFO] [stdout] --> src/rules/utils.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn get_char(&self) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `resolve_string_quote_type` [INFO] [stdout] --> src/rules/utils.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn resolve_string_quote_type(lit_str: &Str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Str` [INFO] [stdout] --> src/rules/utils.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | Str(JsWord), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rules/utils.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Number` [INFO] [stdout] --> src/rules/utils.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | Number(f64), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rules/utils.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RegExp` [INFO] [stdout] --> src/rules/utils.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | RegExp { exp: JsWord, flags: JsWord }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rules/utils.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Ident` [INFO] [stdout] --> src/rules/utils.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | Ident, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rules/utils.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Other` [INFO] [stdout] --> src/rules/utils.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | Other, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rules/utils.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `extract_arg_val` [INFO] [stdout] --> src/rules/utils.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn extract_arg_val( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `unwrap_seqs_and_parens` [INFO] [stdout] --> src/rules/utils.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn unwrap_seqs_and_parens(expr: &Expr) -> &Expr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lint_params` [INFO] [stdout] --> src/rules/mod.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn all(lint_params: LintParams) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lint_params` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rules/mod.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut rules = vec![ [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_rule_reaction` [INFO] [stdout] --> src/config.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | pub(crate) fn get_rule_reaction(&self) -> LintRuleReaction { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_rule_config` [INFO] [stdout] --> src/config.rs:67:19 [INFO] [stdout] | [INFO] [stdout] 67 | pub(crate) fn get_rule_config(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_char` [INFO] [stdout] --> src/rules/utils.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn get_char(&self) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `resolve_string_quote_type` [INFO] [stdout] --> src/rules/utils.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn resolve_string_quote_type(lit_str: &Str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Str` [INFO] [stdout] --> src/rules/utils.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | Str(JsWord), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rules/utils.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Number` [INFO] [stdout] --> src/rules/utils.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | Number(f64), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rules/utils.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `RegExp` [INFO] [stdout] --> src/rules/utils.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | RegExp { exp: JsWord, flags: JsWord }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rules/utils.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Ident` [INFO] [stdout] --> src/rules/utils.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | Ident, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rules/utils.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Other` [INFO] [stdout] --> src/rules/utils.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | Other, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/rules/utils.rs:46:10 [INFO] [stdout] | [INFO] [stdout] 46 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `extract_arg_val` [INFO] [stdout] --> src/rules/utils.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn extract_arg_val( [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `unwrap_seqs_and_parens` [INFO] [stdout] --> src/rules/utils.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn unwrap_seqs_and_parens(expr: &Expr) -> &Expr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 36.10s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/swc_ecma_lints-2f9258f391c08787) [INFO] running `Command { std: "docker" "inspect" "b28e4d2ee9881365df5bef4ca7c4a7ce7b69810d255f7ec4150601d5894dda6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b28e4d2ee9881365df5bef4ca7c4a7ce7b69810d255f7ec4150601d5894dda6a", kill_on_drop: false }` [INFO] [stdout] b28e4d2ee9881365df5bef4ca7c4a7ce7b69810d255f7ec4150601d5894dda6a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 83d4a1cf77c5b371e974b52cc695f4cf0274c9fd58739b3a9539b1ce63b35e5b [INFO] running `Command { std: "docker" "start" "-a" "83d4a1cf77c5b371e974b52cc695f4cf0274c9fd58739b3a9539b1ce63b35e5b", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `lint_params` [INFO] [stderr] --> src/rules/mod.rs:54:12 [INFO] [stderr] | [INFO] [stderr] 54 | pub fn all(lint_params: LintParams) -> Vec> { [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lint_params` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/rules/mod.rs:55:9 [INFO] [stderr] | [INFO] [stderr] 55 | let mut rules = vec![ [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_rule_reaction` [INFO] [stderr] --> src/config.rs:63:19 [INFO] [stderr] | [INFO] [stderr] 63 | pub(crate) fn get_rule_reaction(&self) -> LintRuleReaction { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_rule_config` [INFO] [stderr] --> src/config.rs:67:19 [INFO] [stderr] | [INFO] [stderr] 67 | pub(crate) fn get_rule_config(&self) -> &T { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_char` [INFO] [stderr] --> src/rules/utils.rs:24:12 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn get_char(&self) -> char { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `resolve_string_quote_type` [INFO] [stderr] --> src/rules/utils.rs:33:8 [INFO] [stderr] | [INFO] [stderr] 33 | pub fn resolve_string_quote_type(lit_str: &Str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Str` [INFO] [stderr] --> src/rules/utils.rs:48:5 [INFO] [stderr] | [INFO] [stderr] 48 | Str(JsWord), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/rules/utils.rs:46:10 [INFO] [stderr] | [INFO] [stderr] 46 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Number` [INFO] [stderr] --> src/rules/utils.rs:49:5 [INFO] [stderr] | [INFO] [stderr] 49 | Number(f64), [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/rules/utils.rs:46:10 [INFO] [stderr] | [INFO] [stderr] 46 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `RegExp` [INFO] [stderr] --> src/rules/utils.rs:50:5 [INFO] [stderr] | [INFO] [stderr] 50 | RegExp { exp: JsWord, flags: JsWord }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/rules/utils.rs:46:10 [INFO] [stderr] | [INFO] [stderr] 46 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Ident` [INFO] [stderr] --> src/rules/utils.rs:51:5 [INFO] [stderr] | [INFO] [stderr] 51 | Ident, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/rules/utils.rs:46:10 [INFO] [stderr] | [INFO] [stderr] 46 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Other` [INFO] [stderr] --> src/rules/utils.rs:52:5 [INFO] [stderr] | [INFO] [stderr] 52 | Other, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `ArgValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/rules/utils.rs:46:10 [INFO] [stderr] | [INFO] [stderr] 46 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: function is never used: `extract_arg_val` [INFO] [stderr] --> src/rules/utils.rs:55:8 [INFO] [stderr] | [INFO] [stderr] 55 | pub fn extract_arg_val( [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `unwrap_seqs_and_parens` [INFO] [stderr] --> src/rules/utils.rs:110:8 [INFO] [stderr] | [INFO] [stderr] 110 | pub fn unwrap_seqs_and_parens(expr: &Expr) -> &Expr { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `swc_ecma_lints` (lib) generated 13 warnings [INFO] [stderr] warning: `swc_ecma_lints` (lib test) generated 13 warnings (13 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.53s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/swc_ecma_lints-2f9258f391c08787) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests swc_ecma_lints [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "83d4a1cf77c5b371e974b52cc695f4cf0274c9fd58739b3a9539b1ce63b35e5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "83d4a1cf77c5b371e974b52cc695f4cf0274c9fd58739b3a9539b1ce63b35e5b", kill_on_drop: false }` [INFO] [stdout] 83d4a1cf77c5b371e974b52cc695f4cf0274c9fd58739b3a9539b1ce63b35e5b