[INFO] fetching crate filecount 0.1.0... [INFO] testing filecount-0.1.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate filecount 0.1.0 into /workspace/builds/worker-7-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-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate filecount 0.1.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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.20.0) [INFO] [stderr] Adding zip v0.6.6 (available: v4.6.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded infer v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 61dc24a33848976aaf52a7a6c9dbe38324fc6c7cf2c9c7563043ff99c9954305 [INFO] running `Command { std: "docker" "start" "-a" "61dc24a33848976aaf52a7a6c9dbe38324fc6c7cf2c9c7563043ff99c9954305", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "61dc24a33848976aaf52a7a6c9dbe38324fc6c7cf2c9c7563043ff99c9954305", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61dc24a33848976aaf52a7a6c9dbe38324fc6c7cf2c9c7563043ff99c9954305", kill_on_drop: false }` [INFO] [stdout] 61dc24a33848976aaf52a7a6c9dbe38324fc6c7cf2c9c7563043ff99c9954305 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d7d7cc55cc90fbdbe0644bece8d09590e820defc7848c1a5181c0cd36dcb3a0f [INFO] running `Command { std: "docker" "start" "-a" "d7d7cc55cc90fbdbe0644bece8d09590e820defc7848c1a5181c0cd36dcb3a0f", kill_on_drop: false }` [INFO] [stderr] Compiling uuid v1.18.0 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling xmlparser v0.13.6 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling flate2 v1.1.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.219 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling filecount v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.58s [INFO] running `Command { std: "docker" "inspect" "d7d7cc55cc90fbdbe0644bece8d09590e820defc7848c1a5181c0cd36dcb3a0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d7d7cc55cc90fbdbe0644bece8d09590e820defc7848c1a5181c0cd36dcb3a0f", kill_on_drop: false }` [INFO] [stdout] d7d7cc55cc90fbdbe0644bece8d09590e820defc7848c1a5181c0cd36dcb3a0f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 52b4b5da59d74b9d460cf729ed2a395124e646d57fdf070a79e2ccb5a290065e [INFO] running `Command { std: "docker" "start" "-a" "52b4b5da59d74b9d460cf729ed2a395124e646d57fdf070a79e2ccb5a290065e", 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.57s [INFO] running `Command { std: "docker" "inspect" "52b4b5da59d74b9d460cf729ed2a395124e646d57fdf070a79e2ccb5a290065e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52b4b5da59d74b9d460cf729ed2a395124e646d57fdf070a79e2ccb5a290065e", kill_on_drop: false }` [INFO] [stdout] 52b4b5da59d74b9d460cf729ed2a395124e646d57fdf070a79e2ccb5a290065e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f3c76bbb708b41d6400a6617c79c357edd908a4d445b9e05272a1cd5834796fa [INFO] running `Command { std: "docker" "start" "-a" "f3c76bbb708b41d6400a6617c79c357edd908a4d445b9e05272a1cd5834796fa", 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-61c7dac2dd85d375) [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]: failed to resolve: use of undeclared type `File` [INFO] [stdout] --> src/extract.rs:73:16 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 3 | 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] 7 | 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] 2 + 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] 7 | 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] 7 | 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] 2 + 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]: failed to resolve: use of undeclared type `File` [INFO] [stdout] --> src/memory.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 2 + 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] 7 | 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] 2 + 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] 5 | 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] 2 + 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] 9 | 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] 2 + 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] 11 | 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] 2 + 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] 11 | 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] 15 | 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] 2 + 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] 15 | 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] 15 | 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] 2 + 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] 16 | 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] 2 + 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] 17 | 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] 2 + 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.28s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "f3c76bbb708b41d6400a6617c79c357edd908a4d445b9e05272a1cd5834796fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3c76bbb708b41d6400a6617c79c357edd908a4d445b9e05272a1cd5834796fa", kill_on_drop: false }` [INFO] [stdout] f3c76bbb708b41d6400a6617c79c357edd908a4d445b9e05272a1cd5834796fa