[INFO] fetching crate age-plugin-yubikey 0.5.0... [INFO] checking age-plugin-yubikey-0.5.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate age-plugin-yubikey 0.5.0 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate age-plugin-yubikey 0.5.0 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] removed /workspace/builds/worker-5-tc2/source/rust-toolchain.toml [INFO] started tweaking crates.io crate age-plugin-yubikey 0.5.0 [INFO] finished tweaking crates.io crate age-plugin-yubikey 0.5.0 [INFO] tweaked toml for crates.io crate age-plugin-yubikey 0.5.0 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate crates.io crate age-plugin-yubikey 0.5.0 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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 21dc315b1b9f98b235f1fb204736518b72564d38337fdfb0a8e74531499932fa [INFO] running `Command { std: "docker" "start" "-a" "21dc315b1b9f98b235f1fb204736518b72564d38337fdfb0a8e74531499932fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "21dc315b1b9f98b235f1fb204736518b72564d38337fdfb0a8e74531499932fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "21dc315b1b9f98b235f1fb204736518b72564d38337fdfb0a8e74531499932fa", kill_on_drop: false }` [INFO] [stdout] 21dc315b1b9f98b235f1fb204736518b72564d38337fdfb0a8e74531499932fa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] a85e8958497da6715166aef45b0fdf48e93acc3d09bf090e807eb5c2f67f90e6 [INFO] running `Command { std: "docker" "start" "-a" "a85e8958497da6715166aef45b0fdf48e93acc3d09bf090e807eb5c2f67f90e6", 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] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking zeroize v1.8.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking base64ct v1.6.0 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Checking pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Checking der v0.7.9 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling indexmap v2.3.0 [INFO] [stderr] Compiling cc v1.1.7 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking spki v0.7.3 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking pkcs8 v0.10.2 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Checking ff v0.13.0 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Checking base16ct v0.2.0 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling winnow v0.6.18 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling tokio v1.38.1 [INFO] [stderr] Checking sec1 v0.7.3 [INFO] [stderr] Checking group v0.13.0 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Compiling rust-embed-utils v8.3.0 [INFO] [stderr] Checking crypto-bigint v0.5.5 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling type-map v0.5.0 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Checking rusticata-macros v4.1.0 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Checking elliptic-curve v0.13.8 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling asn1-rs-impl v0.1.0 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling asn1-rs-derive v0.4.0 [INFO] [stderr] Checking unic-langid-impl v0.9.5 [INFO] [stderr] Compiling rust-embed-impl v8.3.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking unic-langid v0.9.5 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling self_cell v1.0.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling self_cell v0.10.3 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking asn1-rs v0.5.2 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Compiling fluent-syntax v0.11.1 [INFO] [stderr] Checking cookie-factory v0.3.3 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking rfc6979 v0.4.0 [INFO] [stderr] Checking universal-hash v0.5.1 [INFO] [stderr] Compiling pcsc-sys v1.2.1 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Checking opaque-debug v0.3.1 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Compiling oid-registry v0.6.1 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Checking poly1305 v0.8.0 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Checking ecdsa v0.16.9 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Checking intl-memoizer v0.5.2 [INFO] [stderr] Checking intl_pluralrules v7.0.2 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking fluent-langneg v0.13.0 [INFO] [stderr] Checking primeorder v0.13.6 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Checking chacha20 v0.9.1 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Checking secrecy v0.8.0 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling serde_spanned v0.6.7 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling toml_edit v0.22.20 [INFO] [stderr] Compiling fluent-bundle v0.15.3 [INFO] [stderr] Checking fastrand v2.1.0 [INFO] [stderr] Compiling find-crate v0.6.3 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling fluent v0.16.1 [INFO] [stderr] Checking tempfile v3.11.0 [INFO] [stderr] Checking der-parser v8.2.0 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling hyper v0.14.30 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Checking chacha20poly1305 v0.10.1 [INFO] [stderr] Compiling toml v0.8.19 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling rust-embed v8.3.0 [INFO] [stderr] Compiling i18n-config v0.4.6 [INFO] [stderr] Checking pkcs1 v0.7.5 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking unicode-width v0.1.13 [INFO] [stderr] Checking data-encoding v2.6.0 [INFO] [stderr] Checking io_tee v0.1.1 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Checking x509-parser v0.14.0 [INFO] [stderr] Checking age-core v0.10.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling i18n-embed-impl v0.8.3 [INFO] [stderr] Checking pcsc v2.8.2 [INFO] [stderr] Checking rsa v0.9.0-pre.0 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Compiling i18n-embed v0.14.1 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Checking p384 v0.13.0 [INFO] [stderr] Checking p256 v0.13.2 [INFO] [stderr] Checking locale_config v0.3.0 [INFO] [stderr] Checking x509 v0.2.0 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling gumdrop_derive v0.8.1 [INFO] [stderr] Checking des v0.8.1 [INFO] [stderr] Checking pbkdf2 v0.12.2 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking home v0.5.5 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Checking bech32 v0.9.1 [INFO] [stderr] Compiling utf8-width v0.1.7 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking shell-words v1.1.0 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling byte-unit v4.0.19 [INFO] [stderr] Checking age-plugin v0.5.0 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Checking dialoguer v0.11.0 [INFO] [stderr] Compiling i18n-embed-fl v0.8.0 [INFO] [stderr] Checking gumdrop v0.8.1 [INFO] [stderr] Compiling which v5.0.0 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking yubikey v0.8.0-pre.0 [INFO] [stderr] Checking sysinfo v0.29.11 [INFO] [stderr] Compiling ping v0.5.2 [INFO] [stderr] Compiling users v0.11.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking roff v0.1.0 [INFO] [stderr] Checking man v0.3.0 [INFO] [stderr] Checking flate2 v1.0.31 [INFO] [stderr] Checking age-plugin-yubikey v0.5.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Compiling test-with v0.11.2 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `age_plugin_yubikey` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/error.rs [INFO] [stderr] * src/main.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/error.rs:11:39 [INFO] [stderr] | [INFO] [stderr] 11 | ($f:ident, $message_id:literal, $($kwarg: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/main.rs:71:29 [INFO] [stderr] | [INFO] [stderr] 71 | ($message_id:literal, $($kwarg: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 2 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] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/error.rs:11:46 [INFO] [stdout] | [INFO] [stdout] 11 | ($f:ident, $message_id:literal, $($kwarg: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] 11 | ($f:ident, $message_id:literal, $($kwarg: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/main.rs:71:36 [INFO] [stdout] | [INFO] [stdout] 71 | ($message_id:literal, $($kwarg: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] 71 | ($message_id:literal, $($kwarg:expr_2021),* $(,)*) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/main.rs:460:16 [INFO] [stdout] | [INFO] [stdout] 460 | if let Some((key, _, recipient)) = keys.into_iter().find(|(_, s, _)| s == &slot) { [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] = 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/main.rs:479:13 [INFO] [stdout] | [INFO] [stdout] 479 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 460 ~ match keys.into_iter().find(|(_, s, _)| s == &slot) { Some((key, _, recipient)) => { [INFO] [stdout] 461 | let recipient = recipient.expect("We checked this above"); [INFO] [stdout] ... [INFO] [stdout] 478 | } [INFO] [stdout] 479 ~ } _ => { [INFO] [stdout] 480 | let name = Input::::new() [INFO] [stdout] ... [INFO] [stdout] 585 | } [INFO] [stdout] 586 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator)>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/key.rs:395:13 [INFO] [stdout] | [INFO] [stdout] 395 | ) -> Result)>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/key.rs:394:14 [INFO] [stdout] | [INFO] [stdout] 394 | yubikey: &mut YubiKey, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 395 | ) -> Result)> + use<>, Error> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/key.rs:412:13 [INFO] [stdout] | [INFO] [stdout] 412 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/key.rs:411:14 [INFO] [stdout] | [INFO] [stdout] 411 | yubikey: &mut YubiKey, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 412 | ) -> Result + use<>, Error> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/key.rs:547:20 [INFO] [stdout] | [INFO] [stdout] 547 | if let Some(yk) = yubikey { [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] = 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/key.rs:549:17 [INFO] [stdout] | [INFO] [stdout] 549 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 547 ~ match yubikey { Some(yk) => { [INFO] [stdout] 548 | yk [INFO] [stdout] 549 ~ } _ => { [INFO] [stdout] 550 | // `confirm` is not available; fall back to `message` with a timeout. [INFO] [stdout] ... [INFO] [stdout] 590 | } [INFO] [stdout] 591 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/integration.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/generate-docs.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `age_plugin_yubikey` [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/error.rs:11:46 [INFO] [stdout] | [INFO] [stdout] 11 | ($f:ident, $message_id:literal, $($kwarg: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] 11 | ($f:ident, $message_id:literal, $($kwarg: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/main.rs:71:36 [INFO] [stdout] | [INFO] [stdout] 71 | ($message_id:literal, $($kwarg: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] 71 | ($message_id:literal, $($kwarg: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: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/main.rs:460:16 [INFO] [stdout] | [INFO] [stdout] 460 | if let Some((key, _, recipient)) = keys.into_iter().find(|(_, s, _)| s == &slot) { [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] = 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/main.rs:479:13 [INFO] [stdout] | [INFO] [stdout] 479 | } else { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 460 ~ match keys.into_iter().find(|(_, s, _)| s == &slot) { Some((key, _, recipient)) => { [INFO] [stdout] 461 | let recipient = recipient.expect("We checked this above"); [INFO] [stdout] ... [INFO] [stdout] 478 | } [INFO] [stdout] 479 ~ } _ => { [INFO] [stdout] 480 | let name = Input::::new() [INFO] [stdout] ... [INFO] [stdout] 585 | } [INFO] [stdout] 586 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: `impl Iterator)>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/key.rs:395:13 [INFO] [stdout] | [INFO] [stdout] 395 | ) -> Result)>, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/key.rs:394:14 [INFO] [stdout] | [INFO] [stdout] 394 | yubikey: &mut YubiKey, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 395 | ) -> Result)> + use<>, Error> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/error.rs [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/key.rs:412:13 [INFO] [stdout] | [INFO] [stdout] 412 | ) -> Result, Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/key.rs:411:14 [INFO] [stdout] | [INFO] [stdout] 411 | yubikey: &mut YubiKey, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 412 | ) -> Result + use<>, Error> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/main.rs [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/key.rs:547:20 [INFO] [stdout] | [INFO] [stdout] 547 | if let Some(yk) = yubikey { [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] = 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/key.rs:549:17 [INFO] [stdout] | [INFO] [stdout] 549 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 547 ~ match yubikey { Some(yk) => { [INFO] [stdout] 548 | yk [INFO] [stdout] 549 ~ } _ => { [INFO] [stdout] 550 | // `confirm` is not available; fall back to `message` with a timeout. [INFO] [stdout] ... [INFO] [stdout] 590 | } [INFO] [stdout] 591 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: 6 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/error.rs:11:39 [INFO] [stderr] | [INFO] [stderr] 11 | ($f:ident, $message_id:literal, $($kwarg: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/main.rs:71:29 [INFO] [stderr] | [INFO] [stderr] 71 | ($message_id:literal, $($kwarg: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 2 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] Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.52s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking age-plugin-yubikey v0.5.0 (/tmp/fixit) [INFO] [stdout] error[E0502]: cannot borrow `yubikey` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/main.rs:233:39 [INFO] [stdout] | [INFO] [stdout] 232 | for (key, slot, recipient) in key::list_compatible(&mut yubikey)? { [INFO] [stdout] | ----------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | a temporary with access to the mutable borrow is created here ... [INFO] [stdout] 233 | let stub = key::Stub::new(yubikey.serial(), slot, &recipient); [INFO] [stdout] | ^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 243 | } [INFO] [stdout] | - ... and the mutable borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `yubikey` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:234:58 [INFO] [stdout] | [INFO] [stdout] 232 | for (key, slot, recipient) in key::list_compatible(&mut yubikey)? { [INFO] [stdout] | ----------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] 233 | let stub = key::Stub::new(yubikey.serial(), slot, &recipient); [INFO] [stdout] 234 | let metadata = match util::Metadata::extract(&mut yubikey, slot, key.certificate(), all) [INFO] [stdout] | ^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 243 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `age-plugin-yubikey` (bin "age-plugin-yubikey") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0502]: cannot borrow `yubikey` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/main.rs:233:39 [INFO] [stdout] | [INFO] [stdout] 232 | for (key, slot, recipient) in key::list_compatible(&mut yubikey)? { [INFO] [stdout] | ----------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | a temporary with access to the mutable borrow is created here ... [INFO] [stdout] 233 | let stub = key::Stub::new(yubikey.serial(), slot, &recipient); [INFO] [stdout] | ^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 243 | } [INFO] [stdout] | - ... and the mutable borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `yubikey` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:234:58 [INFO] [stdout] | [INFO] [stdout] 232 | for (key, slot, recipient) in key::list_compatible(&mut yubikey)? { [INFO] [stdout] | ----------------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] 233 | let stub = key::Stub::new(yubikey.serial(), slot, &recipient); [INFO] [stdout] 234 | let metadata = match util::Metadata::extract(&mut yubikey, slot, key.certificate(), all) [INFO] [stdout] | ^^^^^^^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 243 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `ControlFlow, impl Iterator>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `age-plugin-yubikey` (bin "age-plugin-yubikey" test) due to 3 previous errors [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" "a85e8958497da6715166aef45b0fdf48e93acc3d09bf090e807eb5c2f67f90e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a85e8958497da6715166aef45b0fdf48e93acc3d09bf090e807eb5c2f67f90e6", kill_on_drop: false }` [INFO] [stdout] a85e8958497da6715166aef45b0fdf48e93acc3d09bf090e807eb5c2f67f90e6