[INFO] fetching crate jwx 0.1.0... [INFO] checking jwx-0.1.0 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] extracting crate jwx 0.1.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate jwx 0.1.0 on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate jwx 0.1.0 [INFO] finished tweaking crates.io crate jwx 0.1.0 [INFO] tweaked toml for crates.io crate jwx 0.1.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 12 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.20.0 (latest: v0.22.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "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-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a38a29c84274f8aeeec48f79aa9b3f77c031e1f346f42600a4ad6d768160c76a [INFO] running `Command { std: "docker" "start" "-a" "a38a29c84274f8aeeec48f79aa9b3f77c031e1f346f42600a4ad6d768160c76a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a38a29c84274f8aeeec48f79aa9b3f77c031e1f346f42600a4ad6d768160c76a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a38a29c84274f8aeeec48f79aa9b3f77c031e1f346f42600a4ad6d768160c76a", kill_on_drop: false }` [INFO] [stdout] a38a29c84274f8aeeec48f79aa9b3f77c031e1f346f42600a4ad6d768160c76a [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 -Dtail_expr_drop_order" "-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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dfc624e730d9369dd15d01932ca28f756bbcc2e4b090040142b03a49e39ad618 [INFO] running `Command { std: "docker" "start" "-a" "dfc624e730d9369dd15d01932ca28f756bbcc2e4b090040142b03a49e39ad618", kill_on_drop: false }` [INFO] [stderr] Checking base64 v0.20.0 [INFO] [stderr] Checking serde_json v1.0.127 [INFO] [stderr] Checking jwx v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/jwk.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 44 | header: todo!(), [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 45 | payload: todo!(), [INFO] [stdout] | ^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/jwk.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 44 | header: todo!(), [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 45 | payload: todo!(), [INFO] [stdout] | ^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `todo` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/jwk.rs:42:29 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn decode(&self, token: &str) -> Result, Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/jwk.rs:50:29 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn verify(&self, token: &Jwt) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/jwk.rs:42:29 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn decode(&self, token: &str) -> Result, Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/jwk.rs:50:29 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn verify(&self, token: &Jwt) -> Result<(), Error> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/error.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum Type { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 21 | /// Token is invalid. [INFO] [stdout] 22 | Invalid, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | /// Token has expired. [INFO] [stdout] 24 | Expired, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | /// Not Before (nbf) is set and it's too early to use the token. [INFO] [stdout] 26 | Early, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | /// Problem with certificate. [INFO] [stdout] 28 | Certificate, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 29 | /// Problem with key. [INFO] [stdout] 30 | Key, [INFO] [stdout] | ^^^ [INFO] [stdout] 31 | /// Could not download key set. [INFO] [stdout] 32 | Connection, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 33 | /// Problem with JWT header. [INFO] [stdout] 34 | Header, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 35 | /// Problem with JWT payload. [INFO] [stdout] 36 | Payload, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 37 | /// Problem with JWT signature. [INFO] [stdout] 38 | Signature, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 39 | /// Internal problem (Signals a serious bug or fatal error). [INFO] [stdout] 40 | Internal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` 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 items `new`, `decode`, and `verify` are never used [INFO] [stdout] --> src/jwk.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Jwks { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 29 | pub fn new(url: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn decode(&self, token: &str) -> Result, Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn verify(&self, token: &Jwt) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `decode` is never used [INFO] [stdout] --> src/jwt.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 23 | impl Jwt { [INFO] [stdout] | -------------------------------- associated function in this implementation [INFO] [stdout] 24 | fn decode(token: &str) -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decode_segment` is never used [INFO] [stdout] --> src/jwt.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn decode_segment(segment: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/jwt.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 36 | let payload = decode_segment::(payload_segment) [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 39 | Ok(Jwt { [INFO] [stdout] | ____________^ [INFO] [stdout] 40 | | header, [INFO] [stdout] 41 | | payload, [INFO] [stdout] 42 | | signature, [INFO] [stdout] 43 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jwx` (lib) due to 2 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/error.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub enum Type { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 24 | Expired, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 25 | /// Not Before (nbf) is set and it's too early to use the token. [INFO] [stdout] 26 | Early, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 27 | /// Problem with certificate. [INFO] [stdout] 28 | Certificate, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 29 | /// Problem with key. [INFO] [stdout] 30 | Key, [INFO] [stdout] | ^^^ [INFO] [stdout] 31 | /// Could not download key set. [INFO] [stdout] 32 | Connection, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 33 | /// Problem with JWT header. [INFO] [stdout] 34 | Header, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 35 | /// Problem with JWT payload. [INFO] [stdout] 36 | Payload, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 37 | /// Problem with JWT signature. [INFO] [stdout] 38 | Signature, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 39 | /// Internal problem (Signals a serious bug or fatal error). [INFO] [stdout] 40 | Internal, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` 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 items `new`, `decode`, and `verify` are never used [INFO] [stdout] --> src/jwk.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl Jwks { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 29 | pub fn new(url: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn decode(&self, token: &str) -> Result, Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn verify(&self, token: &Jwt) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/jwt.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 36 | let payload = decode_segment::(payload_segment) [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 39 | Ok(Jwt { [INFO] [stdout] | ____________^ [INFO] [stdout] 40 | | header, [INFO] [stdout] 41 | | payload, [INFO] [stdout] 42 | | signature, [INFO] [stdout] 43 | | }) [INFO] [stdout] | | ^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `jwx` (lib test) due to 2 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "dfc624e730d9369dd15d01932ca28f756bbcc2e4b090040142b03a49e39ad618", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dfc624e730d9369dd15d01932ca28f756bbcc2e4b090040142b03a49e39ad618", kill_on_drop: false }` [INFO] [stdout] dfc624e730d9369dd15d01932ca28f756bbcc2e4b090040142b03a49e39ad618