[INFO] fetching crate rosu-pattern-detector 0.1.1... [INFO] checking rosu-pattern-detector-0.1.1 against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] extracting crate rosu-pattern-detector 0.1.1 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate rosu-pattern-detector 0.1.1 [INFO] finished tweaking crates.io crate rosu-pattern-detector 0.1.1 [INFO] tweaked toml for crates.io crate rosu-pattern-detector 0.1.1 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rosu-pattern-detector 0.1.1 on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rosu-pattern-detector 0.1.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6c0b7cb5248110ed998e94ec7389161978901ae085b7c920f3b6a03129649d9e [INFO] running `Command { std: "docker" "start" "-a" "6c0b7cb5248110ed998e94ec7389161978901ae085b7c920f3b6a03129649d9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6c0b7cb5248110ed998e94ec7389161978901ae085b7c920f3b6a03129649d9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c0b7cb5248110ed998e94ec7389161978901ae085b7c920f3b6a03129649d9e", kill_on_drop: false }` [INFO] [stdout] 6c0b7cb5248110ed998e94ec7389161978901ae085b7c920f3b6a03129649d9e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b32f17369ed12a1084a95cf275507661f0294d1079923e66451cc7f3ed8f57cb [INFO] running `Command { std: "docker" "start" "-a" "b32f17369ed12a1084a95cf275507661f0294d1079923e66451cc7f3ed8f57cb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Compiling serde_json v1.0.139 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking once_cell v1.20.3 [INFO] [stderr] Checking ryu v1.0.19 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Checking rosu-map v0.2.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Checking rosu-pattern-detector v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `ratio` [INFO] [stdout] --> src/std/detector.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let ratio = if global_avg_distance > 0.0 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ratio` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommonNotes` is never constructed [INFO] [stdout] --> src/structs.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct CommonNotes { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `start_time` is never read [INFO] [stdout] --> src/structs.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct CommonMeasure { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 9 | pub(crate) start_time: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CommonMeasure` 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 `transformers` is never used [INFO] [stdout] --> src/std/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn transformers(map: Beatmap) -> serde_json::Value { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transform_hit_object_to_std_notes` is never used [INFO] [stdout] --> src/std/transform.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) fn transform_hit_object_to_std_notes(ho: Vec) -> Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `group_notes_by_measures` is never used [INFO] [stdout] --> src/std/transform.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | pub(crate) fn group_notes_by_measures( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_average_distance_speed_ratio` is never used [INFO] [stdout] --> src/std/detector.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn calc_average_distance_speed_ratio(measure: &StdMeasure) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `detect_secondary_pattern` is never used [INFO] [stdout] --> src/std/detector.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn detect_secondary_pattern(measures: &mut BTreeMap) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Notes` is never constructed [INFO] [stdout] --> src/std/structs.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Notes { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BasePattern` is never used [INFO] [stdout] --> src/std/structs.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum BasePattern { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SecondaryPattern` is never used [INFO] [stdout] --> src/std/structs.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum SecondaryPattern [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StdMeasure` is never constructed [INFO] [stdout] --> src/std/structs.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct StdMeasure { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Notes` is never constructed [INFO] [stdout] --> src/taiko/structs.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Notes { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BasePattern` is never used [INFO] [stdout] --> src/taiko/structs.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum BasePattern { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SecondaryPattern` is never used [INFO] [stdout] --> src/taiko/structs.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum SecondaryPattern{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tNotes` should have a snake case name [INFO] [stdout] --> src/mania/structs.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn tNotes(&self) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `t_notes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash` should have a snake case name [INFO] [stdout] --> src/std/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let Hash = detect_secondary_pattern(&mut mesure); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ratio` [INFO] [stdout] --> src/std/detector.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let ratio = if global_avg_distance > 0.0 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ratio` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CommonNotes` is never constructed [INFO] [stdout] --> src/structs.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct CommonNotes { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `start_time` is never read [INFO] [stdout] --> src/structs.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct CommonMeasure { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 9 | pub(crate) start_time: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CommonMeasure` 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 `transformers` is never used [INFO] [stdout] --> src/std/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn transformers(map: Beatmap) -> serde_json::Value { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transform_hit_object_to_std_notes` is never used [INFO] [stdout] --> src/std/transform.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | pub(crate) fn transform_hit_object_to_std_notes(ho: Vec) -> Vec [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `group_notes_by_measures` is never used [INFO] [stdout] --> src/std/transform.rs:30:15 [INFO] [stdout] | [INFO] [stdout] 30 | pub(crate) fn group_notes_by_measures( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calc_average_distance_speed_ratio` is never used [INFO] [stdout] --> src/std/detector.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn calc_average_distance_speed_ratio(measure: &StdMeasure) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `detect_secondary_pattern` is never used [INFO] [stdout] --> src/std/detector.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn detect_secondary_pattern(measures: &mut BTreeMap) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Notes` is never constructed [INFO] [stdout] --> src/std/structs.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Notes { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BasePattern` is never used [INFO] [stdout] --> src/std/structs.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum BasePattern { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SecondaryPattern` is never used [INFO] [stdout] --> src/std/structs.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum SecondaryPattern [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StdMeasure` is never constructed [INFO] [stdout] --> src/std/structs.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct StdMeasure { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Notes` is never constructed [INFO] [stdout] --> src/taiko/structs.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Notes { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `BasePattern` is never used [INFO] [stdout] --> src/taiko/structs.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum BasePattern { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `SecondaryPattern` is never used [INFO] [stdout] --> src/taiko/structs.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum SecondaryPattern{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tNotes` should have a snake case name [INFO] [stdout] --> src/mania/structs.rs:100:12 [INFO] [stdout] | [INFO] [stdout] 100 | pub fn tNotes(&self) -> i32 { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `t_notes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hash` should have a snake case name [INFO] [stdout] --> src/std/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let Hash = detect_secondary_pattern(&mut mesure); [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.92s [INFO] running `Command { std: "docker" "inspect" "b32f17369ed12a1084a95cf275507661f0294d1079923e66451cc7f3ed8f57cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b32f17369ed12a1084a95cf275507661f0294d1079923e66451cc7f3ed8f57cb", kill_on_drop: false }` [INFO] [stdout] b32f17369ed12a1084a95cf275507661f0294d1079923e66451cc7f3ed8f57cb