[INFO] fetching crate grant 0.0.1-beta.3... [INFO] checking grant-0.0.1-beta.3 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] extracting crate grant 0.0.1-beta.3 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate grant 0.0.1-beta.3 on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate grant 0.0.1-beta.3 [INFO] finished tweaking crates.io crate grant 0.0.1-beta.3 [INFO] tweaked toml for crates.io crate grant 0.0.1-beta.3 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate crates.io crate grant 0.0.1-beta.3 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded structopt v0.3.25 [INFO] [stderr] Downloaded linked-hash-map v0.5.4 [INFO] [stderr] Downloaded md5 v0.7.0 [INFO] [stderr] Downloaded phf v0.10.0 [INFO] [stderr] Downloaded ascii_table v3.0.2 [INFO] [stderr] Downloaded predicates-core v1.0.2 [INFO] [stderr] Downloaded termtree v0.2.3 [INFO] [stderr] Downloaded predicates-tree v1.0.4 [INFO] [stderr] Downloaded anyhow v1.0.45 [INFO] [stderr] Downloaded env_logger v0.9.0 [INFO] [stderr] Downloaded serde_yaml v0.8.21 [INFO] [stderr] Downloaded tokio-postgres v0.7.5 [INFO] [stderr] Downloaded postgres-types v0.2.2 [INFO] [stderr] Downloaded async-trait v0.1.51 [INFO] [stderr] Downloaded itertools v0.10.3 [INFO] [stderr] Downloaded assert_cmd v2.0.2 [INFO] [stderr] Downloaded unindent v0.1.7 [INFO] [stderr] Downloaded indoc v1.0.3 [INFO] [stderr] Downloaded siphasher v0.3.7 [INFO] [stderr] Downloaded stringprep v0.1.2 [INFO] [stderr] Downloaded postgres-protocol v0.6.2 [INFO] [stderr] Downloaded dunce v1.0.2 [INFO] [stderr] Downloaded postgres v0.19.2 [INFO] [stderr] Downloaded predicates v2.1.0 [INFO] [stderr] Downloaded libc v0.2.107 [INFO] [stderr] Downloaded tokio v1.13.1 [INFO] [stderr] Downloaded fsio v0.3.0 [INFO] [stderr] Downloaded envmnt v0.9.1 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 56bf7e082b1028c2010a923a6c303bbfa59568d59b94b1484177d8ac35c11133 [INFO] running `Command { std: "docker" "start" "-a" "56bf7e082b1028c2010a923a6c303bbfa59568d59b94b1484177d8ac35c11133", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "56bf7e082b1028c2010a923a6c303bbfa59568d59b94b1484177d8ac35c11133", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56bf7e082b1028c2010a923a6c303bbfa59568d59b94b1484177d8ac35c11133", kill_on_drop: false }` [INFO] [stdout] 56bf7e082b1028c2010a923a6c303bbfa59568d59b94b1484177d8ac35c11133 [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd49c2d6ce4eccfd989aae3281f0df401247ece4cf2da5467217edc6d6701715 [INFO] running `Command { std: "docker" "start" "-a" "dd49c2d6ce4eccfd989aae3281f0df401247ece4cf2da5467217edc6d6701715", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.107 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling typenum v1.14.0 [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking futures-sink v0.3.17 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Checking pin-project-lite v0.2.7 [INFO] [stderr] Compiling futures-task v0.3.17 [INFO] [stderr] Checking ppv-lite86 v0.2.15 [INFO] [stderr] Checking tinyvec v1.5.1 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking futures-io v0.3.17 [INFO] [stderr] Checking unicode-bidi v0.3.7 [INFO] [stderr] Checking slab v0.4.5 [INFO] [stderr] Checking cpufeatures v0.2.1 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling futures-macro v0.3.17 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling tokio v1.13.1 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking base64 v0.13.0 [INFO] [stderr] Compiling async-trait v0.1.51 [INFO] [stderr] Checking smallvec v1.7.0 [INFO] [stderr] Checking siphasher v0.3.7 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking lock_api v0.4.5 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking phf_shared v0.10.0 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking mio v0.7.14 [INFO] [stderr] Checking unicode-normalization v0.1.19 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking phf v0.10.0 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking socket2 v0.4.2 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling anyhow v1.0.45 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking termcolor v1.1.2 [INFO] [stderr] Checking predicates-core v1.0.2 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Compiling unindent v0.1.7 [INFO] [stderr] Checking dtoa v0.4.8 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Checking fsio v0.3.0 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking itertools v0.10.3 [INFO] [stderr] Compiling indoc v1.0.3 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking md5 v0.7.0 [INFO] [stderr] Checking ascii_table v3.0.2 [INFO] [stderr] Checking termtree v0.2.3 [INFO] [stderr] Checking envmnt v0.9.1 [INFO] [stderr] Checking predicates-tree v1.0.4 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking stringprep v0.1.2 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.11.1 [INFO] [stderr] Checking float-cmp v0.9.0 [INFO] [stderr] Checking sha2 v0.9.8 [INFO] [stderr] Checking hmac v0.11.0 [INFO] [stderr] Checking md-5 v0.9.1 [INFO] [stderr] Checking tempfile v3.2.0 [INFO] [stderr] Checking postgres-protocol v0.6.2 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking postgres-types v0.2.2 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Checking predicates v2.1.0 [INFO] [stderr] Checking assert_cmd v2.0.2 [INFO] [stderr] Checking tokio-util v0.6.9 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Checking structopt v0.3.25 [INFO] [stderr] Checking futures-executor v0.3.17 [INFO] [stderr] Checking futures v0.3.17 [INFO] [stderr] Checking tokio-postgres v0.7.5 [INFO] [stderr] Checking postgres v0.19.2 [INFO] [stderr] Checking serde_yaml v0.8.21 [INFO] [stderr] Checking grant v0.0.1-beta.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/cli.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CustomError(String); [INFO] [stdout] | ----------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `CustomError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/cli.rs:5:24 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CustomError(String); [INFO] [stdout] | ----------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `CustomError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CustomError` is never constructed [INFO] [stdout] --> src/cli.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CustomError(String); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CustomError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/config.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl Connection { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 33 | pub fn new(type_: ConnectionType, url: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `validate`, `get_level_type`, and `is_none` are never used [INFO] [stdout] --> src/config.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl RoleLevelType { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 90 | pub fn validate(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn get_level_type(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn is_none(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_sql_revoke` is never used [INFO] [stdout] --> src/config.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 130 | impl RoleDatabaseLevel { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn to_sql_revoke(&self, user: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_sql_revoke` is never used [INFO] [stdout] --> src/config.rs:248:12 [INFO] [stdout] | [INFO] [stdout] 216 | impl RoleSchemaLevel { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 248 | pub fn to_sql_revoke(&self, user: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_sql_revoke` is never used [INFO] [stdout] --> src/config.rs:333:12 [INFO] [stdout] | [INFO] [stdout] 292 | impl RoleTableLevel { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 333 | pub fn to_sql_revoke(&self, user: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `to_sql_create`, `to_sql_drop`, and `get_roles` are never used [INFO] [stdout] --> src/config.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 388 | impl User { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 389 | pub fn to_sql_create(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 398 | pub fn to_sql_drop(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 422 | pub fn get_roles(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/config.rs:440:12 [INFO] [stdout] | [INFO] [stdout] 439 | impl Role { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 440 | pub fn to_sql(&self, user: String, grant: bool) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 448 | pub fn to_sql_grant(&self, user: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 452 | pub fn to_sql_revoke(&self, user: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 472 | pub fn get_level(&self) -> RoleLevelType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 480 | pub fn get_grants(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 488 | pub fn get_databases(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 496 | pub fn get_schemas(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 504 | pub fn get_tables(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_str` is never used [INFO] [stdout] --> src/config.rs:558:12 [INFO] [stdout] | [INFO] [stdout] 545 | impl Config { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 558 | pub fn from_str(config_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `connection_info` is never read [INFO] [stdout] --> src/connection.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct DbConnection { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 11 | pub connection_info: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `database_name`, `has_create`, and `has_temp` are never read [INFO] [stdout] --> src/connection.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct UserDatabaseRole { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 36 | pub name: String, [INFO] [stdout] 37 | pub database_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 38 | pub has_create: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 39 | pub has_temp: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserDatabaseRole` 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 `schema_name`, `has_create`, and `has_usage` are never read [INFO] [stdout] --> src/connection.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct UserSchemaRole { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 44 | pub name: String, [INFO] [stdout] 45 | pub schema_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 46 | pub has_create: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 47 | pub has_usage: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserSchemaRole` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/connection.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct UserTableRole { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 52 | pub name: String, [INFO] [stdout] 53 | pub schema_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 54 | pub table_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 55 | pub has_select: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 56 | pub has_insert: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 57 | pub has_update: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 58 | pub has_delete: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 59 | pub has_references: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserTableRole` 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 items `new_from_string`, `connection_info`, `drop_user`, and `update_user_password` are never used [INFO] [stdout] --> src/connection.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl DbConnection { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn new_from_string(connection_info: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn connection_info(self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn drop_user(&mut self, user: &User) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn update_user_password(&mut self, user: &User) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CustomError` is never constructed [INFO] [stdout] --> src/cli.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct CustomError(String); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CustomError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/config.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 32 | impl Connection { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 33 | pub fn new(type_: ConnectionType, url: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `validate`, `get_level_type`, and `is_none` are never used [INFO] [stdout] --> src/config.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl RoleLevelType { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] 90 | pub fn validate(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn get_level_type(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn is_none(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_sql_revoke` is never used [INFO] [stdout] --> src/config.rs:162:12 [INFO] [stdout] | [INFO] [stdout] 130 | impl RoleDatabaseLevel { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn to_sql_revoke(&self, user: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_sql_revoke` is never used [INFO] [stdout] --> src/config.rs:248:12 [INFO] [stdout] | [INFO] [stdout] 216 | impl RoleSchemaLevel { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 248 | pub fn to_sql_revoke(&self, user: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_sql_revoke` is never used [INFO] [stdout] --> src/config.rs:333:12 [INFO] [stdout] | [INFO] [stdout] 292 | impl RoleTableLevel { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 333 | pub fn to_sql_revoke(&self, user: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `connection_info` is never read [INFO] [stdout] --> src/connection.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct DbConnection { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 11 | pub connection_info: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `database_name` and `has_temp` are never read [INFO] [stdout] --> src/connection.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct UserDatabaseRole { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 36 | pub name: String, [INFO] [stdout] 37 | pub database_name: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 38 | pub has_create: bool, [INFO] [stdout] 39 | pub has_temp: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserDatabaseRole` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `schema_name` is never read [INFO] [stdout] --> src/connection.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct UserSchemaRole { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 44 | pub name: String, [INFO] [stdout] 45 | pub schema_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserSchemaRole` 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 `schema_name`, `table_name`, `has_insert`, `has_update`, `has_delete`, and `has_references` are never read [INFO] [stdout] --> src/connection.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct UserTableRole { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 52 | pub name: String, [INFO] [stdout] 53 | pub schema_name: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 54 | pub table_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 55 | pub has_select: bool, [INFO] [stdout] 56 | pub has_insert: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 57 | pub has_update: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 58 | pub has_delete: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 59 | pub has_references: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserTableRole` 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 `connection_info` and `update_user_password` are never used [INFO] [stdout] --> src/connection.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl DbConnection { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn connection_info(self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn update_user_password(&mut self, user: &User) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.04s [INFO] running `Command { std: "docker" "inspect" "dd49c2d6ce4eccfd989aae3281f0df401247ece4cf2da5467217edc6d6701715", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd49c2d6ce4eccfd989aae3281f0df401247ece4cf2da5467217edc6d6701715", kill_on_drop: false }` [INFO] [stdout] dd49c2d6ce4eccfd989aae3281f0df401247ece4cf2da5467217edc6d6701715