[INFO] cloning repository https://github.com/Daichi0914/practice_todo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Daichi0914/practice_todo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDaichi0914%2Fpractice_todo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDaichi0914%2Fpractice_todo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 66ca72098a4571aa9554e82a85601fb3c819c8a3 [INFO] checking Daichi0914/practice_todo against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDaichi0914%2Fpractice_todo" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Daichi0914/practice_todo [INFO] finished tweaking git repo https://github.com/Daichi0914/practice_todo [INFO] tweaked toml for git repo https://github.com/Daichi0914/practice_todo written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Daichi0914/practice_todo on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Daichi0914/practice_todo 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c802b18c6a50605e2fbc2a4967e9f5f9527c5694653417cc9d80266f8ed37592 [INFO] running `Command { std: "docker" "start" "-a" "c802b18c6a50605e2fbc2a4967e9f5f9527c5694653417cc9d80266f8ed37592", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c802b18c6a50605e2fbc2a4967e9f5f9527c5694653417cc9d80266f8ed37592", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c802b18c6a50605e2fbc2a4967e9f5f9527c5694653417cc9d80266f8ed37592", kill_on_drop: false }` [INFO] [stdout] c802b18c6a50605e2fbc2a4967e9f5f9527c5694653417cc9d80266f8ed37592 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5960b8dc85a20f41545dd068284e486a8905b8350ee2e372746cd9f044257e1a [INFO] running `Command { std: "docker" "start" "-a" "5960b8dc85a20f41545dd068284e486a8905b8350ee2e372746cd9f044257e1a", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.32 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling serde v1.0.183 [INFO] [stderr] Compiling serde_derive v1.0.183 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking regex-syntax v0.7.4 [INFO] [stderr] Compiling serde_json v1.0.104 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling thiserror v1.0.45 [INFO] [stderr] Compiling anyhow v1.0.73 [INFO] [stderr] Checking matchit v0.7.2 [INFO] [stderr] Compiling syn v2.0.28 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Checking regex-automata v0.3.6 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Checking regex v1.9.3 [INFO] [stderr] Checking serde_path_to_error v0.1.14 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling async-trait v0.1.73 [INFO] [stderr] Compiling thiserror-impl v1.0.45 [INFO] [stderr] Checking pin-project v1.1.3 [INFO] [stderr] Checking tokio v1.31.0 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking tracing-subscriber v0.3.17 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking h2 v0.3.20 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking todo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `axum::routing::post` [INFO] [stdout] --> src/routes/todo_routes.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use axum::routing::post; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::handlers::todo_handlers` [INFO] [stdout] --> src/routes/todo_routes.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::handlers::todo_handlers; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `axum::routing::post` [INFO] [stdout] --> src/routes/todo_routes.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use axum::routing::post; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::handlers::todo_handlers` [INFO] [stdout] --> src/routes/todo_routes.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::handlers::todo_handlers; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_todo` is never used [INFO] [stdout] --> src/handlers/todo_handlers.rs:5:15 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn create_todo(payload: CreateTodo, repository: Extension>) -> Todo { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TodoStatus` is never used [INFO] [stdout] --> src/models/todo_models.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum TodoStatus { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Todo` is never constructed [INFO] [stdout] --> src/models/todo_models.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Todo { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateTodo` is never constructed [INFO] [stdout] --> src/models/todo_models.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct CreateTodo { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `create_next_id` are never used [INFO] [stdout] --> src/models/todo_models.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 23 | impl Todo { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 24 | pub(crate) fn new(id: u32, action: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn create_next_id(store: &RwLockWriteGuard) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TodoRepository` is never used [INFO] [stdout] --> src/models/todo_models.rs:37:11 [INFO] [stdout] | [INFO] [stdout] 37 | pub trait TodoRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TodoDates` is never used [INFO] [stdout] --> src/models/todo_models.rs:42:6 [INFO] [stdout] | [INFO] [stdout] 42 | type TodoDates = HashMap; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TodoRepositoryForMemory` is never constructed [INFO] [stdout] --> src/models/todo_models.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct TodoRepositoryForMemory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `write_store_ref`, and `read_store_ref` are never used [INFO] [stdout] --> src/models/todo_models.rs:50:19 [INFO] [stdout] | [INFO] [stdout] 49 | impl TodoRepositoryForMemory { [INFO] [stdout] | ---------------------------- associated items in this implementation [INFO] [stdout] 50 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | fn write_store_ref(&self) -> RwLockWriteGuard { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | fn read_store_ref(&self) -> RwLockReadGuard { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/models/todo_models.rs:56:24 [INFO] [stdout] | [INFO] [stdout] 56 | fn write_store_ref(&self) -> RwLockWriteGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 56 | fn write_store_ref(&self) -> RwLockWriteGuard<'_, TodoDates> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/models/todo_models.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | fn read_store_ref(&self) -> RwLockReadGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 60 | fn read_store_ref(&self) -> RwLockReadGuard<'_, TodoDates> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InProgress` and `Done` are never constructed [INFO] [stdout] --> src/models/todo_models.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum TodoStatus { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 7 | Undone, [INFO] [stdout] 8 | InProgress, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 9 | Done [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TodoStatus` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/models/todo_models.rs:56:24 [INFO] [stdout] | [INFO] [stdout] 56 | fn write_store_ref(&self) -> RwLockWriteGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 56 | fn write_store_ref(&self) -> RwLockWriteGuard<'_, TodoDates> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/models/todo_models.rs:60:23 [INFO] [stdout] | [INFO] [stdout] 60 | fn read_store_ref(&self) -> RwLockReadGuard { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 60 | fn read_store_ref(&self) -> RwLockReadGuard<'_, TodoDates> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> tests/integration/test_helper/response.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | / app() [INFO] [stdout] 13 | | .oneshot( [INFO] [stdout] 14 | | Request::builder() [INFO] [stdout] 15 | | .method(method) [INFO] [stdout] ... | [INFO] [stdout] 20 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> tests/integration/test_helper/response.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> tests/integration/test_helper/response.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | / app() [INFO] [stdout] 13 | | .oneshot( [INFO] [stdout] 14 | | Request::builder() [INFO] [stdout] 15 | | .method(method) [INFO] [stdout] ... | [INFO] [stdout] 20 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> tests/integration/test_helper/response.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | / app() [INFO] [stdout] 26 | | .oneshot( [INFO] [stdout] 27 | | Request::builder() [INFO] [stdout] 28 | | .method(method) [INFO] [stdout] ... | [INFO] [stdout] 34 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> tests/integration/test_helper/response.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 34 | .await [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result>, Infallible> [INFO] [stdout] --> tests/integration/test_helper/response.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | / app() [INFO] [stdout] 26 | | .oneshot( [INFO] [stdout] 27 | | Request::builder() [INFO] [stdout] 28 | | .method(method) [INFO] [stdout] ... | [INFO] [stdout] 34 | | .await [INFO] [stdout] | |__________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `todo` (test "integration_testing") due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "5960b8dc85a20f41545dd068284e486a8905b8350ee2e372746cd9f044257e1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5960b8dc85a20f41545dd068284e486a8905b8350ee2e372746cd9f044257e1a", kill_on_drop: false }` [INFO] [stdout] 5960b8dc85a20f41545dd068284e486a8905b8350ee2e372746cd9f044257e1a