[INFO] fetching crate rcc-aptos 0.1.0... [INFO] checking rcc-aptos-0.1.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate rcc-aptos 0.1.0 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate rcc-aptos 0.1.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] started tweaking crates.io crate rcc-aptos 0.1.0 [INFO] finished tweaking crates.io crate rcc-aptos 0.1.0 [INFO] tweaked toml for crates.io crate rcc-aptos 0.1.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 30 packages to latest compatible versions [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] da72f447dd3ea9f52218c0ce2f9f2d0bf0bff168d28e5702936377b4347540d9 [INFO] running `Command { std: "docker" "start" "-a" "da72f447dd3ea9f52218c0ce2f9f2d0bf0bff168d28e5702936377b4347540d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "da72f447dd3ea9f52218c0ce2f9f2d0bf0bff168d28e5702936377b4347540d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da72f447dd3ea9f52218c0ce2f9f2d0bf0bff168d28e5702936377b4347540d9", kill_on_drop: false }` [INFO] [stdout] da72f447dd3ea9f52218c0ce2f9f2d0bf0bff168d28e5702936377b4347540d9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 72ec12848fdfd66b815ca34ab71ae8226a955c28e1bf9180f88ccb4ecc86bdb6 [INFO] running `Command { std: "docker" "start" "-a" "72ec12848fdfd66b815ca34ab71ae8226a955c28e1bf9180f88ccb4ecc86bdb6", 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] Checking byteorder v1.5.0 [INFO] [stderr] Compiling ref-cast v1.0.23 [INFO] [stderr] Checking rcc-trait-chain v0.1.0 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling ref-cast-impl v1.0.23 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking thiserror v1.0.64 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking serde v1.0.210 [INFO] [stderr] Checking serde_bytes v0.11.15 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Checking bcs v0.1.6 [INFO] [stderr] Checking rcc-aptos v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `rcc_aptos` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/aptos_type/identifier.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/aptos_type/identifier.rs:278:6 [INFO] [stderr] | [INFO] [stderr] 278 | ($ident: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: `fuzzing` [INFO] [stderr] --> src/aptos_type/identifier.rs:79:17 [INFO] [stderr] | [INFO] [stderr] 79 | #[cfg(any(test, feature = "fuzzing"))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stderr] = help: consider adding `fuzzing` 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: `fuzzing` [INFO] [stderr] --> src/aptos_type/identifier.rs:83:17 [INFO] [stderr] | [INFO] [stderr] 83 | #[cfg(any(test, feature = "fuzzing"))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stderr] = help: consider adding `fuzzing` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `fuzzing` [INFO] [stderr] --> src/aptos_type/identifier.rs:91:12 [INFO] [stderr] | [INFO] [stderr] 91 | #[cfg_attr(feature = "fuzzing", derive(arbitrary::Arbitrary))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stderr] = help: consider adding `fuzzing` 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 1 previous error; 3 warnings emitted [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/aptos_type/account_address.rs:43:43 [INFO] [stdout] | [INFO] [stdout] 43 | let buf: [u8; Self::LENGTH] = rng.gen(); [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] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzzing` [INFO] [stdout] --> src/aptos_type/identifier.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | #[cfg(any(test, feature = "fuzzing"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stdout] = help: consider adding `fuzzing` 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: `fuzzing` [INFO] [stdout] --> src/aptos_type/identifier.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | #[cfg(any(test, feature = "fuzzing"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stdout] = help: consider adding `fuzzing` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzzing` [INFO] [stdout] --> src/aptos_type/identifier.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | #[cfg_attr(feature = "fuzzing", derive(arbitrary::Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stdout] = help: consider adding `fuzzing` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/aptos_type/identifier.rs:278:13 [INFO] [stdout] | [INFO] [stdout] 278 | ($ident: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] 278 | ($ident:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Module` [INFO] [stdout] --> src/aptos_type/mod.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | use module::{Module, ModuleBundle}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AptosTx` [INFO] [stdout] --> src/lib.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::parser::{AptosTx, Parser}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value::String` [INFO] [stdout] --> src/lib.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | use serde_json::Value::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_config_chain_id` is never used [INFO] [stdout] --> src/aptos_type/chain_id.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn deserialize_config_chain_id<'de, D>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `mainnet` is never used [INFO] [stdout] --> src/aptos_type/chain_id.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl ChainId { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn mainnet() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `code`, `ty_args`, `args`, and `into_inner` are never used [INFO] [stdout] --> src/aptos_type/script.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Script { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 30 | pub fn new(code: Vec, ty_args: Vec, args: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn code(&self) -> &[u8] { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn ty_args(&self) -> &[TypeTag] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn args(&self) -> &[TransactionArgument] { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn into_inner(self) -> (Vec, Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `module`, `function`, `ty_args`, `args`, and `into_inner` are never used [INFO] [stdout] --> src/aptos_type/script.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl EntryFunction { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 76 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn module(&self) -> &ModuleId { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn function(&self) -> &IdentStr { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn ty_args(&self) -> &[TypeTag] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn args(&self) -> &[Vec] { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn into_inner(self) -> (ModuleId, Identifier, Vec, Vec>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ALLOWED_NO_SELF_IDENTIFIERS` is never used [INFO] [stdout] --> src/aptos_type/identifier.rs:84:19 [INFO] [stdout] | [INFO] [stdout] 84 | pub(crate) static ALLOWED_NO_SELF_IDENTIFIERS: &str = [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CORE_CODE_ADDRESS` is never used [INFO] [stdout] --> src/aptos_type/language_storage.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub const CORE_CODE_ADDRESS: AccountAddress = AccountAddress::ONE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `address` and `type_` are never used [INFO] [stdout] --> src/aptos_type/language_storage.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl ResourceKey { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 104 | pub fn address(&self) -> AccountAddress { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn type_(&self) -> &StructTag { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/aptos_type/language_storage.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 113 | impl ResourceKey { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 114 | pub fn new(address: AccountAddress, type_: StructTag) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_txn_args` is never used [INFO] [stdout] --> src/aptos_type/transaction_argument.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn convert_txn_args(args: &[TransactionArgument]) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from` and `into_vec` are never used [INFO] [stdout] --> src/aptos_type/transaction_argument.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl VecBytes { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 92 | pub fn from(vec_bytes: Vec>) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn into_vec(self) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serialize_values` is never used [INFO] [stdout] --> src/aptos_type/value.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn serialize_values<'a, I>(vals: I) -> Vec> [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_string` and `parse_transaction_argument` are never used [INFO] [stdout] --> src/aptos_type/parser.rs:256:8 [INFO] [stdout] | [INFO] [stdout] 204 | impl> Parser { [INFO] [stdout] | ----------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 256 | fn parse_string(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 317 | fn parse_transaction_argument(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_string_list` is never used [INFO] [stdout] --> src/aptos_type/parser.rs:348:8 [INFO] [stdout] | [INFO] [stdout] 348 | pub fn parse_string_list(s: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_type_tags` is never used [INFO] [stdout] --> src/aptos_type/parser.rs:354:8 [INFO] [stdout] | [INFO] [stdout] 354 | pub fn parse_type_tags(s: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_transaction_arguments` is never used [INFO] [stdout] --> src/aptos_type/parser.rs:364:8 [INFO] [stdout] | [INFO] [stdout] 364 | pub fn parse_transaction_arguments(s: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_transaction_argument` is never used [INFO] [stdout] --> src/aptos_type/parser.rs:374:8 [INFO] [stdout] | [INFO] [stdout] 374 | pub fn parse_transaction_argument(s: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `code`, and `into_inner` are never used [INFO] [stdout] --> src/aptos_type/module.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Module { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(code: Vec) -> Module { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn code(&self) -> &[u8] { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn into_inner(self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `singleton`, `into_inner`, and `iter` are never used [INFO] [stdout] --> src/aptos_type/module.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl ModuleBundle { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 41 | pub fn new(codes: Vec>) -> ModuleBundle { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn singleton(code: Vec) -> ModuleBundle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn into_inner(self) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/aptos_type/transaction_argument.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 61 | if let MoveValue::U8(byte) = mv { [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/aptos_type/transaction_argument.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | } 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] 61 ~ match mv { MoveValue::U8(byte) => { [INFO] [stdout] 62 | Ok(byte) [INFO] [stdout] 63 ~ } _ => { [INFO] [stdout] 64 | Err(anyhow!("unexpected value in bytes: {:?}", mv)) [INFO] [stdout] 65 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/aptos_type/value.rs:323:15 [INFO] [stdout] | [INFO] [stdout] 323 | while let Some(elem) = seq.next_element_seed(self.0)? { [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/aptos_type/value.rs:325:9 [INFO] [stdout] | [INFO] [stdout] 325 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/aptos_type/parser.rs:193:11 [INFO] [stdout] | [INFO] [stdout] 193 | while let Some((tok, n)) = next_token(s)? { [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/aptos_type/parser.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 196 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/aptos_type/parser.rs:381:8 [INFO] [stdout] | [INFO] [stdout] 381 | if let TypeTag::Struct(struct_tag) = type_tag { [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/aptos_type/parser.rs:383:5 [INFO] [stdout] | [INFO] [stdout] 383 | } 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] 381 ~ match type_tag { TypeTag::Struct(struct_tag) => { [INFO] [stdout] 382 | Ok(*struct_tag) [INFO] [stdout] 383 ~ } _ => { [INFO] [stdout] 384 | bail!("invalid struct tag: {}", s) [INFO] [stdout] 385 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `rcc_aptos` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/aptos_type/identifier.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/aptos_type/identifier.rs:278:6 [INFO] [stderr] | [INFO] [stderr] 278 | ($ident: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: `fuzzing` [INFO] [stderr] --> src/aptos_type/identifier.rs:79:17 [INFO] [stderr] | [INFO] [stderr] 79 | #[cfg(any(test, feature = "fuzzing"))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stderr] = help: consider adding `fuzzing` 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: `fuzzing` [INFO] [stderr] --> src/aptos_type/identifier.rs:83:17 [INFO] [stderr] | [INFO] [stderr] 83 | #[cfg(any(test, feature = "fuzzing"))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stdout] warning: `gen` is a keyword in the 2024 edition [INFO] [stdout] --> src/aptos_type/account_address.rs:43:43 [INFO] [stdout] | [INFO] [stdout] 43 | let buf: [u8; Self::LENGTH] = rng.gen(); [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] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stderr] = help: consider adding `fuzzing` as a feature in `Cargo.toml` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `fuzzing` [INFO] [stderr] --> src/aptos_type/identifier.rs:91:12 [INFO] [stderr] | [INFO] [stderr] 91 | #[cfg_attr(feature = "fuzzing", derive(arbitrary::Arbitrary))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stderr] = help: consider adding `fuzzing` 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 1 previous error; 3 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: unexpected `cfg` condition value: `fuzzing` [INFO] [stdout] --> src/aptos_type/identifier.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | #[cfg(any(test, feature = "fuzzing"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stdout] = help: consider adding `fuzzing` 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: `fuzzing` [INFO] [stdout] --> src/aptos_type/identifier.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | #[cfg(any(test, feature = "fuzzing"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stdout] = help: consider adding `fuzzing` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzzing` [INFO] [stdout] --> src/aptos_type/identifier.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | #[cfg_attr(feature = "fuzzing", derive(arbitrary::Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stdout] = help: consider adding `fuzzing` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/aptos_type/identifier.rs:278:13 [INFO] [stdout] | [INFO] [stdout] 278 | ($ident: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] 278 | ($ident:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Module` [INFO] [stdout] --> src/aptos_type/mod.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | use module::{Module, ModuleBundle}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AptosTx` [INFO] [stdout] --> src/lib.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::parser::{AptosTx, Parser}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `deserialize_config_chain_id` is never used [INFO] [stdout] --> src/aptos_type/chain_id.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn deserialize_config_chain_id<'de, D>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `mainnet` is never used [INFO] [stdout] --> src/aptos_type/chain_id.rs:170:12 [INFO] [stdout] | [INFO] [stdout] 156 | impl ChainId { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 170 | pub fn mainnet() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `code`, `ty_args`, `args`, and `into_inner` are never used [INFO] [stdout] --> src/aptos_type/script.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl Script { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 30 | pub fn new(code: Vec, ty_args: Vec, args: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn code(&self) -> &[u8] { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn ty_args(&self) -> &[TypeTag] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn args(&self) -> &[TransactionArgument] { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn into_inner(self) -> (Vec, Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.08s [INFO] [stdout] warning: associated items `new`, `module`, `function`, `ty_args`, `args`, and `into_inner` are never used [INFO] [stdout] --> src/aptos_type/script.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 75 | impl EntryFunction { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 76 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn module(&self) -> &ModuleId { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn function(&self) -> &IdentStr { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 98 | pub fn ty_args(&self) -> &[TypeTag] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn args(&self) -> &[Vec] { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn into_inner(self) -> (ModuleId, Identifier, Vec, Vec>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CORE_CODE_ADDRESS` is never used [INFO] [stdout] --> src/aptos_type/language_storage.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub const CORE_CODE_ADDRESS: AccountAddress = AccountAddress::ONE; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `address` and `type_` are never used [INFO] [stdout] --> src/aptos_type/language_storage.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 103 | impl ResourceKey { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] 104 | pub fn address(&self) -> AccountAddress { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 108 | pub fn type_(&self) -> &StructTag { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/aptos_type/language_storage.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 113 | impl ResourceKey { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 114 | pub fn new(address: AccountAddress, type_: StructTag) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `convert_txn_args` is never used [INFO] [stdout] --> src/aptos_type/transaction_argument.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn convert_txn_args(args: &[TransactionArgument]) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from` and `into_vec` are never used [INFO] [stdout] --> src/aptos_type/transaction_argument.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 91 | impl VecBytes { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 92 | pub fn from(vec_bytes: Vec>) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn into_vec(self) -> Vec> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `serialize_values` is never used [INFO] [stdout] --> src/aptos_type/value.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | pub fn serialize_values<'a, I>(vals: I) -> Vec> [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_string` and `parse_transaction_argument` are never used [INFO] [stdout] --> src/aptos_type/parser.rs:256:8 [INFO] [stdout] | [INFO] [stdout] 204 | impl> Parser { [INFO] [stdout] | ----------------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 256 | fn parse_string(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 317 | fn parse_transaction_argument(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_string_list` is never used [INFO] [stdout] --> src/aptos_type/parser.rs:348:8 [INFO] [stdout] | [INFO] [stdout] 348 | pub fn parse_string_list(s: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_type_tags` is never used [INFO] [stdout] --> src/aptos_type/parser.rs:354:8 [INFO] [stdout] | [INFO] [stdout] 354 | pub fn parse_type_tags(s: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_transaction_arguments` is never used [INFO] [stdout] --> src/aptos_type/parser.rs:364:8 [INFO] [stdout] | [INFO] [stdout] 364 | pub fn parse_transaction_arguments(s: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_transaction_argument` is never used [INFO] [stdout] --> src/aptos_type/parser.rs:374:8 [INFO] [stdout] | [INFO] [stdout] 374 | pub fn parse_transaction_argument(s: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `code`, and `into_inner` are never used [INFO] [stdout] --> src/aptos_type/module.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Module { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 14 | pub fn new(code: Vec) -> Module { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn code(&self) -> &[u8] { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn into_inner(self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `singleton`, `into_inner`, and `iter` are never used [INFO] [stdout] --> src/aptos_type/module.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl ModuleBundle { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 41 | pub fn new(codes: Vec>) -> ModuleBundle { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn singleton(code: Vec) -> ModuleBundle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn into_inner(self) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/aptos_type/transaction_argument.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 61 | if let MoveValue::U8(byte) = mv { [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/aptos_type/transaction_argument.rs:63:25 [INFO] [stdout] | [INFO] [stdout] 63 | } 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] 61 ~ match mv { MoveValue::U8(byte) => { [INFO] [stdout] 62 | Ok(byte) [INFO] [stdout] 63 ~ } _ => { [INFO] [stdout] 64 | Err(anyhow!("unexpected value in bytes: {:?}", mv)) [INFO] [stdout] 65 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/aptos_type/value.rs:323:15 [INFO] [stdout] | [INFO] [stdout] 323 | while let Some(elem) = seq.next_element_seed(self.0)? { [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/aptos_type/value.rs:325:9 [INFO] [stdout] | [INFO] [stdout] 325 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/aptos_type/parser.rs:193:11 [INFO] [stdout] | [INFO] [stdout] 193 | while let Some((tok, n)) = next_token(s)? { [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/aptos_type/parser.rs:196:5 [INFO] [stdout] | [INFO] [stdout] 196 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/aptos_type/parser.rs:381:8 [INFO] [stdout] | [INFO] [stdout] 381 | if let TypeTag::Struct(struct_tag) = type_tag { [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/aptos_type/parser.rs:383:5 [INFO] [stdout] | [INFO] [stdout] 383 | } 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] 381 ~ match type_tag { TypeTag::Struct(struct_tag) => { [INFO] [stdout] 382 | Ok(*struct_tag) [INFO] [stdout] 383 ~ } _ => { [INFO] [stdout] 384 | bail!("invalid struct tag: {}", s) [INFO] [stdout] 385 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking rcc-aptos v0.1.0 (/tmp/fixit) [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/aptos_type/account_address.rs:43:43 [INFO] [stdout] | [INFO] [stdout] 43 | let buf: [u8; Self::LENGTH] = rng.gen(); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 43 | let buf: [u8; Self::LENGTH] = rng.r#gen(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected identifier, found reserved keyword `gen` [INFO] [stdout] --> src/aptos_type/account_address.rs:43:43 [INFO] [stdout] | [INFO] [stdout] 43 | let buf: [u8; Self::LENGTH] = rng.gen(); [INFO] [stdout] | ^^^ expected identifier, found reserved keyword [INFO] [stdout] | [INFO] [stdout] help: escape `gen` to use it as an identifier [INFO] [stdout] | [INFO] [stdout] 43 | let buf: [u8; Self::LENGTH] = rng.r#gen(); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzzing` [INFO] [stdout] --> src/aptos_type/identifier.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | #[cfg(any(test, feature = "fuzzing"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stdout] = help: consider adding `fuzzing` 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: `fuzzing` [INFO] [stdout] --> src/aptos_type/identifier.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | #[cfg(any(test, feature = "fuzzing"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stdout] = help: consider adding `fuzzing` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzzing` [INFO] [stdout] --> src/aptos_type/identifier.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | #[cfg_attr(feature = "fuzzing", derive(arbitrary::Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stdout] = help: consider adding `fuzzing` 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: `Module` [INFO] [stdout] --> src/aptos_type/mod.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | use module::{Module, ModuleBundle}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AptosTx` [INFO] [stdout] --> src/lib.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::parser::{AptosTx, Parser}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzzing` [INFO] [stdout] --> src/aptos_type/identifier.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | #[cfg(any(test, feature = "fuzzing"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stdout] = help: consider adding `fuzzing` 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: `fuzzing` [INFO] [stdout] --> src/aptos_type/identifier.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | #[cfg(any(test, feature = "fuzzing"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stdout] = help: consider adding `fuzzing` as a feature in `Cargo.toml` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `fuzzing` [INFO] [stdout] --> src/aptos_type/identifier.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 91 | #[cfg_attr(feature = "fuzzing", derive(arbitrary::Arbitrary))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `address20`, `address32`, and `default` [INFO] [stdout] = help: consider adding `fuzzing` 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: `Module` [INFO] [stdout] --> src/aptos_type/mod.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 17 | use module::{Module, ModuleBundle}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AptosTx` [INFO] [stdout] --> src/lib.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::parser::{AptosTx, Parser}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::Value::String` [INFO] [stdout] --> src/lib.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | use serde_json::Value::String; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [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 `rcc-aptos` (lib) due to 2 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 1 previous error; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rcc-aptos` (lib test) due to 2 previous errors; 6 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" "72ec12848fdfd66b815ca34ab71ae8226a955c28e1bf9180f88ccb4ecc86bdb6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72ec12848fdfd66b815ca34ab71ae8226a955c28e1bf9180f88ccb4ecc86bdb6", kill_on_drop: false }` [INFO] [stdout] 72ec12848fdfd66b815ca34ab71ae8226a955c28e1bf9180f88ccb4ecc86bdb6