[INFO] fetching crate filecount 0.1.0... [INFO] testing filecount-0.1.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate filecount 0.1.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate filecount 0.1.0 [INFO] finished tweaking crates.io crate filecount 0.1.0 [INFO] tweaked toml for crates.io crate filecount 0.1.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate filecount 0.1.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 39 packages to latest compatible versions [INFO] [stderr] Adding derive_more v0.99.20 (available: v2.1.1) [INFO] [stderr] Adding infer v0.9.0 (available: v0.19.0) [INFO] [stderr] Adding roxmltree v0.15.1 (available: v0.21.1) [INFO] [stderr] Adding zip v0.6.6 (available: v8.5.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded roxmltree v0.15.1 [INFO] [stderr] Downloaded infer v0.9.0 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c53efc2af63d17b4b8f40d46dfe3dd6f61e584d401d0b8ad1864cb81938a7537 [INFO] running `Command { std: "docker" "start" "-a" "c53efc2af63d17b4b8f40d46dfe3dd6f61e584d401d0b8ad1864cb81938a7537", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c53efc2af63d17b4b8f40d46dfe3dd6f61e584d401d0b8ad1864cb81938a7537", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c53efc2af63d17b4b8f40d46dfe3dd6f61e584d401d0b8ad1864cb81938a7537", kill_on_drop: false }` [INFO] [stdout] c53efc2af63d17b4b8f40d46dfe3dd6f61e584d401d0b8ad1864cb81938a7537 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 57ceb9cfac1561bbc0a10afd3d244b5768a9c66327b4def972ac583b91f7c707 [INFO] running `Command { std: "docker" "start" "-a" "57ceb9cfac1561bbc0a10afd3d244b5768a9c66327b4def972ac583b91f7c707", kill_on_drop: false }` [INFO] [stderr] Compiling uuid v1.23.0 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling flate2 v1.1.9 [INFO] [stderr] Compiling xmlparser v0.13.6 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling unicode-segmentation v1.13.2 [INFO] [stderr] Compiling cfb v0.7.3 [INFO] [stderr] Compiling roxmltree v0.15.1 [INFO] [stderr] Compiling zip v0.6.6 [INFO] [stderr] Compiling infer v0.9.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling filecount v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.87s [INFO] running `Command { std: "docker" "inspect" "57ceb9cfac1561bbc0a10afd3d244b5768a9c66327b4def972ac583b91f7c707", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57ceb9cfac1561bbc0a10afd3d244b5768a9c66327b4def972ac583b91f7c707", kill_on_drop: false }` [INFO] [stdout] 57ceb9cfac1561bbc0a10afd3d244b5768a9c66327b4def972ac583b91f7c707 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aa1e48fa4b42e7a58ddc4da3e77d203f7c8724fb16ed2e08550216f851b8fe27 [INFO] running `Command { std: "docker" "start" "-a" "aa1e48fa4b42e7a58ddc4da3e77d203f7c8724fb16ed2e08550216f851b8fe27", kill_on_drop: false }` [INFO] [stderr] Compiling filecount v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.46s [INFO] running `Command { std: "docker" "inspect" "aa1e48fa4b42e7a58ddc4da3e77d203f7c8724fb16ed2e08550216f851b8fe27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa1e48fa4b42e7a58ddc4da3e77d203f7c8724fb16ed2e08550216f851b8fe27", kill_on_drop: false }` [INFO] [stdout] aa1e48fa4b42e7a58ddc4da3e77d203f7c8724fb16ed2e08550216f851b8fe27 [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 47d66e951eab472b1b6f7be2792f0a446fdfa5f9fbb537d83ada911fa7bef5a0 [INFO] running `Command { std: "docker" "start" "-a" "47d66e951eab472b1b6f7be2792f0a446fdfa5f9fbb537d83ada911fa7bef5a0", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/filecount-0c85b1b51892c828) [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 filecount [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/extract.rs - extract::extract (line 72) ... FAILED [INFO] [stdout] test src/memory.rs - memory::HashedMemory::from_tmx (line 69) ... FAILED [INFO] [stdout] test src/analysis.rs - analysis::analyze (line 59) ... FAILED [INFO] [stdout] test src/segmentation.rs - segmentation::hashment (line 28) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/extract.rs - extract::extract (line 72) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `File` in this scope [INFO] [stdout] --> src/extract.rs:73:16 [INFO] [stdout] | [INFO] [stdout] 73 | let mut file = File::open(&path).unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `File` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found built-in attribute `path` [INFO] [stdout] --> src/extract.rs:73:28 [INFO] [stdout] | [INFO] [stdout] 73 | let mut file = File::open(&path).unwrap(); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `extract` in this scope [INFO] [stdout] --> src/extract.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | let texts = extract(ciphertext, &path, ExtractionRules::default()).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 72 + use filecount::extract::extract; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found built-in attribute `path` [INFO] [stdout] --> src/extract.rs:77:34 [INFO] [stdout] | [INFO] [stdout] 77 | let texts = extract(ciphertext, &path, ExtractionRules::default()).unwrap(); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ExtractionRules` in this scope [INFO] [stdout] --> src/extract.rs:77:40 [INFO] [stdout] | [INFO] [stdout] 77 | let texts = extract(ciphertext, &path, ExtractionRules::default()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `ExtractionRules` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 72 + use filecount::extract::ExtractionRules; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/memory.rs - memory::HashedMemory::from_tmx (line 69) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `File` in this scope [INFO] [stdout] --> src/memory.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | let mut memfile = File::open("files/mem.tmx").unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `File` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 69 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `HashedMemory` in this scope [INFO] [stdout] --> src/memory.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | let memory = HashedMemory::from_tmx(&memciphertext).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HashedMemory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 69 + use filecount::memory::HashedMemory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/analysis.rs - analysis::analyze (line 59) stdout ---- [INFO] [stdout] error[E0433]: cannot find type `File` in this scope [INFO] [stdout] --> src/analysis.rs:61:19 [INFO] [stdout] | [INFO] [stdout] 61 | let mut memfile = File::open("files/mem.tmx").unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `File` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 58 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `HashedMemory` in this scope [INFO] [stdout] --> src/analysis.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 65 | let mem = HashedMemory::from_tmx(&memciphertext).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `HashedMemory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 58 + use filecount::memory::HashedMemory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `File` in this scope [INFO] [stdout] --> src/analysis.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 67 | let mut file = File::open(&path).unwrap(); [INFO] [stdout] | ^^^^ use of undeclared type `File` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 58 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found built-in attribute `path` [INFO] [stdout] --> src/analysis.rs:67:28 [INFO] [stdout] | [INFO] [stdout] 67 | let mut file = File::open(&path).unwrap(); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `extract` in this scope [INFO] [stdout] --> src/analysis.rs:71:13 [INFO] [stdout] | [INFO] [stdout] 71 | let texts = extract(ciphertext, &path, ExtractionRules::default()).unwrap(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 58 + use filecount::extract::extract; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found built-in attribute `path` [INFO] [stdout] --> src/analysis.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | let texts = extract(ciphertext, &path, ExtractionRules::default()).unwrap(); [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ExtractionRules` in this scope [INFO] [stdout] --> src/analysis.rs:71:40 [INFO] [stdout] | [INFO] [stdout] 71 | let texts = extract(ciphertext, &path, ExtractionRules::default()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `ExtractionRules` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 58 + use filecount::extract::ExtractionRules; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `UnicodeRules` in this scope [INFO] [stdout] --> src/analysis.rs:72:64 [INFO] [stdout] | [INFO] [stdout] 72 | let hashments = filecount::segmentation::hashment_many(texts, &UnicodeRules); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit struct [INFO] [stdout] | [INFO] [stdout] 58 + use filecount::unicode::UnicodeRules; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `analyze` in this scope [INFO] [stdout] --> src/analysis.rs:73:16 [INFO] [stdout] | [INFO] [stdout] 73 | let analysis = analyze(hashments, &mem); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 58 + use filecount::analysis::analyze; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/analysis.rs - analysis::analyze (line 59) [INFO] [stdout] src/extract.rs - extract::extract (line 72) [INFO] [stdout] src/memory.rs - memory::HashedMemory::from_tmx (line 69) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.56s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "47d66e951eab472b1b6f7be2792f0a446fdfa5f9fbb537d83ada911fa7bef5a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47d66e951eab472b1b6f7be2792f0a446fdfa5f9fbb537d83ada911fa7bef5a0", kill_on_drop: false }` [INFO] [stdout] 47d66e951eab472b1b6f7be2792f0a446fdfa5f9fbb537d83ada911fa7bef5a0