[INFO] fetching crate swc_ecma_lints 0.17.3... [INFO] checking swc_ecma_lints-0.17.3 against try#506dff8de9f54f528028a7e4497ea925a4f3e19e for pr-94295 [INFO] extracting crate swc_ecma_lints 0.17.3 into /workspace/builds/worker-14/source [INFO] validating manifest of crates.io crate swc_ecma_lints 0.17.3 on toolchain 506dff8de9f54f528028a7e4497ea925a4f3e19e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+506dff8de9f54f528028a7e4497ea925a4f3e19e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate swc_ecma_lints 0.17.3 [INFO] finished tweaking crates.io crate swc_ecma_lints 0.17.3 [INFO] tweaked toml for crates.io crate swc_ecma_lints 0.17.3 written to /workspace/builds/worker-14/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+506dff8de9f54f528028a7e4497ea925a4f3e19e" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+506dff8de9f54f528028a7e4497ea925a4f3e19e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+506dff8de9f54f528028a7e4497ea925a4f3e19e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ccc19c2bcfc7f30d5c26e0cc66c3a70b848d1d03d4ffb331602145eb969e4eb3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "ccc19c2bcfc7f30d5c26e0cc66c3a70b848d1d03d4ffb331602145eb969e4eb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ccc19c2bcfc7f30d5c26e0cc66c3a70b848d1d03d4ffb331602145eb969e4eb3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ccc19c2bcfc7f30d5c26e0cc66c3a70b848d1d03d4ffb331602145eb969e4eb3", kill_on_drop: false }` [INFO] [stdout] ccc19c2bcfc7f30d5c26e0cc66c3a70b848d1d03d4ffb331602145eb969e4eb3 [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=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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+506dff8de9f54f528028a7e4497ea925a4f3e19e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 972a61fa2aaf9b9dde24736bb07c09a5411bbad72238c792d59d9d4bd01022cb [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "972a61fa2aaf9b9dde24736bb07c09a5411bbad72238c792d59d9d4bd01022cb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.65 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling siphasher v0.3.9 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling strsim v0.9.3 [INFO] [stderr] Checking matches v0.1.9 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking unicode-bidi v0.3.7 [INFO] [stderr] Checking once_cell v1.9.0 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking new_debug_unreachable v1.0.4 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling crossbeam-utils v0.8.7 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Compiling crossbeam-epoch v0.9.7 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling anyhow v1.0.55 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking typed-arena v2.0.1 [INFO] [stderr] Checking if_chain v1.0.2 [INFO] [stderr] Checking base64 v0.11.0 [INFO] [stderr] Checking diff v0.1.12 [INFO] [stderr] Compiling relative-path v1.6.1 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking tracing-core v0.1.22 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Checking tinyvec v1.5.1 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Checking phf_shared v0.10.0 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking unreachable v0.1.1 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Checking better_scoped_tls v0.1.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Checking pretty_assertions v0.7.2 [INFO] [stderr] Checking debug_unreachable v0.1.1 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking tracing-log v0.1.2 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Checking crossbeam-channel v0.5.2 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking getrandom v0.2.5 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking num_cpus v1.13.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Checking parking_lot v0.12.0 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking dashmap v4.0.2 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Checking idna v0.2.3 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking url v2.2.2 [INFO] [stderr] Checking lexical v5.2.2 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.1 [INFO] [stderr] Compiling swc_atoms v0.2.9 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling pmutil v0.5.3 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling swc_macros_common v0.3.3 [INFO] [stderr] Compiling tracing-attributes v0.1.19 [INFO] [stderr] Compiling swc_visit_macros v0.3.0 [INFO] [stderr] Compiling swc_eq_ignore_macros v0.1.0 [INFO] [stderr] Compiling from_variant v0.1.3 [INFO] [stderr] Compiling string_enum v0.3.1 [INFO] [stderr] Compiling is-macro v0.2.0 [INFO] [stderr] Compiling phf_macros v0.8.0 [INFO] [stderr] Compiling enum_kind v0.2.1 [INFO] [stderr] Compiling swc_ecma_codegen_macros v0.6.0 [INFO] [stderr] Compiling testing_macros v0.2.5 [INFO] [stderr] Compiling auto_impl v0.5.0 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling ast_node v0.7.6 [INFO] [stderr] Checking phf v0.8.0 [INFO] [stderr] Checking tracing v0.1.31 [INFO] [stderr] Checking tracing-subscriber v0.3.9 [INFO] [stderr] Checking swc_visit v0.3.0 [INFO] [stderr] Checking string_cache v0.8.3 [INFO] [stderr] Checking swc_common v0.17.9 [INFO] [stderr] Checking sourcemap v6.0.1 [INFO] [stderr] Checking swc_ecma_ast v0.68.1 [INFO] [stderr] Checking testing v0.18.1 [INFO] [stderr] Checking swc_ecma_visit v0.54.0 [INFO] [stderr] Checking swc_ecma_parser v0.91.6 [INFO] [stderr] Checking swc_ecma_codegen v0.93.2 [INFO] [stderr] Checking swc_ecma_utils v0.68.0 [INFO] [stderr] Checking swc_ecma_transforms_base v0.61.1 [INFO] [stderr] Checking swc_ecma_lints v0.17.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `lint_params` [INFO] [stdout] --> src/rules/mod.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | 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:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | 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:60:19 [INFO] [stdout] | [INFO] [stdout] 60 | 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:64:19 [INFO] [stdout] | [INFO] [stdout] 64 | 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:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | 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:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn resolve_string_quote_type(source_map: &Arc, lit_str: &Str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lint_params` [INFO] [stdout] --> src/rules/mod.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | 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:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | 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:60:19 [INFO] [stdout] | [INFO] [stdout] 60 | 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:64:19 [INFO] [stdout] | [INFO] [stdout] 64 | 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:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | 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:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn resolve_string_quote_type(source_map: &Arc, lit_str: &Str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3m 46s [INFO] running `Command { std: "docker" "inspect" "972a61fa2aaf9b9dde24736bb07c09a5411bbad72238c792d59d9d4bd01022cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "972a61fa2aaf9b9dde24736bb07c09a5411bbad72238c792d59d9d4bd01022cb", kill_on_drop: false }` [INFO] [stdout] 972a61fa2aaf9b9dde24736bb07c09a5411bbad72238c792d59d9d4bd01022cb