[INFO] cloning repository https://github.com/HlibShutov/rust_api
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HlibShutov/rust_api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHlibShutov%2Frust_api", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHlibShutov%2Frust_api'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5a4456bf2a5914cbc18697c0cf9777df64884b27
[INFO] testing HlibShutov/rust_api against 1.97.0-beta.6 for beta-1.98-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHlibShutov%2Frust_api" "/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/HlibShutov/rust_api
[INFO] finished tweaking git repo https://github.com/HlibShutov/rust_api
[INFO] tweaked toml for git repo https://github.com/HlibShutov/rust_api written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/HlibShutov/rust_api on toolchain 1.97.0-beta.6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/HlibShutov/rust_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" "+1.97.0-beta.6" "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/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] b9bdb08a1e29d647b48f865fad99f1d7fe108efe08c850a6b6c999c667d5fc5a
[INFO] running `Command { std: "docker" "start" "b9bdb08a1e29d647b48f865fad99f1d7fe108efe08c850a6b6c999c667d5fc5a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b9bdb08a1e29d647b48f865fad99f1d7fe108efe08c850a6b6c999c667d5fc5a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b9bdb08a1e29d647b48f865fad99f1d7fe108efe08c850a6b6c999c667d5fc5a" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b9bdb08a1e29d647b48f865fad99f1d7fe108efe08c850a6b6c999c667d5fc5a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b9bdb08a1e29d647b48f865fad99f1d7fe108efe08c850a6b6c999c667d5fc5a" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.92
[INFO] [stderr]    Compiling unicode-ident v1.0.14
[INFO] [stderr]    Compiling serde v1.0.215
[INFO] [stderr]    Compiling serde_json v1.0.133
[INFO] [stderr]    Compiling memchr v2.7.4
[INFO] [stderr]    Compiling itoa v1.0.14
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling syn v2.0.90
[INFO] [stderr]    Compiling serde_derive v1.0.215
[INFO] [stderr]    Compiling rust_api v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/db_mock.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::collections::HashMap;
[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: `DataBase`
[INFO] [stdout]  --> src/utils.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 |     db_object::{DataBase, UserEnum},
[INFO] [stdout]   |                 ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.83s
[INFO] running `Command { std: "docker" "inspect" "b9bdb08a1e29d647b48f865fad99f1d7fe108efe08c850a6b6c999c667d5fc5a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b9bdb08a1e29d647b48f865fad99f1d7fe108efe08c850a6b6c999c667d5fc5a" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/db_mock.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::collections::HashMap;
[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: `DataBase`
[INFO] [stdout]  --> src/utils.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 |     db_object::{DataBase, UserEnum},
[INFO] [stdout]   |                 ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling rust_api v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/db_mock.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::collections::HashMap;
[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: `DataBase`
[INFO] [stdout]  --> src/utils.rs:7:17
[INFO] [stdout]   |
[INFO] [stdout] 7 |     db_object::{DataBase, UserEnum},
[INFO] [stdout]   |                 ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_user` is never used
[INFO] [stdout]    --> src/utils.rs:121:8
[INFO] [stdout]     |
[INFO] [stdout] 121 |     fn create_user(id: u32) -> User {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.51s
[INFO] running `Command { std: "docker" "inspect" "b9bdb08a1e29d647b48f865fad99f1d7fe108efe08c850a6b6c999c667d5fc5a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b9bdb08a1e29d647b48f865fad99f1d7fe108efe08c850a6b6c999c667d5fc5a" "/opt/rustwide/cargo-home/bin/cargo" "+1.97.0-beta.6" "test" "--frozen", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `std::collections::HashMap`
[INFO] [stderr]  --> src/db_mock.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use std::collections::HashMap;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `DataBase`
[INFO] [stderr]  --> src/utils.rs:7:17
[INFO] [stderr]   |
[INFO] [stderr] 7 |     db_object::{DataBase, UserEnum},
[INFO] [stderr]   |                 ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `create_user` is never used
[INFO] [stderr]    --> src/utils.rs:121:8
[INFO] [stderr]     |
[INFO] [stderr] 121 |     fn create_user(id: u32) -> User {
[INFO] [stderr]     |        ^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `rust_api` (lib) generated 2 warnings (run `cargo fix --lib -p rust_api` to apply 2 suggestions)
[INFO] [stderr] warning: `rust_api` (lib test) generated 3 warnings (2 duplicates)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rust_api-b98057efbb2ce804)
[INFO] [stdout] 
[INFO] [stdout] running 12 tests
[INFO] [stdout] test db_object::tests::test_add_entry ... ok
[INFO] [stdout] test db_object::tests::test_error_if_id_does_not_exist ... ok
[INFO] [stdout] test db_object::tests::test_get_all ... ok
[INFO] [stdout] test db_object::tests::test_change_user ... ok
[INFO] [stdout] test db_object::tests::test_remove_entry ... ok
[INFO] [stdout] test db_object::tests::test_get_one ... ok
[INFO] [stdout] test utils::tests::test_change_user_lastname ... ok
[INFO] [stdout] test utils::tests::test_change_user_name ... ok
[INFO] [stdout] test utils::tests::test_show_users ... ok
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rust_api-2b5052c2e5b55bee)
[INFO] [stdout] test utils::tests::test_adds_user_to_the_end ... ok
[INFO] [stdout] test utils::tests::test_delete_user ... ok
[INFO] [stdout] test utils::tests::test_show_user ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[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 tests/integration_test.rs (/opt/rustwide/target/debug/deps/integration_test-73b8fcaafcf1ca28)
[INFO] [stdout] 
[INFO] [stdout] running 13 tests
[INFO] [stdout] test test_change_user_name ... ok
[INFO] [stdout] test test_delete_user ... ok
[INFO] [stdout] test test_change_user_name_invalid_id ... ok
[INFO] [stdout] test test_adding_user_to_empty ... ok
[INFO] [stdout] test test_change_user_name_invalid_body_json ... ok
[INFO] [stdout] test test_adding_user_invalid_data ... ok
[INFO] [stdout] test test_change_user_name_invalid_body ... ok
[INFO] [stdout] test test_adding_user ... ok
[INFO] [stdout] test test_empty_users ... ok
[INFO] [stdout] test test_delete_user_invalid_id ... ok
[INFO] [stdout] test test_invalid_user_id ... ok
[INFO] [stdout] test test_show_user ... ok
[INFO] [stdout] test test_show_users ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.00s
[INFO] [stderr]    Doc-tests rust_api
[INFO] [stdout] 
[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] running `Command { std: "docker" "inspect" "b9bdb08a1e29d647b48f865fad99f1d7fe108efe08c850a6b6c999c667d5fc5a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b9bdb08a1e29d647b48f865fad99f1d7fe108efe08c850a6b6c999c667d5fc5a", kill_on_drop: false }`
[INFO] [stdout] b9bdb08a1e29d647b48f865fad99f1d7fe108efe08c850a6b6c999c667d5fc5a
