[INFO] fetching crate filecount 0.1.0... [INFO] testing filecount-0.1.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate filecount 0.1.0 into /workspace/builds/worker-7-tc2/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-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate filecount 0.1.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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.0.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: v6.0.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0ee05559ffaa80259972b9374792dee700a0dd9df129555ff4f3ceeb04abc9ed [INFO] running `Command { std: "docker" "start" "-a" "0ee05559ffaa80259972b9374792dee700a0dd9df129555ff4f3ceeb04abc9ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0ee05559ffaa80259972b9374792dee700a0dd9df129555ff4f3ceeb04abc9ed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ee05559ffaa80259972b9374792dee700a0dd9df129555ff4f3ceeb04abc9ed", kill_on_drop: false }` [INFO] [stdout] 0ee05559ffaa80259972b9374792dee700a0dd9df129555ff4f3ceeb04abc9ed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 535073a00859f3cb47351533e045e3385940409c7b06e8127e904ebebf9a2523 [INFO] running `Command { std: "docker" "start" "-a" "535073a00859f3cb47351533e045e3385940409c7b06e8127e904ebebf9a2523", kill_on_drop: false }` [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling xmlparser v0.13.6 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling zip v0.6.6 [INFO] [stderr] Compiling roxmltree v0.15.1 [INFO] [stderr] Compiling cfb v0.7.3 [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 6.42s [INFO] running `Command { std: "docker" "inspect" "535073a00859f3cb47351533e045e3385940409c7b06e8127e904ebebf9a2523", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "535073a00859f3cb47351533e045e3385940409c7b06e8127e904ebebf9a2523", kill_on_drop: false }` [INFO] [stdout] 535073a00859f3cb47351533e045e3385940409c7b06e8127e904ebebf9a2523 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1e6850c1a47c111ddc79d3fed43a083676330f7432a46895a063bef16ba3fc93 [INFO] running `Command { std: "docker" "start" "-a" "1e6850c1a47c111ddc79d3fed43a083676330f7432a46895a063bef16ba3fc93", 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.49s [INFO] running `Command { std: "docker" "inspect" "1e6850c1a47c111ddc79d3fed43a083676330f7432a46895a063bef16ba3fc93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e6850c1a47c111ddc79d3fed43a083676330f7432a46895a063bef16ba3fc93", kill_on_drop: false }` [INFO] [stdout] 1e6850c1a47c111ddc79d3fed43a083676330f7432a46895a063bef16ba3fc93 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] eaac12740116357d89b19cc4c244db707f0b728ccba64ffb1f90e0cd0068b748 [INFO] running `Command { std: "docker" "start" "-a" "eaac12740116357d89b19cc4c244db707f0b728ccba64ffb1f90e0cd0068b748", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/filecount-f614cb9d1c7abc94) [INFO] [stderr] Doc-tests filecount [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] [stdout] [INFO] [stdout] running 4 tests [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/extract.rs - extract::extract (line 72) ... FAILED [INFO] [stdout] test src/segmentation.rs - segmentation::hashment (line 28) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/memory.rs - memory::HashedMemory::from_tmx (line 69) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File` [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]: failed to resolve: use of undeclared type `HashedMemory` [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]: failed to resolve: use of undeclared type `File` [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]: failed to resolve: use of undeclared type `HashedMemory` [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]: failed to resolve: use of undeclared type `File` [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]: failed to resolve: use of undeclared type `ExtractionRules` [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] ---- src/extract.rs - extract::extract (line 72) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File` [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]: failed to resolve: use of undeclared type `ExtractionRules` [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] [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.62s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "eaac12740116357d89b19cc4c244db707f0b728ccba64ffb1f90e0cd0068b748", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eaac12740116357d89b19cc4c244db707f0b728ccba64ffb1f90e0cd0068b748", kill_on_drop: false }` [INFO] [stdout] eaac12740116357d89b19cc4c244db707f0b728ccba64ffb1f90e0cd0068b748