[INFO] cloning repository https://github.com/yentzu-wang/toml-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yentzu-wang/toml-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyentzu-wang%2Ftoml-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyentzu-wang%2Ftoml-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0b706238a02cf19cbb54630dc0e80237a4cd2068 [INFO] testing yentzu-wang/toml-demo against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyentzu-wang%2Ftoml-demo" "/workspace/builds/worker-22/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-22/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yentzu-wang/toml-demo on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yentzu-wang/toml-demo [INFO] finished tweaking git repo https://github.com/yentzu-wang/toml-demo [INFO] tweaked toml for git repo https://github.com/yentzu-wang/toml-demo written to /workspace/builds/worker-22/source/Cargo.toml [INFO] crate git repo https://github.com/yentzu-wang/toml-demo already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5134e7ca1e7c85e36c96c1962b7e40ed91209df972d8faf3e5d2a29ffae6a4c4 [INFO] running `Command { std: "docker" "start" "-a" "5134e7ca1e7c85e36c96c1962b7e40ed91209df972d8faf3e5d2a29ffae6a4c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5134e7ca1e7c85e36c96c1962b7e40ed91209df972d8faf3e5d2a29ffae6a4c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5134e7ca1e7c85e36c96c1962b7e40ed91209df972d8faf3e5d2a29ffae6a4c4", kill_on_drop: false }` [INFO] [stdout] 5134e7ca1e7c85e36c96c1962b7e40ed91209df972d8faf3e5d2a29ffae6a4c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cec182846e152f838a2c0620e8009801b7027ca0153ace83223ea25efe98df99 [INFO] running `Command { std: "docker" "start" "-a" "cec182846e152f838a2c0620e8009801b7027ca0153ace83223ea25efe98df99", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling toml-demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `kv_pairs` [INFO] [stdout] --> src/conf/poem_config.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | let kv_pairs = match value.as_table() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kv_pairs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/conf/poem_config.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut config = PoemConfig { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/conf/poem_config.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let mut config = PoemConfig::active_default_from(Some(filename.as_ref()))?; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `ALL` [INFO] [stdout] --> src/environment.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) const ALL: [Environment; 3] = [Development, Staging, Production]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `VALID` [INFO] [stdout] --> src/environment.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) const VALID: &'static str = "development, staging, production"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `adapter` [INFO] [stdout] --> src/conf/basic_config.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub(crate) adapter: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Database` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/conf/basic_config.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `db_name` [INFO] [stdout] --> src/conf/basic_config.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | pub(crate) db_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Database` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/conf/basic_config.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pool` [INFO] [stdout] --> src/conf/basic_config.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub(crate) pool: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Database` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/conf/basic_config.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_mut` [INFO] [stdout] --> src/conf/poem_config.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn get_mut(&mut self, env: Environment) -> &mut BasicConfig { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.36s [INFO] running `Command { std: "docker" "inspect" "cec182846e152f838a2c0620e8009801b7027ca0153ace83223ea25efe98df99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cec182846e152f838a2c0620e8009801b7027ca0153ace83223ea25efe98df99", kill_on_drop: false }` [INFO] [stdout] cec182846e152f838a2c0620e8009801b7027ca0153ace83223ea25efe98df99 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 228cfa6ea04b55137e932151218fa63ed3898cff865f3ec2b8f1408a98918b69 [INFO] running `Command { std: "docker" "start" "-a" "228cfa6ea04b55137e932151218fa63ed3898cff865f3ec2b8f1408a98918b69", kill_on_drop: false }` [INFO] [stdout] warning: unused variable: `kv_pairs` [INFO] [stdout] --> src/conf/poem_config.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | let kv_pairs = match value.as_table() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kv_pairs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/conf/poem_config.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut config = PoemConfig { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/conf/poem_config.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let mut config = PoemConfig::active_default_from(Some(filename.as_ref()))?; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `ALL` [INFO] [stdout] --> src/environment.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) const ALL: [Environment; 3] = [Development, Staging, Production]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `VALID` [INFO] [stdout] --> src/environment.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) const VALID: &'static str = "development, staging, production"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `adapter` [INFO] [stdout] --> src/conf/basic_config.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub(crate) adapter: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Database` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/conf/basic_config.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `db_name` [INFO] [stdout] --> src/conf/basic_config.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | pub(crate) db_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Database` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/conf/basic_config.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pool` [INFO] [stdout] --> src/conf/basic_config.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub(crate) pool: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Database` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/conf/basic_config.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_mut` [INFO] [stdout] --> src/conf/poem_config.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn get_mut(&mut self, env: Environment) -> &mut BasicConfig { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling toml-demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `kv_pairs` [INFO] [stdout] --> src/conf/poem_config.rs:99:17 [INFO] [stdout] | [INFO] [stdout] 99 | let kv_pairs = match value.as_table() { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kv_pairs` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/conf/poem_config.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut config = PoemConfig { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/conf/poem_config.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let mut config = PoemConfig::active_default_from(Some(filename.as_ref()))?; [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `ALL` [INFO] [stdout] --> src/environment.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | pub(crate) const ALL: [Environment; 3] = [Development, Staging, Production]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant is never used: `VALID` [INFO] [stdout] --> src/environment.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub(crate) const VALID: &'static str = "development, staging, production"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `adapter` [INFO] [stdout] --> src/conf/basic_config.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | pub(crate) adapter: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Database` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/conf/basic_config.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `db_name` [INFO] [stdout] --> src/conf/basic_config.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | pub(crate) db_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Database` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/conf/basic_config.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `pool` [INFO] [stdout] --> src/conf/basic_config.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | pub(crate) pool: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Database` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/conf/basic_config.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 76 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_mut` [INFO] [stdout] --> src/conf/poem_config.rs:44:8 [INFO] [stdout] | [INFO] [stdout] 44 | fn get_mut(&mut self, env: Environment) -> &mut BasicConfig { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.32s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/toml_demo-9b52032e4ab05dc3) [INFO] [stderr] Executable unittests bin/main.rs (/opt/rustwide/target/debug/deps/main-de124cd4c60328f1) [INFO] running `Command { std: "docker" "inspect" "228cfa6ea04b55137e932151218fa63ed3898cff865f3ec2b8f1408a98918b69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "228cfa6ea04b55137e932151218fa63ed3898cff865f3ec2b8f1408a98918b69", kill_on_drop: false }` [INFO] [stdout] 228cfa6ea04b55137e932151218fa63ed3898cff865f3ec2b8f1408a98918b69 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b8b56fcde5fb4886149cca34ba4c53f2fa288c137526203f14076a29c90e039d [INFO] running `Command { std: "docker" "start" "-a" "b8b56fcde5fb4886149cca34ba4c53f2fa288c137526203f14076a29c90e039d", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `kv_pairs` [INFO] [stderr] --> src/conf/poem_config.rs:99:17 [INFO] [stderr] | [INFO] [stderr] 99 | let kv_pairs = match value.as_table() { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_kv_pairs` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/conf/poem_config.rs:63:13 [INFO] [stderr] | [INFO] [stderr] 63 | let mut config = PoemConfig { [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/conf/poem_config.rs:94:13 [INFO] [stderr] | [INFO] [stderr] 94 | let mut config = PoemConfig::active_default_from(Some(filename.as_ref()))?; [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `ALL` [INFO] [stderr] --> src/environment.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | pub(crate) const ALL: [Environment; 3] = [Development, Staging, Production]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated constant is never used: `VALID` [INFO] [stderr] --> src/environment.rs:25:5 [INFO] [stderr] | [INFO] [stderr] 25 | pub(crate) const VALID: &'static str = "development, staging, production"; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never read: `adapter` [INFO] [stderr] --> src/conf/basic_config.rs:78:5 [INFO] [stderr] | [INFO] [stderr] 78 | pub(crate) adapter: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Database` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/conf/basic_config.rs:76:10 [INFO] [stderr] | [INFO] [stderr] 76 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `db_name` [INFO] [stderr] --> src/conf/basic_config.rs:79:5 [INFO] [stderr] | [INFO] [stderr] 79 | pub(crate) db_name: String, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Database` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/conf/basic_config.rs:76:10 [INFO] [stderr] | [INFO] [stderr] 76 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: field is never read: `pool` [INFO] [stderr] --> src/conf/basic_config.rs:80:5 [INFO] [stderr] | [INFO] [stderr] 80 | pub(crate) pool: u32, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `Database` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] --> src/conf/basic_config.rs:76:10 [INFO] [stderr] | [INFO] [stderr] 76 | #[derive(Debug)] [INFO] [stderr] | ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: associated function is never used: `get_mut` [INFO] [stderr] --> src/conf/poem_config.rs:44:8 [INFO] [stderr] | [INFO] [stderr] 44 | fn get_mut(&mut self, env: Environment) -> &mut BasicConfig { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `toml-demo` (lib) generated 9 warnings [INFO] [stdout] [INFO] [stderr] warning: `toml-demo` (lib test) generated 9 warnings (9 duplicates) [INFO] [stdout] running 0 tests [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/toml_demo-9b52032e4ab05dc3) [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] Running unittests bin/main.rs (/opt/rustwide/target/debug/deps/main-de124cd4c60328f1) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Doc-tests toml-demo [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 1 test [INFO] [stdout] test src/environment.rs - environment::Environment::from_str (line 60) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/environment.rs - environment::Environment::from_str (line 60) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Environment` [INFO] [stdout] --> src/environment.rs:62:26 [INFO] [stdout] | [INFO] [stdout] 4 | assert_eq!(env.unwrap(), Environment::Production); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Environment` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Environment` [INFO] [stdout] --> src/environment.rs:65:26 [INFO] [stdout] | [INFO] [stdout] 7 | assert_eq!(env.unwrap(), Environment::Production); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Environment` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Environment` in this scope [INFO] [stdout] --> src/environment.rs:61:23 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_environment_rs_60_0() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 3 | let env = "p".parse::(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Environment` in this scope [INFO] [stdout] --> src/environment.rs:64:26 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_environment_rs_60_0() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 6 | let env = "prod".parse::(); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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] [INFO] [stdout] failures: [INFO] [stdout] src/environment.rs - environment::Environment::from_str (line 60) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "b8b56fcde5fb4886149cca34ba4c53f2fa288c137526203f14076a29c90e039d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8b56fcde5fb4886149cca34ba4c53f2fa288c137526203f14076a29c90e039d", kill_on_drop: false }` [INFO] [stdout] b8b56fcde5fb4886149cca34ba4c53f2fa288c137526203f14076a29c90e039d