[INFO] cloning repository https://github.com/nibirietz/training-statistics [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nibirietz/training-statistics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnibirietz%2Ftraining-statistics", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnibirietz%2Ftraining-statistics'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0ddaf319daf4fc07d0bc9235cc41e0239525d177 [INFO] checking nibirietz/training-statistics against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnibirietz%2Ftraining-statistics" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nibirietz/training-statistics [INFO] finished tweaking git repo https://github.com/nibirietz/training-statistics [INFO] tweaked toml for git repo https://github.com/nibirietz/training-statistics written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nibirietz/training-statistics on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nibirietz/training-statistics 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 51b215bfe7f453c22a60d62133065c40a54e192a180b1120879f91f8947c81c8 [INFO] running `Command { std: "docker" "start" "-a" "51b215bfe7f453c22a60d62133065c40a54e192a180b1120879f91f8947c81c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "51b215bfe7f453c22a60d62133065c40a54e192a180b1120879f91f8947c81c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51b215bfe7f453c22a60d62133065c40a54e192a180b1120879f91f8947c81c8", kill_on_drop: false }` [INFO] [stdout] 51b215bfe7f453c22a60d62133065c40a54e192a180b1120879f91f8947c81c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f10d67b4adc459f9e11fb56b15810fcc7f34df4917a26ddf6231104e7254b95a [INFO] running `Command { std: "docker" "start" "-a" "f10d67b4adc459f9e11fb56b15810fcc7f34df4917a26ddf6231104e7254b95a", kill_on_drop: false }` [INFO] [stderr] Checking training-statistics v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Repository` [INFO] [stdout] --> src/api.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::repository::{self, Repository}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ExerciseCreate` [INFO] [stdout] --> src/api.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::schema::{self, ExerciseCreate, ExercisePublic}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::database` [INFO] [stdout] --> src/repository.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::database; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/api.rs:18:29 [INFO] [stdout] | [INFO] [stdout] 18 | fn edit_exercise(&self, id: u32, name: &str) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/api.rs:18:38 [INFO] [stdout] | [INFO] [stdout] 18 | fn edit_exercise(&self, id: u32, name: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/repository.rs:9:42 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn get_exercise_by_id<'a>(&self, name: &str, id: u32) -> ExercisePublic<'a> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/repository.rs:9:54 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn get_exercise_by_id<'a>(&self, name: &str, id: u32) -> ExercisePublic<'a> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exercise` [INFO] [stdout] --> src/repository.rs:12:35 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn create_exercise(&self, exercise: schema::ExerciseCreate) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exercise` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exercise` [INFO] [stdout] --> src/repository.rs:15:33 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn edit_exercise(&self, exercise: schema::ExerciseEdit) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exercise` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/repository.rs:18:43 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn get_id_of_last_exercise(&self, name: &str) -> u32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `repository` is never read [INFO] [stdout] --> src/api.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct API { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 5 | repository: repository::Repository, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_exercise`, `edit_exercise`, `edit_last_exercise`, and `get_exercise_by_id` are never used [INFO] [stdout] --> src/api.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl API { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 9 | fn new() -> API { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | fn create_exercise(&self, name: &str, approaches: u32, repetitions: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn edit_exercise(&self, id: u32, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn edit_last_exercise(&self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn get_exercise_by_id(&self, name: &str, id: u32) -> ExercisePublic { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/schema.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct ExercisePublic<'a> { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 42 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/schema.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct ExerciseEdit<'a> { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 55 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/api.rs:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_exercise_by_id(&self, name: &str, id: u32) -> ExercisePublic { [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] 25 | fn get_exercise_by_id(&self, name: &str, id: u32) -> ExercisePublic<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Repository` [INFO] [stdout] --> src/api.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::repository::{self, Repository}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ExerciseCreate` [INFO] [stdout] --> src/api.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::schema::{self, ExerciseCreate, ExercisePublic}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::database` [INFO] [stdout] --> src/repository.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::database; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/api.rs:18:29 [INFO] [stdout] | [INFO] [stdout] 18 | fn edit_exercise(&self, id: u32, name: &str) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/api.rs:18:38 [INFO] [stdout] | [INFO] [stdout] 18 | fn edit_exercise(&self, id: u32, name: &str) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/repository.rs:9:42 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn get_exercise_by_id<'a>(&self, name: &str, id: u32) -> ExercisePublic<'a> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/repository.rs:9:54 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn get_exercise_by_id<'a>(&self, name: &str, id: u32) -> ExercisePublic<'a> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exercise` [INFO] [stdout] --> src/repository.rs:12:35 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn create_exercise(&self, exercise: schema::ExerciseCreate) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exercise` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `exercise` [INFO] [stdout] --> src/repository.rs:15:33 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn edit_exercise(&self, exercise: schema::ExerciseEdit) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_exercise` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/repository.rs:18:43 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn get_id_of_last_exercise(&self, name: &str) -> u32 { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `repository` is never read [INFO] [stdout] --> src/api.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct API { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 5 | repository: repository::Repository, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_exercise`, `edit_exercise`, `edit_last_exercise`, and `get_exercise_by_id` are never used [INFO] [stdout] --> src/api.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl API { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 9 | fn new() -> API { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | fn create_exercise(&self, name: &str, approaches: u32, repetitions: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | fn edit_exercise(&self, id: u32, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn edit_last_exercise(&self, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn get_exercise_by_id(&self, name: &str, id: u32) -> ExercisePublic { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/schema.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct ExercisePublic<'a> { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 42 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/schema.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 54 | pub struct ExerciseEdit<'a> { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 55 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/api.rs:25:27 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_exercise_by_id(&self, name: &str, id: u32) -> ExercisePublic { [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] 25 | fn get_exercise_by_id(&self, name: &str, id: u32) -> ExercisePublic<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.54s [INFO] running `Command { std: "docker" "inspect" "f10d67b4adc459f9e11fb56b15810fcc7f34df4917a26ddf6231104e7254b95a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f10d67b4adc459f9e11fb56b15810fcc7f34df4917a26ddf6231104e7254b95a", kill_on_drop: false }` [INFO] [stdout] f10d67b4adc459f9e11fb56b15810fcc7f34df4917a26ddf6231104e7254b95a