[INFO] cloning repository https://github.com/joyanedel/postgres-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/joyanedel/postgres-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoyanedel%2Fpostgres-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoyanedel%2Fpostgres-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 03be359ad415fb4888f3a66b100a705b3732ee5b [INFO] checking joyanedel/postgres-rs against try#cd420d8bda33494ba3cc45048d5f067484a32b94 for pr-140209-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoyanedel%2Fpostgres-rs" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/joyanedel/postgres-rs on toolchain cd420d8bda33494ba3cc45048d5f067484a32b94 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/joyanedel/postgres-rs [INFO] finished tweaking git repo https://github.com/joyanedel/postgres-rs [INFO] tweaked toml for git repo https://github.com/joyanedel/postgres-rs written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/joyanedel/postgres-rs 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" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bc06e7ea1e5386eb1b521e5c7f53583f9c42848b52f2509565fc4affb78163e6 [INFO] running `Command { std: "docker" "start" "-a" "bc06e7ea1e5386eb1b521e5c7f53583f9c42848b52f2509565fc4affb78163e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bc06e7ea1e5386eb1b521e5c7f53583f9c42848b52f2509565fc4affb78163e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc06e7ea1e5386eb1b521e5c7f53583f9c42848b52f2509565fc4affb78163e6", kill_on_drop: false }` [INFO] [stdout] bc06e7ea1e5386eb1b521e5c7f53583f9c42848b52f2509565fc4affb78163e6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+cd420d8bda33494ba3cc45048d5f067484a32b94" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 31c43dfda350d9df994706595f7e5c6b3410b7107158f995d6a546c9fcb84829 [INFO] running `Command { std: "docker" "start" "-a" "31c43dfda350d9df994706595f7e5c6b3410b7107158f995d6a546c9fcb84829", kill_on_drop: false }` [INFO] [stderr] Checking postgres-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/messages/startup.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Bytes` [INFO] [stdout] --> src/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/messages/startup.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Bytes` [INFO] [stdout] --> src/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel_binding` [INFO] [stdout] --> src/connection/sasl.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut channel_binding = format!("{CHANNEL_ATTR}="); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel_binding` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/connection/sasl.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn authenticate(stream: &mut TcpStream, supported_methods: &Vec) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/connection/sasl.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut channel_binding = format!("{CHANNEL_ATTR}="); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/connection.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | MessageFormat::Authentication(v) => v, [INFO] [stdout] | -------------------------------- matches all the relevant values [INFO] [stdout] 29 | v => panic!("Message format not supported yet: {:?}", v), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `establish_connection` is never used [INFO] [stdout] --> src/connection.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn establish_connection(stream: &mut TcpStream) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GS2_HEADER` is never used [INFO] [stdout] --> src/connection/sasl.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const GS2_HEADER: &str = "n,,"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHANNEL_ATTR` is never used [INFO] [stdout] --> src/connection/sasl.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const CHANNEL_ATTR: &str = "c"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USERNAME_ATTR` is never used [INFO] [stdout] --> src/connection/sasl.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const USERNAME_ATTR: &str = "n"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CLIENT_PROOF__ATTR` is never used [INFO] [stdout] --> src/connection/sasl.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const CLIENT_PROOF__ATTR: &str = "p"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NONCE_ATTR` is never used [INFO] [stdout] --> src/connection/sasl.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const NONCE_ATTR: &str = "r"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `authenticate` is never used [INFO] [stdout] --> src/connection/sasl.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn authenticate(stream: &mut TcpStream, supported_methods: &Vec) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SASLContinue`, `SASLFinal`, and `NegotiateProtocolVersion` are never constructed [INFO] [stdout] --> src/messages/authentication.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Authentication { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 17 | SASLContinue(Vec), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 18 | // Bytes n [INFO] [stdout] 19 | SASLFinal(Vec), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | NegotiateProtocolVersion, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Authentication` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MessageFormat` is never used [INFO] [stdout] --> src/messages/format.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum MessageFormat { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageFormat` 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 `decode` is never used [INFO] [stdout] --> src/messages/format.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl MessageFormat { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 9 | pub fn decode(buf: &[u8]) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StartupMessage` is never constructed [INFO] [stdout] --> src/messages/startup.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct StartupMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StartupMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/messages/startup.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl StartupMessage { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 14 | pub fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `protocol_version_to_i32` is never used [INFO] [stdout] --> src/messages/startup.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn protocol_version_to_i32(major: i16, minor: i16) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_parameter` is never used [INFO] [stdout] --> src/messages/startup.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn write_parameter(buf: &mut Vec, name: &str, value: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Connection` is never constructed [INFO] [stdout] --> src/types.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Connection` 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/types.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Connection { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(username: &str, password: &str, port: u32, host: &str, database: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/connection.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | sasl::authenticate(stream, &v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 35 | let _ = sasl::authenticate(stream, &v); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel_binding` [INFO] [stdout] --> src/connection/sasl.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut channel_binding = format!("{CHANNEL_ATTR}="); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel_binding` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/connection/sasl.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn authenticate(stream: &mut TcpStream, supported_methods: &Vec) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/connection/sasl.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut channel_binding = format!("{CHANNEL_ATTR}="); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/connection.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | MessageFormat::Authentication(v) => v, [INFO] [stdout] | -------------------------------- matches all the relevant values [INFO] [stdout] 29 | v => panic!("Message format not supported yet: {:?}", v), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `establish_connection` is never used [INFO] [stdout] --> src/connection.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn establish_connection(stream: &mut TcpStream) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GS2_HEADER` is never used [INFO] [stdout] --> src/connection/sasl.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const GS2_HEADER: &str = "n,,"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CHANNEL_ATTR` is never used [INFO] [stdout] --> src/connection/sasl.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const CHANNEL_ATTR: &str = "c"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USERNAME_ATTR` is never used [INFO] [stdout] --> src/connection/sasl.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const USERNAME_ATTR: &str = "n"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CLIENT_PROOF__ATTR` is never used [INFO] [stdout] --> src/connection/sasl.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const CLIENT_PROOF__ATTR: &str = "p"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NONCE_ATTR` is never used [INFO] [stdout] --> src/connection/sasl.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const NONCE_ATTR: &str = "r"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `authenticate` is never used [INFO] [stdout] --> src/connection/sasl.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn authenticate(stream: &mut TcpStream, supported_methods: &Vec) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SASLContinue`, `SASLFinal`, and `NegotiateProtocolVersion` are never constructed [INFO] [stdout] --> src/messages/authentication.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Authentication { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 17 | SASLContinue(Vec), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 18 | // Bytes n [INFO] [stdout] 19 | SASLFinal(Vec), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | NegotiateProtocolVersion, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Authentication` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MessageFormat` is never used [INFO] [stdout] --> src/messages/format.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum MessageFormat { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MessageFormat` 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 `decode` is never used [INFO] [stdout] --> src/messages/format.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl MessageFormat { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 9 | pub fn decode(buf: &[u8]) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `StartupMessage` is never constructed [INFO] [stdout] --> src/messages/startup.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct StartupMessage { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `StartupMessage` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_bytes` is never used [INFO] [stdout] --> src/messages/startup.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl StartupMessage { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 14 | pub fn to_bytes(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_parameter` is never used [INFO] [stdout] --> src/messages/startup.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn write_parameter(buf: &mut Vec, name: &str, value: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Connection` is never constructed [INFO] [stdout] --> src/types.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Connection { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Connection` 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/types.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Connection { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 13 | pub fn new(username: &str, password: &str, port: u32, host: &str, database: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/connection.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | sasl::authenticate(stream, &v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 35 | let _ = sasl::authenticate(stream, &v); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `Write` [INFO] [stdout] --> src/main.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | io::{Read, Write}, [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/messages/startup.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Bytes` [INFO] [stdout] --> src/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `Write` [INFO] [stdout] --> src/main.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | io::{Read, Write}, [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> src/messages/startup.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Bytes` [INFO] [stdout] --> src/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::str::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel_binding` [INFO] [stdout] --> src/connection/sasl.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut channel_binding = format!("{CHANNEL_ATTR}="); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel_binding` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/connection/sasl.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn authenticate(stream: &mut TcpStream, supported_methods: &Vec) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/connection/sasl.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut channel_binding = format!("{CHANNEL_ATTR}="); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/connection.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | MessageFormat::Authentication(v) => v, [INFO] [stdout] | -------------------------------- matches all the relevant values [INFO] [stdout] 29 | v => panic!("Message format not supported yet: {:?}", v), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GS2_HEADER` is never used [INFO] [stdout] --> src/connection/sasl.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const GS2_HEADER: &str = "n,,"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USERNAME_ATTR` is never used [INFO] [stdout] --> src/connection/sasl.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const USERNAME_ATTR: &str = "n"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CLIENT_PROOF__ATTR` is never used [INFO] [stdout] --> src/connection/sasl.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const CLIENT_PROOF__ATTR: &str = "p"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NONCE_ATTR` is never used [INFO] [stdout] --> src/connection/sasl.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const NONCE_ATTR: &str = "r"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SASLContinue`, `SASLFinal`, and `NegotiateProtocolVersion` are never constructed [INFO] [stdout] --> src/messages/authentication.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Authentication { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 17 | SASLContinue(Vec), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 18 | // Bytes n [INFO] [stdout] 19 | SASLFinal(Vec), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | NegotiateProtocolVersion, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Authentication` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `password`, `port`, `host`, and `database` are never read [INFO] [stdout] --> src/types.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Connection { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 5 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | port: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | database: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/connection.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | sasl::authenticate(stream, &v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 35 | let _ = sasl::authenticate(stream, &v); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `channel_binding` [INFO] [stdout] --> src/connection/sasl.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut channel_binding = format!("{CHANNEL_ATTR}="); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_channel_binding` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stream` [INFO] [stdout] --> src/connection/sasl.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn authenticate(stream: &mut TcpStream, supported_methods: &Vec) -> io::Result<()> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/connection/sasl.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut channel_binding = format!("{CHANNEL_ATTR}="); [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/connection.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 28 | MessageFormat::Authentication(v) => v, [INFO] [stdout] | -------------------------------- matches all the relevant values [INFO] [stdout] 29 | v => panic!("Message format not supported yet: {:?}", v), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GS2_HEADER` is never used [INFO] [stdout] --> src/connection/sasl.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const GS2_HEADER: &str = "n,,"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USERNAME_ATTR` is never used [INFO] [stdout] --> src/connection/sasl.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const USERNAME_ATTR: &str = "n"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CLIENT_PROOF__ATTR` is never used [INFO] [stdout] --> src/connection/sasl.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const CLIENT_PROOF__ATTR: &str = "p"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NONCE_ATTR` is never used [INFO] [stdout] --> src/connection/sasl.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const NONCE_ATTR: &str = "r"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SASLContinue`, `SASLFinal`, and `NegotiateProtocolVersion` are never constructed [INFO] [stdout] --> src/messages/authentication.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Authentication { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 17 | SASLContinue(Vec), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 18 | // Bytes n [INFO] [stdout] 19 | SASLFinal(Vec), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | NegotiateProtocolVersion, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Authentication` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `username`, `password`, `port`, `host`, and `database` are never read [INFO] [stdout] --> src/types.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Connection { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 5 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 6 | password: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | port: u32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | host: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | database: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Connection` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/connection.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | sasl::authenticate(stream, &v); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 35 | let _ = sasl::authenticate(stream, &v); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.49s [INFO] running `Command { std: "docker" "inspect" "31c43dfda350d9df994706595f7e5c6b3410b7107158f995d6a546c9fcb84829", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31c43dfda350d9df994706595f7e5c6b3410b7107158f995d6a546c9fcb84829", kill_on_drop: false }` [INFO] [stdout] 31c43dfda350d9df994706595f7e5c6b3410b7107158f995d6a546c9fcb84829