[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 1.60.0 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 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "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" "+1.60.0" "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" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 58ea0a6ac6fa5a4cdd982d4683748986b340b844a9af79bb861c737704fe5a09 [INFO] running `Command { std: "docker" "start" "-a" "58ea0a6ac6fa5a4cdd982d4683748986b340b844a9af79bb861c737704fe5a09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "58ea0a6ac6fa5a4cdd982d4683748986b340b844a9af79bb861c737704fe5a09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58ea0a6ac6fa5a4cdd982d4683748986b340b844a9af79bb861c737704fe5a09", kill_on_drop: false }` [INFO] [stdout] 58ea0a6ac6fa5a4cdd982d4683748986b340b844a9af79bb861c737704fe5a09 [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" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d2d7ce1469a9638c2dc500beba89f228559d3623dac840548dcb42e30610081f [INFO] running `Command { std: "docker" "start" "-a" "d2d7ce1469a9638c2dc500beba89f228559d3623dac840548dcb42e30610081f", 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 8.39s [INFO] running `Command { std: "docker" "inspect" "d2d7ce1469a9638c2dc500beba89f228559d3623dac840548dcb42e30610081f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d2d7ce1469a9638c2dc500beba89f228559d3623dac840548dcb42e30610081f", kill_on_drop: false }` [INFO] [stdout] d2d7ce1469a9638c2dc500beba89f228559d3623dac840548dcb42e30610081f [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" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 32baa382fc1da381ff33698301b5c161abe6e546b1ce2c5235c98942ee6416c4 [INFO] running `Command { std: "docker" "start" "-a" "32baa382fc1da381ff33698301b5c161abe6e546b1ce2c5235c98942ee6416c4", 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.33s [INFO] running `Command { std: "docker" "inspect" "32baa382fc1da381ff33698301b5c161abe6e546b1ce2c5235c98942ee6416c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32baa382fc1da381ff33698301b5c161abe6e546b1ce2c5235c98942ee6416c4", kill_on_drop: false }` [INFO] [stdout] 32baa382fc1da381ff33698301b5c161abe6e546b1ce2c5235c98942ee6416c4 [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" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9a2e360c163496b6ab8460df20e6d248710e554968f9ce577bccf608fa4b97af [INFO] running `Command { std: "docker" "start" "-a" "9a2e360c163496b6ab8460df20e6d248710e554968f9ce577bccf608fa4b97af", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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] [stderr] warning: `toml-demo` (lib test) generated 9 warnings (9 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.12s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/toml_demo-befd7cedc9a4abfc) [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] Running unittests (/opt/rustwide/target/debug/deps/main-a4b17f97f3b3b94d) [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 toml-demo [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.07s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "9a2e360c163496b6ab8460df20e6d248710e554968f9ce577bccf608fa4b97af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a2e360c163496b6ab8460df20e6d248710e554968f9ce577bccf608fa4b97af", kill_on_drop: false }` [INFO] [stdout] 9a2e360c163496b6ab8460df20e6d248710e554968f9ce577bccf608fa4b97af