[INFO] fetching crate secretscan 0.2.2... [INFO] building secretscan-0.2.2 against try#4987e9d4227139400384ab59296ffee3b0fb1183 for pr-146237-2 [INFO] extracting crate secretscan 0.2.2 into /workspace/builds/worker-6-tc2/source [INFO] removed /workspace/builds/worker-6-tc2/source/.cargo/config.toml [INFO] started tweaking crates.io crate secretscan 0.2.2 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate secretscan 0.2.2 [INFO] tweaked toml for crates.io crate secretscan 0.2.2 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate secretscan 0.2.2 on toolchain 4987e9d4227139400384ab59296ffee3b0fb1183 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate secretscan 0.2.2 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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 87a874b7106718c7e25ca10982e76e919bad2ea8abcfe875d25967794d22269f [INFO] running `Command { std: "docker" "start" "-a" "87a874b7106718c7e25ca10982e76e919bad2ea8abcfe875d25967794d22269f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "87a874b7106718c7e25ca10982e76e919bad2ea8abcfe875d25967794d22269f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87a874b7106718c7e25ca10982e76e919bad2ea8abcfe875d25967794d22269f", kill_on_drop: false }` [INFO] [stdout] 87a874b7106718c7e25ca10982e76e919bad2ea8abcfe875d25967794d22269f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5c815b4ec7a3c0f3e7d9388b7da624dd3fc9c28309d0ebb37f22463d4a2220c [INFO] running `Command { std: "docker" "start" "-a" "d5c815b4ec7a3c0f3e7d9388b7da624dd3fc9c28309d0ebb37f22463d4a2220c", kill_on_drop: false }` [INFO] [stderr] Compiling portable-atomic v1.11.1 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling clap_builder v4.5.42 [INFO] [stderr] Compiling number_prefix v0.4.0 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling indicatif v0.17.11 [INFO] [stderr] Compiling globset v0.4.16 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling ignore v0.4.23 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling clap v4.5.42 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling secretscan v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.56s [INFO] running `Command { std: "docker" "inspect" "d5c815b4ec7a3c0f3e7d9388b7da624dd3fc9c28309d0ebb37f22463d4a2220c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5c815b4ec7a3c0f3e7d9388b7da624dd3fc9c28309d0ebb37f22463d4a2220c", kill_on_drop: false }` [INFO] [stdout] d5c815b4ec7a3c0f3e7d9388b7da624dd3fc9c28309d0ebb37f22463d4a2220c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5f87302615319536f7c1a28a1714ecd114fdd6813ac050224bbbe80ce3768008 [INFO] running `Command { std: "docker" "start" "-a" "5f87302615319536f7c1a28a1714ecd114fdd6813ac050224bbbe80ce3768008", kill_on_drop: false }` [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.141 [INFO] [stderr] Compiling camino v1.1.10 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling half v2.6.0 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling bytemuck v1.23.1 [INFO] [stderr] Compiling predicates-core v1.0.9 [INFO] [stderr] Compiling num-format v0.4.4 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling float-cmp v0.10.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.15 [INFO] [stderr] Compiling quick-xml v0.37.5 [INFO] [stderr] Compiling termtree v0.5.1 [INFO] [stderr] Compiling normalize-line-endings v0.3.0 [INFO] [stderr] Compiling rgb v0.8.52 [INFO] [stderr] Compiling difflib v0.4.0 [INFO] [stderr] Compiling dashmap v6.1.0 [INFO] [stderr] Compiling str_stack v0.1.0 [INFO] [stderr] Compiling assert_cmd v2.0.17 [INFO] [stderr] Compiling criterion-plot v0.5.0 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling plotters v0.3.7 [INFO] [stderr] Compiling ciborium-ll v0.2.2 [INFO] [stderr] Compiling clap_complete v4.5.55 [INFO] [stderr] Compiling predicates-tree v1.0.12 [INFO] [stderr] Compiling wait-timeout v0.2.1 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling rustc-demangle v0.1.26 [INFO] [stderr] Compiling oorandom v11.1.5 [INFO] [stderr] Compiling anes v0.1.6 [INFO] [stderr] Compiling inferno v0.12.3 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling bstr v1.12.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling cargo-platform v0.1.9 [INFO] [stderr] Compiling ciborium v0.2.2 [INFO] [stderr] Compiling predicates v3.1.3 [INFO] [stderr] Compiling globset v0.4.16 [INFO] [stderr] Compiling opener v0.7.2 [INFO] [stderr] Compiling tinytemplate v1.2.1 [INFO] [stderr] Compiling cargo_metadata v0.19.2 [INFO] [stderr] Compiling ignore v0.4.23 [INFO] [stderr] Compiling criterion v0.5.1 [INFO] [stderr] Compiling secretscan v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Compiling flamegraph v0.6.8 [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tests/pattern_consistency_test.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `get_all_patterns` [INFO] [stdout] --> tests/aws_key_validation_test.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use secretscan::{Scanner, get_all_patterns}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scanner` [INFO] [stdout] --> tests/pattern_consistency_test.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let scanner = Scanner::new().unwrap(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scanner` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::drop` with a value that implements `Copy` does nothing [INFO] [stdout] --> tests/pattern_consistency_test.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | drop(result); [INFO] [stdout] | ^^^^^------^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `Option>` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dropping_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 38 - drop(result); [INFO] [stdout] 38 + let _ = result; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `should_match` [INFO] [stdout] --> tests/aws_key_validation_test.rs:112:19 [INFO] [stdout] | [INFO] [stdout] 112 | for (i, (key, should_match, description)) in test_cases.iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_should_match` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> tests/performance_benchmark_test.rs:253:61 [INFO] [stdout] | [INFO] [stdout] 253 | ("few_secrets", create_file_with_few_secrets as fn(&Path)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> tests/performance_benchmark_test.rs:254:63 [INFO] [stdout] | [INFO] [stdout] 254 | ("many_secrets", create_file_with_many_secrets as fn(&Path)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> tests/performance_benchmark_test.rs:255:59 [INFO] [stdout] | [INFO] [stdout] 255 | ("no_secrets", create_file_with_no_secrets as fn(&Path)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Path` in this scope [INFO] [stdout] --> tests/performance_benchmark_test.rs:256:71 [INFO] [stdout] | [INFO] [stdout] 256 | ("large_no_secrets", create_large_file_with_no_secrets as fn(&Path)), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::Path; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `secretscan` (test "performance_benchmark_test") due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "5f87302615319536f7c1a28a1714ecd114fdd6813ac050224bbbe80ce3768008", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f87302615319536f7c1a28a1714ecd114fdd6813ac050224bbbe80ce3768008", kill_on_drop: false }` [INFO] [stdout] 5f87302615319536f7c1a28a1714ecd114fdd6813ac050224bbbe80ce3768008