[INFO] fetching crate parser_configuration 0.1.0... [INFO] testing parser_configuration-0.1.0 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate parser_configuration 0.1.0 into /workspace/builds/worker-5-tc1/source [INFO] started tweaking crates.io crate parser_configuration 0.1.0 [INFO] finished tweaking crates.io crate parser_configuration 0.1.0 [INFO] tweaked toml for crates.io crate parser_configuration 0.1.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate parser_configuration 0.1.0 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] baa4c8428cbdc2f2c7dc6bf837a65fc15362ea8aed2be5c425fe3722dbb32857 [INFO] running `Command { std: "docker" "start" "-a" "baa4c8428cbdc2f2c7dc6bf837a65fc15362ea8aed2be5c425fe3722dbb32857", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "baa4c8428cbdc2f2c7dc6bf837a65fc15362ea8aed2be5c425fe3722dbb32857", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "baa4c8428cbdc2f2c7dc6bf837a65fc15362ea8aed2be5c425fe3722dbb32857", kill_on_drop: false }` [INFO] [stdout] baa4c8428cbdc2f2c7dc6bf837a65fc15362ea8aed2be5c425fe3722dbb32857 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cf1758a8231e5377e8f34dc76f943cb5a2f3c3d1238dfcef120d36e2ce8bcd87 [INFO] running `Command { std: "docker" "start" "-a" "cf1758a8231e5377e8f34dc76f943cb5a2f3c3d1238dfcef120d36e2ce8bcd87", kill_on_drop: false }` [INFO] [stderr] Compiling parser_configuration v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `VaultConfiguration` is never constructed [INFO] [stdout] --> src/lib.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct VaultConfiguration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_val` are never used [INFO] [stdout] --> src/lib.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 11 | impl VaultConfiguration { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn new(name_key_path: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn get_val(&self, name: &str) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_map` is never used [INFO] [stdout] --> src/lib.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn get_map(path: &str) -> HashMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_text_to_map` is never used [INFO] [stdout] --> src/lib.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn parse_text_to_map(array_text: Lines) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] running `Command { std: "docker" "inspect" "cf1758a8231e5377e8f34dc76f943cb5a2f3c3d1238dfcef120d36e2ce8bcd87", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf1758a8231e5377e8f34dc76f943cb5a2f3c3d1238dfcef120d36e2ce8bcd87", kill_on_drop: false }` [INFO] [stdout] cf1758a8231e5377e8f34dc76f943cb5a2f3c3d1238dfcef120d36e2ce8bcd87 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 01879b668cd792a29d36b6008f70906c4885286d503408bc00384fa1e3eebdfc [INFO] running `Command { std: "docker" "start" "-a" "01879b668cd792a29d36b6008f70906c4885286d503408bc00384fa1e3eebdfc", kill_on_drop: false }` [INFO] [stdout] warning: struct `VaultConfiguration` is never constructed [INFO] [stdout] --> src/lib.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct VaultConfiguration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_val` are never used [INFO] [stdout] --> src/lib.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 11 | impl VaultConfiguration { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn new(name_key_path: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn get_val(&self, name: &str) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_map` is never used [INFO] [stdout] --> src/lib.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn get_map(path: &str) -> HashMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_text_to_map` is never used [INFO] [stdout] --> src/lib.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn parse_text_to_map(array_text: Lines) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling parser_configuration v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `VaultConfiguration` is never constructed [INFO] [stdout] --> src/lib.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct VaultConfiguration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `get_val` are never used [INFO] [stdout] --> src/lib.rs:20:16 [INFO] [stdout] | [INFO] [stdout] 11 | impl VaultConfiguration { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 20 | pub fn new(name_key_path: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn get_val(&self, name: &str) -> String { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_map` is never used [INFO] [stdout] --> src/lib.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | fn get_map(path: &str) -> HashMap { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_text_to_map` is never used [INFO] [stdout] --> src/lib.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn parse_text_to_map(array_text: Lines) -> HashMap { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.31s [INFO] running `Command { std: "docker" "inspect" "01879b668cd792a29d36b6008f70906c4885286d503408bc00384fa1e3eebdfc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01879b668cd792a29d36b6008f70906c4885286d503408bc00384fa1e3eebdfc", kill_on_drop: false }` [INFO] [stdout] 01879b668cd792a29d36b6008f70906c4885286d503408bc00384fa1e3eebdfc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] fcbd3c3e5cd2fdddd5e5d462d088b9168540c5b9f751431d514fa18d3e18e5c7 [INFO] running `Command { std: "docker" "start" "-a" "fcbd3c3e5cd2fdddd5e5d462d088b9168540c5b9f751431d514fa18d3e18e5c7", kill_on_drop: false }` [INFO] [stderr] warning: struct `VaultConfiguration` is never constructed [INFO] [stderr] --> src/lib.rs:7:16 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct VaultConfiguration { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `new` and `get_val` are never used [INFO] [stderr] --> src/lib.rs:20:16 [INFO] [stderr] | [INFO] [stderr] 11 | impl VaultConfiguration { [INFO] [stderr] | ----------------------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 20 | pub fn new(name_key_path: &str) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 42 | pub fn get_val(&self, name: &str) -> String { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_map` is never used [INFO] [stderr] --> src/lib.rs:50:8 [INFO] [stderr] | [INFO] [stderr] 50 | fn get_map(path: &str) -> HashMap { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_text_to_map` is never used [INFO] [stderr] --> src/lib.rs:54:8 [INFO] [stderr] | [INFO] [stderr] 54 | fn parse_text_to_map(array_text: Lines) -> HashMap { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `parser_configuration` (lib) generated 4 warnings [INFO] [stderr] warning: `parser_configuration` (lib test) generated 4 warnings (4 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/parser_configuration-8ab1e172a6f7af52) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stderr] Doc-tests parser_configuration [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 2 tests [INFO] [stdout] test src/lib.rs - parser_configuration::VaultConfiguration::new (line 17) ... FAILED [INFO] [stdout] test src/lib.rs - parser_configuration::VaultConfiguration::get_val (line 32) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - parser_configuration::VaultConfiguration::new (line 17) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `VaultConfiguration` in this scope [INFO] [stdout] --> src/lib.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 3 | let VAULT_CONF: VaultConfiguration = VaultConfiguration::new("PATH_TO_FILE"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VaultConfiguration` [INFO] [stdout] --> src/lib.rs:18:38 [INFO] [stdout] | [INFO] [stdout] 3 | let VAULT_CONF: VaultConfiguration = VaultConfiguration::new("PATH_TO_FILE"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `VaultConfiguration` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - parser_configuration::VaultConfiguration::get_val (line 32) stdout ---- [INFO] [stdout] error: expected item, found keyword `let` [INFO] [stdout] --> src/lib.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 4 | let mut config = VaultConfiguration{map: HashMap::new()} [INFO] [stdout] | ^^^ `let` cannot be used for global variables [INFO] [stdout] | [INFO] [stdout] = help: consider using `static` and a `Mutex` instead of `let mut` [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - parser_configuration::VaultConfiguration::get_val (line 32) [INFO] [stdout] src/lib.rs - parser_configuration::VaultConfiguration::new (line 17) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "fcbd3c3e5cd2fdddd5e5d462d088b9168540c5b9f751431d514fa18d3e18e5c7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fcbd3c3e5cd2fdddd5e5d462d088b9168540c5b9f751431d514fa18d3e18e5c7", kill_on_drop: false }` [INFO] [stdout] fcbd3c3e5cd2fdddd5e5d462d088b9168540c5b9f751431d514fa18d3e18e5c7