[INFO] fetching crate duplicate_code 0.8.1... [INFO] testing duplicate_code-0.8.1 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145330-1 [INFO] extracting crate duplicate_code 0.8.1 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate duplicate_code 0.8.1 [INFO] finished tweaking crates.io crate duplicate_code 0.8.1 [INFO] tweaked toml for crates.io crate duplicate_code 0.8.1 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate duplicate_code 0.8.1 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate duplicate_code 0.8.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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_derive v1.0.125 [INFO] [stderr] Downloaded crypto-mac v0.8.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.26 [INFO] [stderr] Downloaded serde v1.0.125 [INFO] [stderr] Downloaded subtle v2.4.0 [INFO] [stderr] Downloaded typenum v1.13.0 [INFO] [stderr] Downloaded similar v1.3.0 [INFO] [stderr] Downloaded generic-array v0.14.4 [INFO] [stderr] Downloaded yaml-rust v0.4.5 [INFO] [stderr] Downloaded serde_json v1.0.64 [INFO] [stderr] Downloaded serde_yaml v0.8.17 [INFO] [stderr] Downloaded blake3 v0.3.7 [INFO] [stderr] Downloaded memchr v2.4.0 [INFO] [stderr] Downloaded syn v1.0.72 [INFO] [stderr] Downloaded linked-hash-map v0.5.4 [INFO] [stderr] Downloaded regex v1.5.4 [INFO] [stderr] Downloaded version_check v0.9.3 [INFO] [stderr] Downloaded pretty_env_logger v0.4.0 [INFO] [stderr] Downloaded insta v1.7.1 [INFO] [stderr] Downloaded libc v0.2.94 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7d4fa7f188be39f1ac7813db9c0b8d96b14dccf96b7f90ce2da306b630805ab3 [INFO] running `Command { std: "docker" "start" "-a" "7d4fa7f188be39f1ac7813db9c0b8d96b14dccf96b7f90ce2da306b630805ab3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7d4fa7f188be39f1ac7813db9c0b8d96b14dccf96b7f90ce2da306b630805ab3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d4fa7f188be39f1ac7813db9c0b8d96b14dccf96b7f90ce2da306b630805ab3", kill_on_drop: false }` [INFO] [stdout] 7d4fa7f188be39f1ac7813db9c0b8d96b14dccf96b7f90ce2da306b630805ab3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 16933eb4f71a8499044acc8e0066766605433ba1a4b7715c8214dc29063f410c [INFO] running `Command { std: "docker" "start" "-a" "16933eb4f71a8499044acc8e0066766605433ba1a4b7715c8214dc29063f410c", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling unicode-segmentation v1.7.1 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling heck v0.3.2 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling terminal_size v0.1.16 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling blake3 v0.3.7 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling env_logger v0.7.1 [INFO] [stderr] Compiling console v0.14.1 [INFO] [stderr] Compiling pretty_env_logger v0.4.0 [INFO] [stderr] Compiling structopt-derive v0.4.14 [INFO] [stderr] Compiling structopt v0.3.21 [INFO] [stderr] Compiling duplicate_code v0.8.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.71s [INFO] running `Command { std: "docker" "inspect" "16933eb4f71a8499044acc8e0066766605433ba1a4b7715c8214dc29063f410c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16933eb4f71a8499044acc8e0066766605433ba1a4b7715c8214dc29063f410c", kill_on_drop: false }` [INFO] [stdout] 16933eb4f71a8499044acc8e0066766605433ba1a4b7715c8214dc29063f410c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f8a2a102eee6b9d2496eefac522e35b40dbe322aa0d6eeea5b4fe161afb73867 [INFO] running `Command { std: "docker" "start" "-a" "f8a2a102eee6b9d2496eefac522e35b40dbe322aa0d6eeea5b4fe161afb73867", kill_on_drop: false }` [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling similar v1.3.0 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling serde_yaml v0.8.17 [INFO] [stderr] Compiling insta v1.7.1 [INFO] [stderr] Compiling duplicate_code v0.8.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 6.05s [INFO] running `Command { std: "docker" "inspect" "f8a2a102eee6b9d2496eefac522e35b40dbe322aa0d6eeea5b4fe161afb73867", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8a2a102eee6b9d2496eefac522e35b40dbe322aa0d6eeea5b4fe161afb73867", kill_on_drop: false }` [INFO] [stdout] f8a2a102eee6b9d2496eefac522e35b40dbe322aa0d6eeea5b4fe161afb73867 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9d3a91276436f1be4d674c76d14444fa50b77b63a09684bd9c7b1dd455d63695 [INFO] running `Command { std: "docker" "start" "-a" "9d3a91276436f1be4d674c76d14444fa50b77b63a09684bd9c7b1dd455d63695", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/duplicate_code-9f0e4331367f4a97) [INFO] [stdout] [INFO] [stdout] running 20 tests [INFO] [stdout] test duplicate_detection::tests::test_hashed_files_with_duplicate ... ok [INFO] [stdout] test duplicate_detection::tests::test_hashed_files_with_duplicate_on_different_lines ... ok [INFO] [stdout] test duplicate_detection::tests::test_hashed_files_and_empty_with_duplicate_on_different_lines ... ok [INFO] [stdout] test duplicate_detection::tests::test_empty_hashed_files ... ok [INFO] [stdout] test duplicate_detection::tests::test_hashed_file_with_no_lines ... ok [INFO] [stdout] test duplicate_detection::tests::test_hashed_files_with_duplicate_with_multiple_occurrences ... ok [INFO] [stdout] test duplicate_detection::tests::test_hashed_files_with_no_lines ... ok [INFO] [stdout] test duplicate_detection::tests::test_hashed_files_with_multiple_duplicate_in_different_files ... ok [INFO] [stdout] test model::hashed_file::tests::test_indexed_file_with_duplicate_lines ... ok [INFO] [stdout] test model::hashed_file::tests::test_empty_indexed_files ... ok [INFO] [stdout] test duplicate_detection::tests::test_hashed_files_with_no_duplicate ... ok [INFO] [stdout] test model::hashed_file::tests::test_indexed_file_hashing_computed_correctly ... ok [INFO] [stdout] test model::hashed_file::tests::test_indexed_file_with_no_lines ... ok [INFO] [stdout] test model::indexed_file::tests::test_indexed_file_stores_correct_line_number ... ok [INFO] [stdout] test model::hashed_file::tests::test_indexed_file_with_ignore_line_regex ... ok [INFO] [stdout] test model::indexed_file::tests::test_empty_raw_files ... ok [INFO] [stdout] test duplicate_detection::tests::test_hashed_files_with_ignore_line_regex ... ok [INFO] [stdout] test model::indexed_file::tests::test_indexed_files_consistent_ordering ... ok [INFO] [stdout] test model::indexed_file::tests::test_indexed_file_ignore_line_regex ... ok [INFO] [stdout] test model::indexed_file::tests::test_raw_file_with_no_lines ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 20 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.06s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "9d3a91276436f1be4d674c76d14444fa50b77b63a09684bd9c7b1dd455d63695", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d3a91276436f1be4d674c76d14444fa50b77b63a09684bd9c7b1dd455d63695", kill_on_drop: false }` [INFO] [stdout] 9d3a91276436f1be4d674c76d14444fa50b77b63a09684bd9c7b1dd455d63695