[INFO] cloning repository https://github.com/wjzz/newtype-pattern-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wjzz/newtype-pattern-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwjzz%2Fnewtype-pattern-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwjzz%2Fnewtype-pattern-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f83fc049a7cddf7f93cb150314f161d22c9ea8da [INFO] checking wjzz/newtype-pattern-example against master#ba7e63b63871a429533c189adbfb1d9a6337e000 for pr-135331-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwjzz%2Fnewtype-pattern-example" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/wjzz/newtype-pattern-example [INFO] finished tweaking git repo https://github.com/wjzz/newtype-pattern-example [INFO] tweaked toml for git repo https://github.com/wjzz/newtype-pattern-example written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/wjzz/newtype-pattern-example on toolchain ba7e63b63871a429533c189adbfb1d9a6337e000 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ba7e63b63871a429533c189adbfb1d9a6337e000" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/wjzz/newtype-pattern-example already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ba7e63b63871a429533c189adbfb1d9a6337e000" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+ba7e63b63871a429533c189adbfb1d9a6337e000" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9486316a7acd05bb29f06e41a0c4bc616f95199b3c946d3e23f295f4bcc28285 [INFO] running `Command { std: "docker" "start" "-a" "9486316a7acd05bb29f06e41a0c4bc616f95199b3c946d3e23f295f4bcc28285", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9486316a7acd05bb29f06e41a0c4bc616f95199b3c946d3e23f295f4bcc28285", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9486316a7acd05bb29f06e41a0c4bc616f95199b3c946d3e23f295f4bcc28285", kill_on_drop: false }` [INFO] [stdout] 9486316a7acd05bb29f06e41a0c4bc616f95199b3c946d3e23f295f4bcc28285 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+ba7e63b63871a429533c189adbfb1d9a6337e000" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d526709d657e2edb6679192b7f2ab16c29912fe11493aa9359e9fdfcf130d092 [INFO] running `Command { std: "docker" "start" "-a" "d526709d657e2edb6679192b7f2ab16c29912fe11493aa9359e9fdfcf130d092", kill_on_drop: false }` [INFO] [stderr] Checking warm-up v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/main.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let user = infra::RegisterMailMagazineCommand { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FirstName` is never constructed [INFO] [stdout] --> src/domain.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct FirstName(pub NonEmptyString); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LastName` is never constructed [INFO] [stdout] --> src/domain.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct LastName(pub NonEmptyString); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Email` is never constructed [INFO] [stdout] --> src/domain.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Email { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_from_string` is never used [INFO] [stdout] --> src/domain.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Email { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 12 | pub fn try_from_string(email: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RegisteredUser` is never constructed [INFO] [stdout] --> src/domain.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct RegisteredUser { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `first_name`, `last_name`, and `email` are never read [INFO] [stdout] --> src/infra.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct RegisterMailMagazineCommand { [INFO] [stdout] | --------------------------- fields in this struct [INFO] [stdout] 5 | pub first_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 6 | pub last_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RegistrationError` is never used [INFO] [stdout] --> src/usecase.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum RegistrationError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `try_register_use` is never used [INFO] [stdout] --> src/usecase.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn try_register_use( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NonEmptyString` is never constructed [INFO] [stdout] --> src/util.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct NonEmptyString(String); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_from_string` is never used [INFO] [stdout] --> src/util.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl NonEmptyString { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 6 | pub fn try_from_string(first_name: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `user` [INFO] [stdout] --> src/main.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let user = infra::RegisterMailMagazineCommand { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_user` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FirstName` is never constructed [INFO] [stdout] --> src/domain.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct FirstName(pub NonEmptyString); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LastName` is never constructed [INFO] [stdout] --> src/domain.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct LastName(pub NonEmptyString); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Email` is never constructed [INFO] [stdout] --> src/domain.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Email { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_from_string` is never used [INFO] [stdout] --> src/domain.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Email { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 12 | pub fn try_from_string(email: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RegisteredUser` is never constructed [INFO] [stdout] --> src/domain.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub struct RegisteredUser { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `first_name`, `last_name`, and `email` are never read [INFO] [stdout] --> src/infra.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct RegisterMailMagazineCommand { [INFO] [stdout] | --------------------------- fields in this struct [INFO] [stdout] 5 | pub first_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 6 | pub last_name: String, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 7 | pub email: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RegistrationError` is never used [INFO] [stdout] --> src/usecase.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum RegistrationError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `try_register_use` is never used [INFO] [stdout] --> src/usecase.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn try_register_use( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NonEmptyString` is never constructed [INFO] [stdout] --> src/util.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct NonEmptyString(String); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `try_from_string` is never used [INFO] [stdout] --> src/util.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl NonEmptyString { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 6 | pub fn try_from_string(first_name: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] running `Command { std: "docker" "inspect" "d526709d657e2edb6679192b7f2ab16c29912fe11493aa9359e9fdfcf130d092", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d526709d657e2edb6679192b7f2ab16c29912fe11493aa9359e9fdfcf130d092", kill_on_drop: false }` [INFO] [stdout] d526709d657e2edb6679192b7f2ab16c29912fe11493aa9359e9fdfcf130d092