[INFO] cloning repository https://github.com/Kochiyama/tdd-menu-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Kochiyama/tdd-menu-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKochiyama%2Ftdd-menu-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKochiyama%2Ftdd-menu-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8c29b7e83bdd7fa8de451271c02feb33a368f849 [INFO] checking Kochiyama/tdd-menu-api/8c29b7e83bdd7fa8de451271c02feb33a368f849 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKochiyama%2Ftdd-menu-api" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Kochiyama/tdd-menu-api on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Kochiyama/tdd-menu-api [INFO] finished tweaking git repo https://github.com/Kochiyama/tdd-menu-api [INFO] tweaked toml for git repo https://github.com/Kochiyama/tdd-menu-api written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Kochiyama/tdd-menu-api 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "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-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 25d56653cbb3d5bbcbf82048d7ea5ab2b8747eb83e9d1af2b8e89da52e20ad44 [INFO] running `Command { std: "docker" "start" "-a" "25d56653cbb3d5bbcbf82048d7ea5ab2b8747eb83e9d1af2b8e89da52e20ad44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "25d56653cbb3d5bbcbf82048d7ea5ab2b8747eb83e9d1af2b8e89da52e20ad44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25d56653cbb3d5bbcbf82048d7ea5ab2b8747eb83e9d1af2b8e89da52e20ad44", kill_on_drop: false }` [INFO] [stdout] 25d56653cbb3d5bbcbf82048d7ea5ab2b8747eb83e9d1af2b8e89da52e20ad44 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac6decd0fbf26e0134efafdfacac935a3d4bf30fab01691a24e8fbe40ad5a475 [INFO] running `Command { std: "docker" "start" "-a" "ac6decd0fbf26e0134efafdfacac935a3d4bf30fab01691a24e8fbe40ad5a475", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking regex-syntax v0.8.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking predicates-core v1.0.6 [INFO] [stderr] Checking termtree v0.4.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking difflib v0.4.0 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking downcast v0.11.0 [INFO] [stderr] Checking fragile v2.0.0 [INFO] [stderr] Checking tdd_menu_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/infra/database/banners_repository.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | fn create_banner(&self, file_name: String) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/business/models/banner.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Banner { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 8 | pub fn new(uuid: String, filename: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/data/use_cases/add_banner_use_case.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl<'a> AddBannerUseCase<'a> { [INFO] [stdout] | ----------------------------- associated function in this implementation [INFO] [stdout] 11 | fn new(add_banner_repository: &'a dyn AddBannerRepository) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/presentation/controllers/add_banner_controller.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 15 | impl<'a> AddBannerController<'a> { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 16 | fn new(add_banner: &'a dyn AddBanner) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `handle` is never used [INFO] [stdout] --> src/presentation/protocols/controller.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait Controller { [INFO] [stdout] | ---------- method in this trait [INFO] [stdout] 6 | fn handle(&self, request: HttpRequest) -> HttpResponse; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `query` and `params` are never read [INFO] [stdout] --> src/presentation/protocols/http.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct HttpRequest { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 3 | pub body: B, [INFO] [stdout] 4 | pub query: Q, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | pub params: P, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HttpRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/presentation/protocols/http.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl HttpRequest { [INFO] [stdout] | ---------------------------------- associated function in this implementation [INFO] [stdout] 9 | pub fn new(body: B, query: Q, params: P) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `internal_error` is never used [INFO] [stdout] --> src/presentation/protocols/http.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl HttpResponse { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn internal_error<'a>(message: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking predicates-tree v1.0.9 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking regex-automata v0.4.1 [INFO] [stderr] Checking regex v1.10.0 [INFO] [stderr] Checking predicates v2.1.5 [INFO] [stderr] Compiling mockall_derive v0.11.4 [INFO] [stderr] Checking mockall v0.11.4 [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/infra/database/banners_repository.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/infra/database/banners_repository.rs:9:29 [INFO] [stdout] | [INFO] [stdout] 9 | fn create_banner(&self, file_name: String) -> Result { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_name` [INFO] [stdout] --> src/presentation/controllers/add_banner_controller.rs:107:25 [INFO] [stdout] | [INFO] [stdout] 107 | .returning(|file_name| Err(String::from("sample error message"))); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `query` and `params` are never read [INFO] [stdout] --> src/presentation/protocols/http.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct HttpRequest { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 3 | pub body: B, [INFO] [stdout] 4 | pub query: Q, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | pub params: P, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HttpRequest` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `internal_error` is never used [INFO] [stdout] --> src/presentation/protocols/http.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl HttpResponse { [INFO] [stdout] | ----------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn internal_error<'a>(message: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.45s [INFO] running `Command { std: "docker" "inspect" "ac6decd0fbf26e0134efafdfacac935a3d4bf30fab01691a24e8fbe40ad5a475", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac6decd0fbf26e0134efafdfacac935a3d4bf30fab01691a24e8fbe40ad5a475", kill_on_drop: false }` [INFO] [stdout] ac6decd0fbf26e0134efafdfacac935a3d4bf30fab01691a24e8fbe40ad5a475