[INFO] cloning repository https://github.com/vivekvpandya/solana-did [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vivekvpandya/solana-did" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvivekvpandya%2Fsolana-did", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvivekvpandya%2Fsolana-did'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 46de93e269cc218be148aa63ab646e0b2042b914 [INFO] testing vivekvpandya/solana-did against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvivekvpandya%2Fsolana-did" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vivekvpandya/solana-did [INFO] finished tweaking git repo https://github.com/vivekvpandya/solana-did [INFO] tweaked toml for git repo https://github.com/vivekvpandya/solana-did written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vivekvpandya/solana-did on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vivekvpandya/solana-did 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d60f09ea263475763cab1fc8377aba30dc8589e4c658293248347d4b67bc0394 [INFO] running `Command { std: "docker" "start" "-a" "d60f09ea263475763cab1fc8377aba30dc8589e4c658293248347d4b67bc0394", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d60f09ea263475763cab1fc8377aba30dc8589e4c658293248347d4b67bc0394", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d60f09ea263475763cab1fc8377aba30dc8589e4c658293248347d4b67bc0394", kill_on_drop: false }` [INFO] [stdout] d60f09ea263475763cab1fc8377aba30dc8589e4c658293248347d4b67bc0394 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8a1df84bace3b42f173e04abaf0a15fb1ce8e0e5c9749400b3f164abf7490b9 [INFO] running `Command { std: "docker" "start" "-a" "d8a1df84bace3b42f173e04abaf0a15fb1ce8e0e5c9749400b3f164abf7490b9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Compiling syn v1.0.72 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling memchr v2.4.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.6.8 [INFO] [stderr] Compiling rustversion v1.0.4 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling cc v1.0.67 [INFO] [stderr] Compiling solana-frozen-abi v1.6.8 [INFO] [stderr] Compiling cpufeatures v0.1.1 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling bs58 v0.3.1 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling solana-program v1.6.8 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling bytemuck v1.5.1 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling generic-array v0.12.4 [INFO] [stderr] Compiling checked_int_cast v1.0.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling blake3 v0.3.7 [INFO] [stderr] Compiling digest v0.8.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling memmap2 v0.1.0 [INFO] [stderr] Compiling clap v2.33.3 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling curve25519-dalek v2.1.2 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling env_logger v0.8.3 [INFO] [stderr] Compiling solana-logger v1.6.8 [INFO] [stderr] Compiling qrcode v0.12.0 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.8.2 [INFO] [stderr] Compiling borsh-derive-internal v0.8.2 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling solana-sdk-macro v1.6.8 [INFO] [stderr] Compiling thiserror v1.0.24 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling sha2 v0.9.4 [INFO] [stderr] Compiling borsh-derive v0.8.2 [INFO] [stderr] Compiling borsh v0.8.2 [INFO] [stderr] Compiling solana-did v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `input_graph` [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let input_graph = matches.value_of("input").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_graph` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEST_KEY_ID` is never used [INFO] [stdout] --> src/main.rs:46:15 [INFO] [stdout] | [INFO] [stdout] 46 | pub const TEST_KEY_ID: &str = "did:sol:FcFhBFRf6smQ48p7jFcE35uNuE9ScuUu6R2rdFtWjWhP#key1"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEST_DID` is never used [INFO] [stdout] --> src/main.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | pub const TEST_DID: &str = "did:sol:FcFhBFRf6smQ48p7jFcE35uNuE9ScuUu6R2rdFtWjWhP"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_did` is never used [INFO] [stdout] --> src/main.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn test_did(sol_data: &'static SolData) -> DecentralizedIdentifier { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_vecs` is never used [INFO] [stdout] --> src/state.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn merge_vecs(lhs: &mut Vec, rhs: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/state.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 51 | impl SolData { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 52 | /// Default size of struct [INFO] [stdout] 53 | pub const DEFAULT_SIZE: usize = 1_000; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn did(&self) -> DecentralizedIdentifier { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn new_sparse(authority: Pubkey) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn inferred_verification_methods(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn inferred_capability_invocation(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn write_authorized_pubkeys(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn merge(&mut self, other: SolData) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ClusterType` is never used [INFO] [stdout] --> src/state.rs:136:10 [INFO] [stdout] | [INFO] [stdout] 136 | pub enum ClusterType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `did_identifier` is never used [INFO] [stdout] --> src/state.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 153 | impl ClusterType { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 154 | /// Return the DID-compatible identifier, added after "did:sol:" [INFO] [stdout] 155 | pub fn did_identifier(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_sol_address_with_seed` is never used [INFO] [stdout] --> src/state.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn get_sol_address_with_seed(authority: &Pubkey) -> (Pubkey, u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DecentralizedIdentifier` is never constructed [INFO] [stdout] --> src/state.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 186 | pub struct DecentralizedIdentifier<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/state.rs:195:12 [INFO] [stdout] | [INFO] [stdout] 193 | impl<'a> DecentralizedIdentifier<'a> { [INFO] [stdout] | ------------------------------------ associated function in this implementation [INFO] [stdout] 194 | /// Create new DID when no additional identifier is specified [INFO] [stdout] 195 | pub fn new(sol_data: &'a SolData) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_default` and `new` are never used [INFO] [stdout] --> src/state.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 232 | impl VerificationMethod { [INFO] [stdout] | ----------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 242 | pub fn new_default(pubkey: Pubkey) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub fn new(pubkey: Pubkey, id: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/main.rs:50:52 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn test_did(sol_data: &'static SolData) -> DecentralizedIdentifier { [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'static` [INFO] [stdout] | [INFO] [stdout] 50 | pub fn test_did(sol_data: &'static SolData) -> DecentralizedIdentifier<'static> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:10:35 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_SolError` [INFO] [stdout] 11 | pub enum SolError { [INFO] [stdout] | -------- `SolError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/state.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn did(&self) -> DecentralizedIdentifier { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 58 | pub fn did(&self) -> DecentralizedIdentifier<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 34.19s [INFO] running `Command { std: "docker" "inspect" "d8a1df84bace3b42f173e04abaf0a15fb1ce8e0e5c9749400b3f164abf7490b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8a1df84bace3b42f173e04abaf0a15fb1ce8e0e5c9749400b3f164abf7490b9", kill_on_drop: false }` [INFO] [stdout] d8a1df84bace3b42f173e04abaf0a15fb1ce8e0e5c9749400b3f164abf7490b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dc95f176838630d0b684dd10ea082817a701d5f92dd782ec0514a90a8c87eced [INFO] running `Command { std: "docker" "start" "-a" "dc95f176838630d0b684dd10ea082817a701d5f92dd782ec0514a90a8c87eced", kill_on_drop: false }` [INFO] [stderr] Compiling solana-did v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `input_graph` [INFO] [stdout] --> src/main.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | let input_graph = matches.value_of("input").unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_graph` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `merge_vecs` is never used [INFO] [stdout] --> src/state.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn merge_vecs(lhs: &mut Vec, rhs: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/state.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 51 | impl SolData { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 52 | /// Default size of struct [INFO] [stdout] 53 | pub const DEFAULT_SIZE: usize = 1_000; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn did(&self) -> DecentralizedIdentifier { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn new_sparse(authority: Pubkey) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn inferred_verification_methods(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn inferred_capability_invocation(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn write_authorized_pubkeys(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn merge(&mut self, other: SolData) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ClusterType` is never used [INFO] [stdout] --> src/state.rs:136:10 [INFO] [stdout] | [INFO] [stdout] 136 | pub enum ClusterType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `did_identifier` is never used [INFO] [stdout] --> src/state.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 153 | impl ClusterType { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 154 | /// Return the DID-compatible identifier, added after "did:sol:" [INFO] [stdout] 155 | pub fn did_identifier(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_sol_address_with_seed` is never used [INFO] [stdout] --> src/state.rs:180:8 [INFO] [stdout] | [INFO] [stdout] 180 | pub fn get_sol_address_with_seed(authority: &Pubkey) -> (Pubkey, u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_default` and `new` are never used [INFO] [stdout] --> src/state.rs:242:12 [INFO] [stdout] | [INFO] [stdout] 232 | impl VerificationMethod { [INFO] [stdout] | ----------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 242 | pub fn new_default(pubkey: Pubkey) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 248 | pub fn new(pubkey: Pubkey, id: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stdout] --> src/main.rs:50:52 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn test_did(sol_data: &'static SolData) -> DecentralizedIdentifier { [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is named here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: consistently use `'static` [INFO] [stdout] | [INFO] [stdout] 50 | pub fn test_did(sol_data: &'static SolData) -> DecentralizedIdentifier<'static> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/error.rs:10:35 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)] [INFO] [stdout] | ^------------ [INFO] [stdout] | | [INFO] [stdout] | `FromPrimitive` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_SolError` [INFO] [stdout] 11 | pub enum SolError { [INFO] [stdout] | -------- `SolError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/state.rs:58:16 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn did(&self) -> DecentralizedIdentifier { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 58 | pub fn did(&self) -> DecentralizedIdentifier<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.64s [INFO] running `Command { std: "docker" "inspect" "dc95f176838630d0b684dd10ea082817a701d5f92dd782ec0514a90a8c87eced", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc95f176838630d0b684dd10ea082817a701d5f92dd782ec0514a90a8c87eced", kill_on_drop: false }` [INFO] [stdout] dc95f176838630d0b684dd10ea082817a701d5f92dd782ec0514a90a8c87eced [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 396ed3ff64c36652b4d543e42242b6d622db6176ea445b0060b9efaeac2cab60 [INFO] running `Command { std: "docker" "start" "-a" "396ed3ff64c36652b4d543e42242b6d622db6176ea445b0060b9efaeac2cab60", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `input_graph` [INFO] [stderr] --> src/main.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 36 | let input_graph = matches.value_of("input").unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_input_graph` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: function `merge_vecs` is never used [INFO] [stderr] --> src/state.rs:9:4 [INFO] [stderr] | [INFO] [stderr] 9 | fn merge_vecs(lhs: &mut Vec, rhs: Vec) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/state.rs:53:15 [INFO] [stderr] | [INFO] [stderr] 51 | impl SolData { [INFO] [stderr] | ------------ associated items in this implementation [INFO] [stderr] 52 | /// Default size of struct [INFO] [stderr] 53 | pub const DEFAULT_SIZE: usize = 1_000; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 58 | pub fn did(&self) -> DecentralizedIdentifier { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 68 | pub fn new_sparse(authority: Pubkey) -> Self { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 85 | pub fn inferred_verification_methods(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 101 | pub fn inferred_capability_invocation(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 110 | pub fn write_authorized_pubkeys(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 119 | pub fn merge(&mut self, other: SolData) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `ClusterType` is never used [INFO] [stderr] --> src/state.rs:136:10 [INFO] [stderr] | [INFO] [stderr] 136 | pub enum ClusterType { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `did_identifier` is never used [INFO] [stderr] --> src/state.rs:155:12 [INFO] [stderr] | [INFO] [stderr] 153 | impl ClusterType { [INFO] [stderr] | ---------------- method in this implementation [INFO] [stderr] 154 | /// Return the DID-compatible identifier, added after "did:sol:" [INFO] [stderr] 155 | pub fn did_identifier(&self) -> &str { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_sol_address_with_seed` is never used [INFO] [stderr] --> src/state.rs:180:8 [INFO] [stderr] | [INFO] [stderr] 180 | pub fn get_sol_address_with_seed(authority: &Pubkey) -> (Pubkey, u8) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `new_default` and `new` are never used [INFO] [stderr] --> src/state.rs:242:12 [INFO] [stderr] | [INFO] [stderr] 232 | impl VerificationMethod { [INFO] [stderr] | ----------------------- associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 242 | pub fn new_default(pubkey: Pubkey) -> Self { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 248 | pub fn new(pubkey: Pubkey, id: String) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's named elsewhere is confusing [INFO] [stderr] --> src/main.rs:50:52 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn test_did(sol_data: &'static SolData) -> DecentralizedIdentifier { [INFO] [stderr] | ------- ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is named here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: consistently use `'static` [INFO] [stderr] | [INFO] [stderr] 50 | pub fn test_did(sol_data: &'static SolData) -> DecentralizedIdentifier<'static> { [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/error.rs:10:35 [INFO] [stderr] | [INFO] [stderr] 10 | #[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)] [INFO] [stderr] | ^------------ [INFO] [stderr] | | [INFO] [stderr] | `FromPrimitive` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_NUM_FromPrimitive_FOR_SolError` [INFO] [stderr] 11 | pub enum SolError { [INFO] [stderr] | -------- `SolError` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `FromPrimitive` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `FromPrimitive` may come from an old version of the `num_derive` crate, try updating your dependency with `cargo update -p num_derive` [INFO] [stderr] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `FromPrimitive` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/state.rs:58:16 [INFO] [stderr] | [INFO] [stderr] 58 | pub fn did(&self) -> DecentralizedIdentifier { [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 58 | pub fn did(&self) -> DecentralizedIdentifier<'_> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `solana-did` (bin "solana-did" test) generated 10 warnings (run `cargo fix --bin "solana-did" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/solana_did-c2560154d0efd963) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test state::test_id ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "396ed3ff64c36652b4d543e42242b6d622db6176ea445b0060b9efaeac2cab60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "396ed3ff64c36652b4d543e42242b6d622db6176ea445b0060b9efaeac2cab60", kill_on_drop: false }` [INFO] [stdout] 396ed3ff64c36652b4d543e42242b6d622db6176ea445b0060b9efaeac2cab60