[INFO] fetching crate swc_ecma_lints 0.66.11... [INFO] testing swc_ecma_lints-0.66.11 against beta-2022-09-25 for beta-1.65-1 [INFO] extracting crate swc_ecma_lints 0.66.11 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate swc_ecma_lints 0.66.11 on toolchain beta-2022-09-25 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-09-25" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate swc_ecma_lints 0.66.11 [INFO] finished tweaking crates.io crate swc_ecma_lints 0.66.11 [INFO] tweaked toml for crates.io crate swc_ecma_lints 0.66.11 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate crates.io crate swc_ecma_lints 0.66.11 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-09-25" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-09-25" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f9a61fa25ef5ebe2d6c1451a2feb85e938b4a31a8a68582ace8c8f9e0b07ead6 [INFO] running `Command { std: "docker" "start" "-a" "f9a61fa25ef5ebe2d6c1451a2feb85e938b4a31a8a68582ace8c8f9e0b07ead6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f9a61fa25ef5ebe2d6c1451a2feb85e938b4a31a8a68582ace8c8f9e0b07ead6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9a61fa25ef5ebe2d6c1451a2feb85e938b4a31a8a68582ace8c8f9e0b07ead6", kill_on_drop: false }` [INFO] [stdout] f9a61fa25ef5ebe2d6c1451a2feb85e938b4a31a8a68582ace8c8f9e0b07ead6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "RUSTDOCFLAGS=--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:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-09-25" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 562bf5757568cea9369d7674fe954cae14b56e2356aef6155173d57348d5eb59 [INFO] running `Command { std: "docker" "start" "-a" "562bf5757568cea9369d7674fe954cae14b56e2356aef6155173d57348d5eb59", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.101 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling smallvec v1.9.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.12 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling unreachable v0.1.1 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling tracing-core v0.1.29 [INFO] [stderr] Compiling crossbeam-epoch v0.9.11 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling debug_unreachable v0.1.1 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling better_scoped_tls v0.1.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling unicode-width v0.1.10 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling rayon-core v1.9.3 [INFO] [stderr] Compiling swc_ecma_ast v0.94.4 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling serde_json v1.0.85 [INFO] [stderr] Compiling anyhow v1.0.65 [INFO] [stderr] Compiling unicode-id v0.3.3 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling string_cache_codegen v0.5.2 [INFO] [stderr] Compiling rayon v1.5.3 [INFO] [stderr] Compiling itoa v1.0.3 [INFO] [stderr] Compiling ryu v1.0.11 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling swc_atoms v0.4.18 [INFO] [stderr] Compiling dashmap v5.4.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling pmutil v0.5.3 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling swc_macros_common v0.3.6 [INFO] [stderr] Compiling serde_derive v1.0.145 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling tracing-attributes v0.1.22 [INFO] [stderr] Compiling swc_visit_macros v0.5.4 [INFO] [stderr] Compiling from_variant v0.1.4 [INFO] [stderr] Compiling swc_eq_ignore_macros v0.1.1 [INFO] [stderr] Compiling is-macro v0.2.1 [INFO] [stderr] Compiling string_enum v0.3.1 [INFO] [stderr] Compiling swc_config_macro v0.1.0 [INFO] [stderr] Compiling auto_impl v0.5.0 [INFO] [stderr] Compiling tracing v0.1.36 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling ast_node v0.8.6 [INFO] [stderr] Compiling serde v1.0.145 [INFO] [stderr] Compiling swc_visit v0.5.3 [INFO] [stderr] Compiling triomphe v0.1.8 [INFO] [stderr] Compiling string_cache v0.8.4 [INFO] [stderr] Compiling swc_config v0.1.2 [INFO] [stderr] Compiling swc_common v0.29.4 [INFO] [stderr] Compiling swc_ecma_visit v0.80.4 [INFO] [stderr] Compiling swc_ecma_utils v0.105.6 [INFO] [stderr] Compiling swc_ecma_lints v0.66.11 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `lint_params` [INFO] [stdout] --> src/rules/mod.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | 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:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | 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 `get_rule_reaction` is never used [INFO] [stdout] --> src/config.rs:66:19 [INFO] [stdout] | [INFO] [stdout] 66 | 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 `get_rule_config` is never used [INFO] [stdout] --> src/config.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | pub(crate) fn get_rule_config(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resolve_string_quote_type` is never used [INFO] [stdout] --> src/rules/utils.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn resolve_string_quote_type(lit_str: &Str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Str`, `Number`, `RegExp`, `Ident` and `Other` are never constructed [INFO] [stdout] --> src/rules/utils.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum ArgValue { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 47 | Str(Atom), [INFO] [stdout] | ^^^ [INFO] [stdout] 48 | Number(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 49 | RegExp { exp: Atom, flags: Atom }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 50 | Ident, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 51 | 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] [INFO] [stdout] [INFO] [stdout] warning: function `extract_arg_val` is never used [INFO] [stdout] --> src/rules/utils.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn extract_arg_val(unresolved_ctxt: SyntaxContext, expr: &Expr) -> ArgValue { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unwrap_seqs_and_parens` is never used [INFO] [stdout] --> src/rules/utils.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn unwrap_seqs_and_parens(expr: &Expr) -> &Expr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_char` is never used [INFO] [stdout] --> src/rules/utils.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn get_char(&self) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 03s [INFO] running `Command { std: "docker" "inspect" "562bf5757568cea9369d7674fe954cae14b56e2356aef6155173d57348d5eb59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "562bf5757568cea9369d7674fe954cae14b56e2356aef6155173d57348d5eb59", kill_on_drop: false }` [INFO] [stdout] 562bf5757568cea9369d7674fe954cae14b56e2356aef6155173d57348d5eb59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "RUSTDOCFLAGS=--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:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-09-25" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 48e56876809ebcb705a431127cf517c0782db5db5d0bd4ba1fb86c1c3ce4107c [INFO] running `Command { std: "docker" "start" "-a" "48e56876809ebcb705a431127cf517c0782db5db5d0bd4ba1fb86c1c3ce4107c", kill_on_drop: false }` [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling unicode-linebreak v0.1.4 [INFO] [stderr] Compiling backtrace v0.3.66 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling gimli v0.26.2 [INFO] [stderr] Compiling thiserror-impl v1.0.37 [INFO] [stderr] Compiling object v0.29.0 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling is_ci v1.1.1 [INFO] [stderr] Compiling smawk v0.3.1 [INFO] [stderr] Compiling supports-hyperlinks v1.2.0 [INFO] [stderr] Compiling miette-derive v4.7.1 [INFO] [stderr] Compiling supports-unicode v1.0.2 [INFO] [stderr] Compiling terminal_size v0.1.17 [INFO] [stderr] Compiling miniz_oxide v0.5.4 [INFO] [stderr] Compiling supports-color v1.3.0 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling lexical-util v0.8.5 [INFO] [stderr] Compiling owo-colors v3.5.0 [INFO] [stderr] Compiling enum_kind v0.2.1 [INFO] [stderr] Compiling sharded-slab v0.1.4 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling tracing-log v0.1.3 [INFO] [stderr] Compiling if_chain v1.0.2 [INFO] [stderr] Compiling typed-arena v2.0.1 [INFO] [stderr] Compiling relative-path v1.7.2 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling lexical-write-integer v0.8.5 [INFO] [stderr] Compiling lexical-parse-integer v0.8.6 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling yansi v0.5.1 [INFO] [stderr] Compiling testing_macros v0.2.7 [INFO] [stderr] Compiling sourcemap v6.2.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.15 [INFO] [stderr] Compiling lexical-write-float v0.8.5 [INFO] [stderr] Compiling lexical-parse-float v0.8.5 [INFO] [stderr] Compiling pretty_assertions v1.3.0 [INFO] [stderr] Compiling phf_macros v0.10.0 [INFO] [stderr] Compiling swc_ecma_codegen_macros v0.7.1 [INFO] [stderr] Compiling difference v2.0.0 [INFO] [stdout] warning: unused variable: `lint_params` [INFO] [stdout] --> src/rules/mod.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | 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:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | 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 `get_rule_reaction` is never used [INFO] [stdout] --> src/config.rs:66:19 [INFO] [stdout] | [INFO] [stdout] 66 | 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 `get_rule_config` is never used [INFO] [stdout] --> src/config.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | pub(crate) fn get_rule_config(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resolve_string_quote_type` is never used [INFO] [stdout] --> src/rules/utils.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn resolve_string_quote_type(lit_str: &Str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Str`, `Number`, `RegExp`, `Ident` and `Other` are never constructed [INFO] [stdout] --> src/rules/utils.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum ArgValue { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 47 | Str(Atom), [INFO] [stdout] | ^^^ [INFO] [stdout] 48 | Number(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 49 | RegExp { exp: Atom, flags: Atom }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 50 | Ident, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 51 | 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] [INFO] [stdout] [INFO] [stdout] warning: function `extract_arg_val` is never used [INFO] [stdout] --> src/rules/utils.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn extract_arg_val(unresolved_ctxt: SyntaxContext, expr: &Expr) -> ArgValue { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unwrap_seqs_and_parens` is never used [INFO] [stdout] --> src/rules/utils.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn unwrap_seqs_and_parens(expr: &Expr) -> &Expr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_char` is never used [INFO] [stdout] --> src/rules/utils.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn get_char(&self) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling lexical-core v0.8.5 [INFO] [stderr] Compiling lexical v6.1.1 [INFO] [stderr] Compiling swc_ecma_parser v0.122.5 [INFO] [stderr] Compiling addr2line v0.17.0 [INFO] [stderr] Compiling textwrap v0.15.1 [INFO] [stderr] Compiling swc_ecma_codegen v0.127.7 [INFO] [stderr] Compiling thiserror v1.0.37 [INFO] [stderr] Compiling miette v4.7.1 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling swc_ecma_transforms_base v0.111.11 [INFO] [stderr] Compiling swc_error_reporters v0.13.4 [INFO] [stderr] Compiling testing v0.31.4 [INFO] [stderr] Compiling swc_ecma_lints v0.66.11 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `lint_params` [INFO] [stdout] --> src/rules/mod.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 63 | 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:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | 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 `get_rule_reaction` is never used [INFO] [stdout] --> src/config.rs:66:19 [INFO] [stdout] | [INFO] [stdout] 66 | 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 `get_rule_config` is never used [INFO] [stdout] --> src/config.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | pub(crate) fn get_rule_config(&self) -> &T { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `resolve_string_quote_type` is never used [INFO] [stdout] --> src/rules/utils.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn resolve_string_quote_type(lit_str: &Str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Str`, `Number`, `RegExp`, `Ident` and `Other` are never constructed [INFO] [stdout] --> src/rules/utils.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum ArgValue { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 47 | Str(Atom), [INFO] [stdout] | ^^^ [INFO] [stdout] 48 | Number(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 49 | RegExp { exp: Atom, flags: Atom }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 50 | Ident, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 51 | 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] [INFO] [stdout] [INFO] [stdout] warning: function `extract_arg_val` is never used [INFO] [stdout] --> src/rules/utils.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn extract_arg_val(unresolved_ctxt: SyntaxContext, expr: &Expr) -> ArgValue { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `unwrap_seqs_and_parens` is never used [INFO] [stdout] --> src/rules/utils.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn unwrap_seqs_and_parens(expr: &Expr) -> &Expr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_char` is never used [INFO] [stdout] --> src/rules/utils.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn get_char(&self) -> char { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 26.69s [INFO] running `Command { std: "docker" "inspect" "48e56876809ebcb705a431127cf517c0782db5db5d0bd4ba1fb86c1c3ce4107c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48e56876809ebcb705a431127cf517c0782db5db5d0bd4ba1fb86c1c3ce4107c", kill_on_drop: false }` [INFO] [stdout] 48e56876809ebcb705a431127cf517c0782db5db5d0bd4ba1fb86c1c3ce4107c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "RUSTDOCFLAGS=--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:3d1cd00eb6e6ea2a7969240779edeaeff35b24be85036c63b883ba933028a15f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-09-25" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 20c2b28c526be24eff340c10dad4e7a0ed5636f6bfdebfcfce68e4f9ba869ce5 [INFO] running `Command { std: "docker" "start" "-a" "20c2b28c526be24eff340c10dad4e7a0ed5636f6bfdebfcfce68e4f9ba869ce5", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `lint_params` [INFO] [stderr] --> src/rules/mod.rs:63:12 [INFO] [stderr] | [INFO] [stderr] 63 | 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:64:9 [INFO] [stderr] | [INFO] [stderr] 64 | 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 `get_rule_reaction` is never used [INFO] [stderr] --> src/config.rs:66:19 [INFO] [stderr] | [INFO] [stderr] 66 | 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 `get_rule_config` is never used [INFO] [stderr] --> src/config.rs:70:19 [INFO] [stderr] | [INFO] [stderr] 70 | pub(crate) fn get_rule_config(&self) -> &T { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `resolve_string_quote_type` is never used [INFO] [stderr] --> src/rules/utils.rs:32:8 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn resolve_string_quote_type(lit_str: &Str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Str`, `Number`, `RegExp`, `Ident` and `Other` are never constructed [INFO] [stderr] --> src/rules/utils.rs:47:5 [INFO] [stderr] | [INFO] [stderr] 46 | pub enum ArgValue { [INFO] [stderr] | -------- variants in this enum [INFO] [stderr] 47 | Str(Atom), [INFO] [stderr] | ^^^ [INFO] [stderr] 48 | Number(f64), [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 49 | RegExp { exp: Atom, flags: Atom }, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 50 | Ident, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 51 | 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] [INFO] [stderr] warning: function `extract_arg_val` is never used [INFO] [stderr] --> src/rules/utils.rs:54:8 [INFO] [stderr] | [INFO] [stderr] 54 | pub fn extract_arg_val(unresolved_ctxt: SyntaxContext, expr: &Expr) -> ArgValue { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `unwrap_seqs_and_parens` is never used [INFO] [stderr] --> src/rules/utils.rs:101:8 [INFO] [stderr] | [INFO] [stderr] 101 | pub fn unwrap_seqs_and_parens(expr: &Expr) -> &Expr { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `get_char` is never used [INFO] [stderr] --> src/rules/utils.rs:23:12 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn get_char(&self) -> char { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `swc_ecma_lints` (lib) generated 9 warnings [INFO] [stderr] warning: `swc_ecma_lints` (lib test) generated 9 warnings (9 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 4.38s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/swc_ecma_lints-5fce8eb481ed6872) [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" "20c2b28c526be24eff340c10dad4e7a0ed5636f6bfdebfcfce68e4f9ba869ce5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20c2b28c526be24eff340c10dad4e7a0ed5636f6bfdebfcfce68e4f9ba869ce5", kill_on_drop: false }` [INFO] [stdout] 20c2b28c526be24eff340c10dad4e7a0ed5636f6bfdebfcfce68e4f9ba869ce5