[INFO] cloning repository https://github.com/lphilippe-source/rust-web-app [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lphilippe-source/rust-web-app" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flphilippe-source%2Frust-web-app", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flphilippe-source%2Frust-web-app'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1cf574f1e2fd250619f898a3b8fef42fbb158732 [INFO] testing lphilippe-source/rust-web-app against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759-retry [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flphilippe-source%2Frust-web-app" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lphilippe-source/rust-web-app [INFO] finished tweaking git repo https://github.com/lphilippe-source/rust-web-app [INFO] tweaked toml for git repo https://github.com/lphilippe-source/rust-web-app written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lphilippe-source/rust-web-app on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lphilippe-source/rust-web-app 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" "+733b47ea4b1b86216f14ef56e49440c33933f230" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 732735d6d9f724765844e5602b0b2f37c1f738ff7be4200088e8701ac777bd1e [INFO] running `Command { std: "docker" "start" "-a" "732735d6d9f724765844e5602b0b2f37c1f738ff7be4200088e8701ac777bd1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "732735d6d9f724765844e5602b0b2f37c1f738ff7be4200088e8701ac777bd1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "732735d6d9f724765844e5602b0b2f37c1f738ff7be4200088e8701ac777bd1e", kill_on_drop: false }` [INFO] [stdout] 732735d6d9f724765844e5602b0b2f37c1f738ff7be4200088e8701ac777bd1e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ab29f7c5d2df6a45379eb0eaa4e4ac5a189556c57a72428e9ad1acf4a7685ddb [INFO] running `Command { std: "docker" "start" "-a" "ab29f7c5d2df6a45379eb0eaa4e4ac5a189556c57a72428e9ad1acf4a7685ddb", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling finl_unicode v1.2.0 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling async-trait v0.1.77 [INFO] [stderr] Compiling smallvec v1.13.1 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling utf8parse v0.2.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Compiling anstyle-parse v0.2.3 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling anstyle-query v1.0.2 [INFO] [stderr] Compiling colorchoice v1.0.0 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling whoami v1.4.1 [INFO] [stderr] Compiling serde_json v1.0.113 [INFO] [stderr] Compiling anstyle v1.0.5 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling mio v0.8.10 [INFO] [stderr] Compiling anstream v0.6.11 [INFO] [stderr] Compiling regex-automata v0.4.5 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Compiling tokio v1.36.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling postgres-protocol v0.6.6 [INFO] [stderr] Compiling postgres-types v0.2.6 [INFO] [stderr] Compiling regex v1.10.3 [INFO] [stderr] Compiling env_filter v0.1.0 [INFO] [stderr] Compiling env_logger v0.11.1 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tokio-postgres v0.7.10 [INFO] [stderr] Compiling postgres v0.19.7 [INFO] [stderr] Compiling webTest v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Client` and `NoTls` [INFO] [stdout] --> src/controller/handle_get_request.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use postgres::{Client, NoTls}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DB_URL`, `INTERNAL_ERROR`, `OK_RESPONSE`, and `domain::*` [INFO] [stdout] --> src/controller/handle_get_request.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{DB_URL, domain::*, INTERNAL_ERROR, OK_RESPONSE}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/persistence/user_repository.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | Err(e) => ("CONNECTION_ERROR".to_string(),"connexion to database failed".to_string()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_name`, and `get_email` are never used [INFO] [stdout] --> src/domain/user.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl User { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(id:i32, name: String, email: String) -> User { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn get_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_email(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Id` and `IdIsNotSet` are never constructed [INFO] [stdout] --> src/domain/user_dto.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum UserField <'a>{ [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 11 | Id(i32), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 14 | IdIsNotSet, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserField` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_id`, `set_name`, and `set_email` are never used [INFO] [stdout] --> src/domain/user_dto.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl UserDto{ [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_id(&self) -> UserField { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn set_name(&mut self, name: String) -> &mut Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn set_email(&mut self, email: String) -> &mut Self{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/domain/user_dto.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn get_id(&self) -> UserField { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 27 | pub fn get_id(&self) -> UserField<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/domain/user_dto.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn get_name(&self) -> UserField { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 36 | pub fn get_name(&self) -> UserField<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/domain/user_dto.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_email(&self) -> UserField { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_email(&self) -> UserField<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.82s [INFO] running `Command { std: "docker" "inspect" "ab29f7c5d2df6a45379eb0eaa4e4ac5a189556c57a72428e9ad1acf4a7685ddb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab29f7c5d2df6a45379eb0eaa4e4ac5a189556c57a72428e9ad1acf4a7685ddb", kill_on_drop: false }` [INFO] [stdout] ab29f7c5d2df6a45379eb0eaa4e4ac5a189556c57a72428e9ad1acf4a7685ddb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 070cf3f072103a304de6f4c4f67a45a441ff08db37a04079bd9d3b41f58f72d5 [INFO] running `Command { std: "docker" "start" "-a" "070cf3f072103a304de6f4c4f67a45a441ff08db37a04079bd9d3b41f58f72d5", kill_on_drop: false }` [INFO] [stderr] Compiling webTest v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Client` and `NoTls` [INFO] [stdout] --> src/controller/handle_get_request.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use postgres::{Client, NoTls}; [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DB_URL`, `INTERNAL_ERROR`, `OK_RESPONSE`, and `domain::*` [INFO] [stdout] --> src/controller/handle_get_request.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{DB_URL, domain::*, INTERNAL_ERROR, OK_RESPONSE}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/persistence/user_repository.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | Err(e) => ("CONNECTION_ERROR".to_string(),"connexion to database failed".to_string()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_name`, and `get_email` are never used [INFO] [stdout] --> src/domain/user.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl User { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 11 | pub fn new(id:i32, name: String, email: String) -> User { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | pub fn get_name(&self) -> &str { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get_email(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Id` and `IdIsNotSet` are never constructed [INFO] [stdout] --> src/domain/user_dto.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum UserField <'a>{ [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 11 | Id(i32), [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 14 | IdIsNotSet, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserField` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_id`, `set_name`, and `set_email` are never used [INFO] [stdout] --> src/domain/user_dto.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl UserDto{ [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn get_id(&self) -> UserField { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn set_name(&mut self, name: String) -> &mut Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn set_email(&mut self, email: String) -> &mut Self{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/domain/user_dto.rs:27:19 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn get_id(&self) -> UserField { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 27 | pub fn get_id(&self) -> UserField<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/domain/user_dto.rs:36:21 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn get_name(&self) -> UserField { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 36 | pub fn get_name(&self) -> UserField<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/domain/user_dto.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_email(&self) -> UserField { [INFO] [stdout] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_email(&self) -> UserField<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s [INFO] running `Command { std: "docker" "inspect" "070cf3f072103a304de6f4c4f67a45a441ff08db37a04079bd9d3b41f58f72d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "070cf3f072103a304de6f4c4f67a45a441ff08db37a04079bd9d3b41f58f72d5", kill_on_drop: false }` [INFO] [stdout] 070cf3f072103a304de6f4c4f67a45a441ff08db37a04079bd9d3b41f58f72d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 19f131b16d95acdc061b6756142a1e7cd146ef828c978c43ace4d6aebdb89926 [INFO] running `Command { std: "docker" "start" "-a" "19f131b16d95acdc061b6756142a1e7cd146ef828c978c43ace4d6aebdb89926", kill_on_drop: false }` [INFO] [stderr] warning: unused imports: `Client` and `NoTls` [INFO] [stderr] --> src/controller/handle_get_request.rs:1:16 [INFO] [stderr] | [INFO] [stderr] 1 | use postgres::{Client, NoTls}; [INFO] [stderr] | ^^^^^^ ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `DB_URL`, `INTERNAL_ERROR`, `OK_RESPONSE`, and `domain::*` [INFO] [stderr] --> src/controller/handle_get_request.rs:2:13 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::{DB_URL, domain::*, INTERNAL_ERROR, OK_RESPONSE}; [INFO] [stderr] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/persistence/user_repository.rs:15:13 [INFO] [stderr] | [INFO] [stderr] 15 | Err(e) => ("CONNECTION_ERROR".to_string(),"connexion to database failed".to_string()) [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated items `new`, `get_name`, and `get_email` are never used [INFO] [stderr] --> src/domain/user.rs:11:12 [INFO] [stderr] | [INFO] [stderr] 10 | impl User { [INFO] [stderr] | --------- associated items in this implementation [INFO] [stderr] 11 | pub fn new(id:i32, name: String, email: String) -> User { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 14 | pub fn get_name(&self) -> &str { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 17 | pub fn get_email(&self) -> &str { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variants `Id` and `IdIsNotSet` are never constructed [INFO] [stderr] --> src/domain/user_dto.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 10 | pub enum UserField <'a>{ [INFO] [stderr] | --------- variants in this enum [INFO] [stderr] 11 | Id(i32), [INFO] [stderr] | ^^ [INFO] [stderr] ... [INFO] [stderr] 14 | IdIsNotSet, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `UserField` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `get_id`, `set_name`, and `set_email` are never used [INFO] [stderr] --> src/domain/user_dto.rs:27:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl UserDto{ [INFO] [stderr] | ------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 27 | pub fn get_id(&self) -> UserField { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 58 | pub fn set_name(&mut self, name: String) -> &mut Self { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 62 | pub fn set_email(&mut self, email: String) -> &mut Self{ [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/domain/user_dto.rs:27:19 [INFO] [stderr] | [INFO] [stderr] 27 | pub fn get_id(&self) -> UserField { [INFO] [stderr] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 27 | pub fn get_id(&self) -> UserField<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/domain/user_dto.rs:36:21 [INFO] [stderr] | [INFO] [stderr] 36 | pub fn get_name(&self) -> UserField { [INFO] [stderr] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 36 | pub fn get_name(&self) -> UserField<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/domain/user_dto.rs:45:22 [INFO] [stderr] | [INFO] [stderr] 45 | pub fn get_email(&self) -> UserField { [INFO] [stderr] | ^^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 45 | pub fn get_email(&self) -> UserField<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `webTest` (bin "webTest" test) generated 9 warnings (run `cargo fix --bin "webTest" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/webTest-b1ca301fc5339534) [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" "19f131b16d95acdc061b6756142a1e7cd146ef828c978c43ace4d6aebdb89926", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19f131b16d95acdc061b6756142a1e7cd146ef828c978c43ace4d6aebdb89926", kill_on_drop: false }` [INFO] [stdout] 19f131b16d95acdc061b6756142a1e7cd146ef828c978c43ace4d6aebdb89926