[INFO] fetching crate hpke_pq 0.11.1... [INFO] checking hpke_pq-0.11.1 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate hpke_pq 0.11.1 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate hpke_pq 0.11.1 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate hpke_pq 0.11.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate hpke_pq 0.11.1 [INFO] tweaked toml for crates.io crate hpke_pq 0.11.1 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate crates.io crate hpke_pq 0.11.1 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 37ceba63fe506e39e5738c21d0a995ecca716d40f5d2d11d953d0f17d0f6b00a [INFO] running `Command { std: "docker" "start" "-a" "37ceba63fe506e39e5738c21d0a995ecca716d40f5d2d11d953d0f17d0f6b00a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "37ceba63fe506e39e5738c21d0a995ecca716d40f5d2d11d953d0f17d0f6b00a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "37ceba63fe506e39e5738c21d0a995ecca716d40f5d2d11d953d0f17d0f6b00a", kill_on_drop: false }` [INFO] [stdout] 37ceba63fe506e39e5738c21d0a995ecca716d40f5d2d11d953d0f17d0f6b00a [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fdc644c01c563cb82234cbc1fd10abfa0c7a951619b68a08a13c61df32616590 [INFO] running `Command { std: "docker" "start" "-a" "fdc644c01c563cb82234cbc1fd10abfa0c7a951619b68a08a13c61df32616590", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed Cargo.toml (1 fix) [INFO] [stderr] Compiling unicode-ident v1.0.8 [INFO] [stderr] Compiling libc v0.2.141 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Checking subtle v2.6.0 [INFO] [stderr] Checking cpufeatures v0.2.6 [INFO] [stderr] Compiling crossbeam-utils v0.8.15 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling serde_derive v1.0.160 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling crossbeam-epoch v0.9.14 [INFO] [stderr] Compiling serde v1.0.160 [INFO] [stderr] Checking const-oid v0.9.2 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling syn v2.0.68 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Compiling serde_json v1.0.95 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Checking crossbeam-deque v0.8.3 [INFO] [stderr] Checking crossbeam-channel v0.5.8 [INFO] [stderr] Checking getrandom v0.2.9 [INFO] [stderr] Checking num_cpus v1.15.0 [INFO] [stderr] Checking os_str_bytes v6.5.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ciborium-io v0.2.0 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Checking ff v0.13.0 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking plotters-backend v0.3.4 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking ciborium-ll v0.2.0 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking plotters-svg v0.3.3 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking textwrap v0.16.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking walkdir v2.3.3 [INFO] [stderr] Checking rayon v1.7.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v3.2.23 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking plotters v0.3.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Checking regex v1.7.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking hex-literal v0.4.1 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Checking zeroize v1.6.0 [INFO] [stderr] Checking der v0.7.3 [INFO] [stderr] Checking x25519-dalek v2.0.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking crypto-bigint v0.5.1 [INFO] [stderr] Checking sec1 v0.7.2 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking universal-hash v0.5.1 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Checking polyval v0.6.0 [INFO] [stderr] Checking poly1305 v0.8.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking sha2 v0.10.6 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking chacha20 v0.9.1 [INFO] [stderr] Checking hkdf v0.12.3 [INFO] [stderr] Checking ghash v0.5.0 [INFO] [stderr] Checking aes v0.8.2 [INFO] [stderr] Checking chacha20poly1305 v0.10.1 [INFO] [stderr] Checking elliptic-curve v0.13.4 [INFO] [stderr] Checking primeorder v0.13.1 [INFO] [stderr] Checking aes-gcm v0.10.1 [INFO] [stderr] Checking p256 v0.13.1 [INFO] [stderr] Checking hpke_pq v0.11.1 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/util.rs:63:15 [INFO] [stdout] | [INFO] [stdout] 63 | ( $maxlen:expr, $( $slice:expr ),* ) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 63 | ( $maxlen:expr_2021, $( $slice:expr ),* ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `hpke_pq` [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/util.rs:63:31 [INFO] [stdout] | [INFO] [stdout] 63 | ( $maxlen:expr, $( $slice:expr ),* ) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 63 | ( $maxlen:expr, $( $slice:expr_2021 ),* ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dhkex/ecdh_nistp.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | $curve_name:expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 4 | $curve_name:expr_2021, [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dhkex/ecdh_nistp.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | $keygen_bitmask:expr [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 10 | $keygen_bitmask:expr_2021 [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unused import: `ecdh_nistp::p256::DhP256` [INFO] [stdout] --> src/dhkex.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub use ecdh_nistp::p256::DhP256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/dhkex/ecdh_nistp.rs [INFO] [stdout] warning: unused import: `x25519::X25519` [INFO] [stdout] --> src/dhkex.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | pub use x25519::X25519; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/kem/dhkem.rs [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/kem/dhkem.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | $doc_str:expr [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 9 | $doc_str:expr_2021 [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/util.rs [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/dhkex/ecdh_nistp.rs:213:28 [INFO] [stdout] | [INFO] [stdout] 213 | if let Ok(sk) = PrivateKey::from_bytes(&buf) { [INFO] [stdout] | ^^^^^^^^^^^^^---------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] ... [INFO] [stdout] 231 | / nistp_dhkex!( [INFO] [stdout] 232 | | "P-256", [INFO] [stdout] 233 | | DhP256, [INFO] [stdout] 234 | | p256, [INFO] [stdout] ... | [INFO] [stdout] 238 | | 0xFF // RFC 9180 §7.1.3: The `bitmask` in DeriveKeyPair to be 0xFF for P-256 [INFO] [stdout] 239 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/dhkex/ecdh_nistp.rs:216:25 [INFO] [stdout] | [INFO] [stdout] 216 | } [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 231 | / nistp_dhkex!( [INFO] [stdout] 232 | | "P-256", [INFO] [stdout] 233 | | DhP256, [INFO] [stdout] 234 | | p256, [INFO] [stdout] ... | [INFO] [stdout] 238 | | 0xFF // RFC 9180 §7.1.3: The `bitmask` in DeriveKeyPair to be 0xFF for P-256 [INFO] [stdout] 239 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `nistp_dhkex` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/util.rs:63:7 [INFO] [stderr] | [INFO] [stderr] 63 | ( $maxlen:expr_2021, $( $slice:expr_2021 ),* ) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/util.rs:63:29 [INFO] [stderr] | [INFO] [stderr] 63 | ( $maxlen:expr_2021, $( $slice:expr_2021 ),* ) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dhkex/ecdh_nistp.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | $curve_name:expr_2021, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dhkex/ecdh_nistp.rs:10:9 [INFO] [stderr] | [INFO] [stderr] 10 | $keygen_bitmask:expr_2021 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/kem/dhkem.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | $doc_str:expr_2021 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Checking ciborium v0.2.0 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.4.0 [INFO] [stderr] Migrating benches/benches.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/client_server.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `hpke_pq` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/dhkex/ecdh_nistp.rs [INFO] [stderr] * src/kem/dhkem.rs [INFO] [stderr] * src/setup.rs [INFO] [stderr] * src/util.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/util.rs:63:7 [INFO] [stderr] | [INFO] [stderr] 63 | ( $maxlen:expr_2021, $( $slice:expr_2021 ),* ) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/test_util.rs:118:26 [INFO] [stdout] | [INFO] [stdout] 118 | let msg_len = csprng.gen::() as usize; [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] = note: `--force-warn keyword-idents-2024` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/util.rs:63:29 [INFO] [stderr] | [INFO] [stderr] 63 | ( $maxlen:expr_2021, $( $slice:expr_2021 ),* ) => {{ [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dhkex/ecdh_nistp.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | $curve_name:expr_2021, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/dhkex/ecdh_nistp.rs:10:9 [INFO] [stderr] | [INFO] [stderr] 10 | $keygen_bitmask:expr_2021 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/kem/dhkem.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | $doc_str:expr_2021 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/setup.rs:214:65 [INFO] [stderr] | [INFO] [stderr] 214 | ($test_name:ident, $aead_ty:ty, $kdf_ty:ty, $kem_ty:ty, $auth:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `256` [INFO] [stderr] --> src/dhkex/ecdh_nistp.rs:442:11 [INFO] [stderr] | [INFO] [stderr] 442 | #[cfg(feature = "256")] [INFO] [stderr] | ^^^^^^^^^^----- [INFO] [stderr] | | [INFO] [stderr] | help: there is a expected value with a similar name: `"p256"` [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `alloc`, `default`, `p256`, `p384`, `serde`, `serde_impls`, `std`, `x25519`, and `xyber768d00` [INFO] [stderr] = help: consider adding `256` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `384` [INFO] [stderr] --> src/dhkex/ecdh_nistp.rs:448:11 [INFO] [stderr] | [INFO] [stderr] 448 | #[cfg(feature = "384")] [INFO] [stderr] | ^^^^^^^^^^----- [INFO] [stderr] | | [INFO] [stderr] | help: there is a expected value with a similar name: `"p384"` [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `alloc`, `default`, `p256`, `p384`, `serde`, `serde_impls`, `std`, `x25519`, and `xyber768d00` [INFO] [stderr] = help: consider adding `384` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors; 2 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/test_util.rs:124:26 [INFO] [stdout] | [INFO] [stdout] 124 | let aad_len = csprng.gen::() as usize; [INFO] [stdout] | ^^^ help: you can use a raw identifier to stay compatible: `r#gen` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #49716 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/util.rs:63:15 [INFO] [stdout] | [INFO] [stdout] 63 | ( $maxlen:expr, $( $slice:expr ),* ) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 63 | ( $maxlen:expr_2021, $( $slice:expr ),* ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/util.rs:63:31 [INFO] [stdout] | [INFO] [stdout] 63 | ( $maxlen:expr, $( $slice:expr ),* ) => {{ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 63 | ( $maxlen:expr, $( $slice:expr_2021 ),* ) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dhkex/ecdh_nistp.rs:4:21 [INFO] [stdout] | [INFO] [stdout] 4 | $curve_name:expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 4 | $curve_name:expr_2021, [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/dhkex/ecdh_nistp.rs:10:25 [INFO] [stdout] | [INFO] [stdout] 10 | $keygen_bitmask:expr [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 10 | $keygen_bitmask:expr_2021 [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `256` [INFO] [stdout] --> src/dhkex/ecdh_nistp.rs:442:11 [INFO] [stdout] | [INFO] [stdout] 442 | #[cfg(feature = "256")] [INFO] [stdout] | ^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"p256"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `alloc`, `default`, `p256`, `p384`, `serde`, `serde_impls`, `std`, `x25519`, and `xyber768d00` [INFO] [stdout] = help: consider adding `256` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `384` [INFO] [stdout] --> src/dhkex/ecdh_nistp.rs:448:11 [INFO] [stdout] | [INFO] [stdout] 448 | #[cfg(feature = "384")] [INFO] [stdout] | ^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"p384"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `alloc`, `default`, `p256`, `p384`, `serde`, `serde_impls`, `std`, `x25519`, and `xyber768d00` [INFO] [stdout] = help: consider adding `384` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ecdh_nistp::p256::DhP256` [INFO] [stdout] --> src/dhkex.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub use ecdh_nistp::p256::DhP256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `x25519::X25519` [INFO] [stdout] --> src/dhkex.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | pub use x25519::X25519; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/kem/dhkem.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | $doc_str:expr [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 9 | $doc_str:expr_2021 [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/setup.rs:214:71 [INFO] [stdout] | [INFO] [stdout] 214 | ($test_name:ident, $aead_ty:ty, $kdf_ty:ty, $kem_ty:ty, $auth:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 214 | ($test_name:ident, $aead_ty:ty, $kdf_ty:ty, $kem_ty:ty, $auth:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/dhkex/ecdh_nistp.rs:213:28 [INFO] [stdout] | [INFO] [stdout] 213 | if let Ok(sk) = PrivateKey::from_bytes(&buf) { [INFO] [stdout] | ^^^^^^^^^^^^^---------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] ... [INFO] [stdout] 231 | / nistp_dhkex!( [INFO] [stdout] 232 | | "P-256", [INFO] [stdout] 233 | | DhP256, [INFO] [stdout] 234 | | p256, [INFO] [stdout] ... | [INFO] [stdout] 238 | | 0xFF // RFC 9180 §7.1.3: The `bitmask` in DeriveKeyPair to be 0xFF for P-256 [INFO] [stdout] 239 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/dhkex/ecdh_nistp.rs:216:25 [INFO] [stdout] | [INFO] [stdout] 216 | } [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 231 | / nistp_dhkex!( [INFO] [stdout] 232 | | "P-256", [INFO] [stdout] 233 | | DhP256, [INFO] [stdout] 234 | | p256, [INFO] [stdout] ... | [INFO] [stdout] 238 | | 0xFF // RFC 9180 §7.1.3: The `bitmask` in DeriveKeyPair to be 0xFF for P-256 [INFO] [stdout] 239 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `nistp_dhkex` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.14s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking hpke_pq v0.11.1 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/test_util.rs:118:26 [INFO] [stdout] | [INFO] [stdout] 118 | let msg_len = csprng.gen::() as usize; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 118 | let msg_len = csprng.r#gen::() as usize; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/test_util.rs:124:26 [INFO] [stdout] | [INFO] [stdout] 124 | let aad_len = csprng.gen::() as usize; [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 124 | let aad_len = csprng.r#gen::() as usize; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ecdh_nistp::p256::DhP256` [INFO] [stdout] --> src/dhkex.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub use ecdh_nistp::p256::DhP256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `x25519::X25519` [INFO] [stdout] --> src/dhkex.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | pub use x25519::X25519; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `256` [INFO] [stdout] --> src/dhkex/ecdh_nistp.rs:442:11 [INFO] [stdout] | [INFO] [stdout] 442 | #[cfg(feature = "256")] [INFO] [stdout] | ^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"p256"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `alloc`, `default`, `p256`, `p384`, `serde`, `serde_impls`, `std`, `x25519`, and `xyber768d00` [INFO] [stdout] = help: consider adding `256` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `384` [INFO] [stdout] --> src/dhkex/ecdh_nistp.rs:448:11 [INFO] [stdout] | [INFO] [stdout] 448 | #[cfg(feature = "384")] [INFO] [stdout] | ^^^^^^^^^^----- [INFO] [stdout] | | [INFO] [stdout] | help: there is a expected value with a similar name: `"p384"` [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `alloc`, `default`, `p256`, `p384`, `serde`, `serde_impls`, `std`, `x25519`, and `xyber768d00` [INFO] [stdout] = help: consider adding `384` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ecdh_nistp::p256::DhP256` [INFO] [stdout] --> src/dhkex.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | pub use ecdh_nistp::p256::DhP256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `x25519::X25519` [INFO] [stdout] --> src/dhkex.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | pub use x25519::X25519; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hpke_pq` (lib test) due to 3 previous errors; 4 warnings emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "fdc644c01c563cb82234cbc1fd10abfa0c7a951619b68a08a13c61df32616590", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdc644c01c563cb82234cbc1fd10abfa0c7a951619b68a08a13c61df32616590", kill_on_drop: false }` [INFO] [stdout] fdc644c01c563cb82234cbc1fd10abfa0c7a951619b68a08a13c61df32616590