[INFO] cloning repository https://github.com/domwoe/jwt_issuer_poc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/domwoe/jwt_issuer_poc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdomwoe%2Fjwt_issuer_poc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdomwoe%2Fjwt_issuer_poc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9fbf8b88216de888b08390d5099584f46ac5e51c [INFO] checking domwoe/jwt_issuer_poc against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdomwoe%2Fjwt_issuer_poc" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/domwoe/jwt_issuer_poc [INFO] finished tweaking git repo https://github.com/domwoe/jwt_issuer_poc [INFO] tweaked toml for git repo https://github.com/domwoe/jwt_issuer_poc written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/domwoe/jwt_issuer_poc on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/domwoe/jwt_issuer_poc 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cb039bbd168c451811ecf452a1ff2faa77cf97a6942de66a5cfe186e440c9a9b [INFO] running `Command { std: "docker" "start" "-a" "cb039bbd168c451811ecf452a1ff2faa77cf97a6942de66a5cfe186e440c9a9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cb039bbd168c451811ecf452a1ff2faa77cf97a6942de66a5cfe186e440c9a9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb039bbd168c451811ecf452a1ff2faa77cf97a6942de66a5cfe186e440c9a9b", kill_on_drop: false }` [INFO] [stdout] cb039bbd168c451811ecf452a1ff2faa77cf97a6942de66a5cfe186e440c9a9b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 47f3629cbd9596ab28635e7f801cf327138f8c4a32a3781a2e6fea87f27f6c7f [INFO] running `Command { std: "docker" "start" "-a" "47f3629cbd9596ab28635e7f801cf327138f8c4a32a3781a2e6fea87f27f6c7f", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling syn v1.0.99 [INFO] [stderr] Compiling serde v1.0.144 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Compiling smallvec v1.9.0 [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling lock_api v0.4.8 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling aho-corasick v0.7.19 [INFO] [stderr] Compiling siphasher v0.3.10 [INFO] [stderr] Checking block-buffer v0.10.3 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling rustversion v1.0.9 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking zeroize v1.5.7 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling ena v0.14.0 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling unicode-xid v0.2.3 [INFO] [stderr] Compiling anyhow v1.0.64 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Compiling pico-args v0.4.2 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Checking cpufeatures v0.2.5 [INFO] [stderr] Checking const-oid v0.9.0 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Checking base64ct v1.5.2 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling regex v1.6.0 [INFO] [stderr] Checking der v0.6.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Checking base16ct v0.1.1 [INFO] [stderr] Compiling serde_json v1.0.85 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Checking ff v0.12.0 [INFO] [stderr] Checking crypto-bigint v0.4.8 [INFO] [stderr] Checking sha2 v0.10.5 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling string_cache v0.8.4 [INFO] [stderr] Compiling petgraph v0.6.2 [INFO] [stderr] Compiling data-encoding v2.3.2 [INFO] [stderr] Checking ryu v1.0.11 [INFO] [stderr] Compiling typed-arena v2.0.1 [INFO] [stderr] Compiling unicode-width v0.1.9 [INFO] [stderr] Checking regex-syntax v0.6.27 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Checking group v0.12.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling pretty v0.10.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking spki v0.6.0 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Checking rfc6979 v0.3.0 [INFO] [stderr] Checking pkcs8 v0.9.0 [INFO] [stderr] Checking signature v1.6.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking base64-url v1.4.13 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking hex v0.3.2 [INFO] [stderr] Compiling lalrpop-util v0.19.8 [INFO] [stderr] Checking base58 v0.2.0 [INFO] [stderr] Compiling lalrpop v0.19.8 [INFO] [stderr] Compiling serde_derive v1.0.144 [INFO] [stderr] Compiling thiserror-impl v1.0.34 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling logos-derive v0.12.1 [INFO] [stderr] Compiling candid_derive v0.4.5 [INFO] [stderr] Compiling thiserror v1.0.34 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling logos v0.12.1 [INFO] [stderr] Compiling candid v0.7.16 [INFO] [stderr] Checking serde_bytes v0.11.7 [INFO] [stderr] Checking serdect v0.1.0 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Checking ic-types v0.4.2 [INFO] [stderr] Checking ic-certified-map v0.3.0 [INFO] [stderr] Checking sec1 v0.3.0 [INFO] [stderr] Compiling toml v0.5.9 [INFO] [stderr] Compiling serde_tokenstream v0.1.3 [INFO] [stderr] Checking elliptic-curve v0.12.3 [INFO] [stderr] Checking ecdsa v0.14.5 [INFO] [stderr] Checking k256 v0.11.4 [INFO] [stderr] Compiling proc-macro-crate v1.2.1 [INFO] [stderr] Compiling num_enum_derive v0.5.7 [INFO] [stderr] Compiling num_enum v0.5.7 [INFO] [stderr] Checking ic-cdk v0.5.6 [INFO] [stderr] Compiling ic-cdk-macros v0.5.6 [INFO] [stderr] Checking jwt_issuer_poc_backend v0.1.0 (/opt/rustwide/workdir/src/jwt_issuer_poc_backend) [INFO] [stdout] warning: unused import: `FromBase58` [INFO] [stdout] --> src/jwt_issuer_poc_backend/src/lib.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use base58::{ToBase58, FromBase58}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FromBase58` [INFO] [stdout] --> src/jwt_issuer_poc_backend/src/lib.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use base58::{ToBase58, FromBase58}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `prune_expired`, `len`, and `is_empty` are never used [INFO] [stdout] --> src/jwt_issuer_poc_backend/src/signature_map.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl SignatureMap { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn prune_expired(&mut self, now: u64, max_to_prune: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `prune_expired`, `len`, and `is_empty` are never used [INFO] [stdout] --> src/jwt_issuer_poc_backend/src/signature_map.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 45 | impl SignatureMap { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn prune_expired(&mut self, now: u64, max_to_prune: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/jwt_issuer_poc_backend/src/lib.rs:166:37 [INFO] [stdout] | [INFO] [stdout] 166 | let mut mac = MAC_KEY.with(|k| k.borrow().clone()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `CoreWrapper>>>` does not implement `Borrow`, so calling `borrow` on `&CoreWrapper>>>` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/jwt_issuer_poc_backend-2471fe4aa481134d.long-type-17883019325079787944.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 166 - let mut mac = MAC_KEY.with(|k| k.borrow().clone()); [INFO] [stdout] 166 + let mut mac = MAC_KEY.with(|k| k.clone()); [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `CoreWrapper>>>`, implement `Clone` for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/digest-0.10.3/src/core_api/wrapper.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + #[derive(Clone)] [INFO] [stdout] 23 | pub struct CoreWrapper [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 32], Infallible> [INFO] [stdout] --> src/jwt_issuer_poc_backend/src/lib.rs:211:22 [INFO] [stdout] | [INFO] [stdout] 211 | let hashed_msg = hashed.try_into().expect("Incorrect length"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 32], Infallible> [INFO] [stdout] --> src/jwt_issuer_poc_backend/src/lib.rs:218:23 [INFO] [stdout] | [INFO] [stdout] 218 | let hashed_seed = hasher.finalize().try_into().expect("Incorrect size"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.borrow()` on a reference in this situation does nothing [INFO] [stdout] --> src/jwt_issuer_poc_backend/src/lib.rs:166:37 [INFO] [stdout] | [INFO] [stdout] 166 | let mut mac = MAC_KEY.with(|k| k.borrow().clone()); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `CoreWrapper>>>` does not implement `Borrow`, so calling `borrow` on `&CoreWrapper>>>` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] = note: the full name for the type has been written to '/opt/rustwide/target/debug/deps/jwt_issuer_poc_backend-44e8c3a0e8e54136.long-type-13236633621067397884.txt' [INFO] [stdout] = note: consider using `--verbose` to print the full type name to the console [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 166 - let mut mac = MAC_KEY.with(|k| k.borrow().clone()); [INFO] [stdout] 166 + let mut mac = MAC_KEY.with(|k| k.clone()); [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `CoreWrapper>>>`, implement `Clone` for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/digest-0.10.3/src/core_api/wrapper.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 + #[derive(Clone)] [INFO] [stdout] 23 | pub struct CoreWrapper [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 32], Infallible> [INFO] [stdout] --> src/jwt_issuer_poc_backend/src/lib.rs:211:22 [INFO] [stdout] | [INFO] [stdout] 211 | let hashed_msg = hashed.try_into().expect("Incorrect length"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result<[u8; 32], Infallible> [INFO] [stdout] --> src/jwt_issuer_poc_backend/src/lib.rs:218:23 [INFO] [stdout] | [INFO] [stdout] 218 | let hashed_seed = hasher.finalize().try_into().expect("Incorrect size"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jwt_issuer_poc_backend` (lib) due to 2 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `jwt_issuer_poc_backend` (lib test) due to 2 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "47f3629cbd9596ab28635e7f801cf327138f8c4a32a3781a2e6fea87f27f6c7f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47f3629cbd9596ab28635e7f801cf327138f8c4a32a3781a2e6fea87f27f6c7f", kill_on_drop: false }` [INFO] [stdout] 47f3629cbd9596ab28635e7f801cf327138f8c4a32a3781a2e6fea87f27f6c7f