[INFO] fetching crate ccp-randomx 0.13.2... [INFO] checking ccp-randomx-0.13.2 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate ccp-randomx 0.13.2 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate ccp-randomx 0.13.2 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 ccp-randomx 0.13.2 [INFO] finished tweaking crates.io crate ccp-randomx 0.13.2 [INFO] tweaked toml for crates.io crate ccp-randomx 0.13.2 written to /workspace/builds/worker-5-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 79 packages to latest compatible versions [INFO] [stderr] Adding hashbrown v0.12.3 (available: v0.14.5) [INFO] [stderr] Adding indexmap v1.9.3 (available: v2.5.0) [INFO] [stderr] Adding rustc_version v0.1.7 (available: v0.4.1) [INFO] [stderr] Adding semver v0.1.20 (available: v1.0.23) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-core v0.52.0 (available: v0.58.0) [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] e816cd99edc6018e109a91e85cc8c7ce5423dbf4fcfdeb4bc645b985d3c3a102 [INFO] running `Command { std: "docker" "start" "-a" "e816cd99edc6018e109a91e85cc8c7ce5423dbf4fcfdeb4bc645b985d3c3a102", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e816cd99edc6018e109a91e85cc8c7ce5423dbf4fcfdeb4bc645b985d3c3a102", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e816cd99edc6018e109a91e85cc8c7ce5423dbf4fcfdeb4bc645b985d3c3a102", kill_on_drop: false }` [INFO] [stdout] e816cd99edc6018e109a91e85cc8c7ce5423dbf4fcfdeb4bc645b985d3c3a102 [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] 85b6dedd578096c6747a7cd0643b4e64b27aebbdc8e2ac7fe4f140f5a847c05e [INFO] running `Command { std: "docker" "start" "-a" "85b6dedd578096c6747a7cd0643b4e64b27aebbdc8e2ac7fe4f140f5a847c05e", 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 semver v0.1.20 [INFO] [stderr] Compiling cmake v0.1.51 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Checking thiserror v1.0.64 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Compiling ccp-randomx v0.13.2 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Compiling newtype_derive v0.1.6 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Compiling serde_with_macros v3.9.0 [INFO] [stderr] Checking serde v1.0.210 [INFO] [stderr] Checking serde_with v3.9.0 [INFO] [stderr] Checking ccp-shared v0.13.3 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `ccp_randomx` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lib.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/lib.rs:50:6 [INFO] [stderr] | [INFO] [stderr] 50 | ($alloc:expr_2021, $error: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/lib.rs:50:24 [INFO] [stderr] | [INFO] [stderr] 50 | ($alloc:expr_2021, $error: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: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 21 | | #[doc = " @return The recommended flags to be used on the current machine. [INFO] [stdout] 22 | | Does not include: [INFO] [stdout] 23 | | - RANDOMX_FLAG_LARGE_PAGES [INFO] [stdout] ... | [INFO] [stdout] 29 | | pub fn randomx_get_flags() -> randomx_flags; [INFO] [stdout] 30 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 43 | | #[doc = " Creates a randomx_cache structure and allocates memory for RandomX Cache. [INFO] [stdout] 44 | | [INFO] [stdout] 45 | | @param flags is any combination of these 2 flags (each flag can be set or not set): [INFO] [stdout] ... | [INFO] [stdout] 61 | | pub fn randomx_alloc_cache(flags: randomx_flags) -> *mut randomx_cache; [INFO] [stdout] 62 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 65 | | #[doc = " Initializes the cache memory and SuperscalarHash using the provided key value. [INFO] [stdout] 66 | | Does nothing if called again with the same key value. [INFO] [stdout] ... | [INFO] [stdout] 76 | | ); [INFO] [stdout] 77 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 80 | | #[doc = " Releases all memory occupied by the randomx_cache structure. [INFO] [stdout] 81 | | [INFO] [stdout] 82 | | @param cache is a pointer to a previously allocated randomx_cache structure. [INFO] [stdout] 83 | | "] [INFO] [stdout] 84 | | pub fn randomx_release_cache(cache: *mut randomx_cache); [INFO] [stdout] 85 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 99 | | #[doc = " Creates a randomx_dataset structure and allocates memory for RandomX Dataset. [INFO] [stdout] 100 | | [INFO] [stdout] 101 | | @param flags is the initialization flags. Only one flag is supported (can be set or not set): [INFO] [stdout] ... | [INFO] [stdout] 107 | | pub fn randomx_alloc_dataset(flags: randomx_flags) -> *mut randomx_dataset; [INFO] [stdout] 108 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 111 | | #[doc = " Gets the number of items contained in the dataset. [INFO] [stdout] 112 | | [INFO] [stdout] 113 | | @return the number of items contained in the dataset. [INFO] [stdout] 114 | | "] [INFO] [stdout] 115 | | pub fn randomx_dataset_item_count() -> ::std::os::raw::c_ulong; [INFO] [stdout] 116 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 119 | | #[doc = " Initializes dataset items. [INFO] [stdout] 120 | | [INFO] [stdout] 121 | | Note: In order to use the Dataset, all items from 0 to (randomx_dataset_item_count() - 1) must be initialized. [INFO] [stdout] ... | [INFO] [stdout] 134 | | ); [INFO] [stdout] 135 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 138 | | #[doc = " Returns a pointer to the internal memory buffer of the dataset structure. The size [INFO] [stdout] 139 | | of the internal memory buffer is randomx_dataset_item_count() * RANDOMX_DATASET_ITEM_SIZE. [INFO] [stdout] ... | [INFO] [stdout] 146 | | ) -> *mut ::std::os::raw::c_void; [INFO] [stdout] 147 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 150 | | #[doc = " Releases all memory occupied by the randomx_dataset structure.\ [INFO] [stdout] 151 | | @param dataset is a pointer to a previously allocated randomx_dataset structure.\ [INFO] [stdout] 152 | | "] [INFO] [stdout] 153 | | pub fn randomx_release_dataset(dataset: *mut randomx_dataset); [INFO] [stdout] 154 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 169 | | #[doc = " Creates and initializes a RandomX virtual machine. [INFO] [stdout] 170 | | [INFO] [stdout] 171 | | @param flags is any combination of these 5 flags (each flag can be set or not set): [INFO] [stdout] ... | [INFO] [stdout] 197 | | ) -> *mut randomx_vm; [INFO] [stdout] 198 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 201 | | #[doc = " Reinitializes a virtual machine with a new Cache. This function should be called anytime [INFO] [stdout] 202 | | the Cache is reinitialized with a new key. Does nothing if called with a Cache containing [INFO] [stdout] 203 | | the same key value as already set. [INFO] [stdout] ... | [INFO] [stdout] 209 | | pub fn randomx_vm_set_cache(machine: *mut randomx_vm, cache: *mut randomx_cache); [INFO] [stdout] 210 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 212 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 213 | | #[doc = " Reinitializes a virtual machine with a new Dataset. [INFO] [stdout] 214 | | @param machine is a pointer to a randomx_vm structure that was initialized [INFO] [stdout] 215 | | with RANDOMX_FLAG_FULL_MEM. Must not be NULL. [INFO] [stdout] ... | [INFO] [stdout] 218 | | pub fn randomx_vm_set_dataset(machine: *mut randomx_vm, dataset: *mut randomx_dataset); [INFO] [stdout] 219 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:221:5 [INFO] [stdout] | [INFO] [stdout] 221 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 222 | | #[doc = " Releases all memory occupied by the randomx_vm structure. [INFO] [stdout] 223 | | @param machine is a pointer to a previously created randomx_vm structure.\ [INFO] [stdout] 224 | | "] [INFO] [stdout] 225 | | pub fn randomx_destroy_vm(machine: *mut randomx_vm); [INFO] [stdout] 226 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:228:5 [INFO] [stdout] | [INFO] [stdout] 228 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 229 | | #[doc = " Calculates a RandomX hash value. [INFO] [stdout] 230 | | @param machine is a pointer to a randomx_vm structure. Must not be NULL. [INFO] [stdout] 231 | | @param input is a pointer to memory to be hashed. Must not be NULL. [INFO] [stdout] ... | [INFO] [stdout] 241 | | ); [INFO] [stdout] 242 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 245 | | #[doc = " Set of functions used to calculate multiple RandomX hashes more efficiently. [INFO] [stdout] 246 | | randomx_calculate_hash_first will begin a hash calculation. [INFO] [stdout] 247 | | randomx_calculate_hash_next will output the hash value of the previous input [INFO] [stdout] ... | [INFO] [stdout] 264 | | ); [INFO] [stdout] 265 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 267 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 268 | | pub fn randomx_calculate_hash_next( [INFO] [stdout] 269 | | machine: *mut randomx_vm, [INFO] [stdout] 270 | | nextInput: *const ::std::os::raw::c_void, [INFO] [stdout] ... | [INFO] [stdout] 273 | | ); [INFO] [stdout] 274 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:276:5 [INFO] [stdout] | [INFO] [stdout] 276 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 277 | | pub fn randomx_calculate_hash_last( [INFO] [stdout] 278 | | machine: *mut randomx_vm, [INFO] [stdout] 279 | | output: *mut ::std::os::raw::c_void, [INFO] [stdout] 280 | | ); [INFO] [stdout] 281 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | ($alloc:expr, $error: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] 50 | ($alloc:expr_2021, $error: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/lib.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | ($alloc:expr, $error: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] 50 | ($alloc:expr, $error:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `ccp_randomx` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lib.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/lib.rs:50:6 [INFO] [stderr] | [INFO] [stderr] 50 | ($alloc:expr_2021, $error: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/lib.rs:50:24 [INFO] [stderr] | [INFO] [stderr] 50 | ($alloc:expr_2021, $error: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: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 21 | | #[doc = " @return The recommended flags to be used on the current machine. [INFO] [stdout] 22 | | Does not include: [INFO] [stdout] 23 | | - RANDOMX_FLAG_LARGE_PAGES [INFO] [stdout] ... | [INFO] [stdout] 29 | | pub fn randomx_get_flags() -> randomx_flags; [INFO] [stdout] 30 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] = note: `--force-warn missing-unsafe-on-extern` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 43 | | #[doc = " Creates a randomx_cache structure and allocates memory for RandomX Cache. [INFO] [stdout] 44 | | [INFO] [stdout] 45 | | @param flags is any combination of these 2 flags (each flag can be set or not set): [INFO] [stdout] ... | [INFO] [stdout] 61 | | pub fn randomx_alloc_cache(flags: randomx_flags) -> *mut randomx_cache; [INFO] [stdout] 62 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 65 | | #[doc = " Initializes the cache memory and SuperscalarHash using the provided key value. [INFO] [stdout] 66 | | Does nothing if called again with the same key value. [INFO] [stdout] ... | [INFO] [stdout] 76 | | ); [INFO] [stdout] 77 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 80 | | #[doc = " Releases all memory occupied by the randomx_cache structure. [INFO] [stdout] 81 | | [INFO] [stdout] 82 | | @param cache is a pointer to a previously allocated randomx_cache structure. [INFO] [stdout] 83 | | "] [INFO] [stdout] 84 | | pub fn randomx_release_cache(cache: *mut randomx_cache); [INFO] [stdout] 85 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 99 | | #[doc = " Creates a randomx_dataset structure and allocates memory for RandomX Dataset. [INFO] [stdout] 100 | | [INFO] [stdout] 101 | | @param flags is the initialization flags. Only one flag is supported (can be set or not set): [INFO] [stdout] ... | [INFO] [stdout] 107 | | pub fn randomx_alloc_dataset(flags: randomx_flags) -> *mut randomx_dataset; [INFO] [stdout] 108 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 111 | | #[doc = " Gets the number of items contained in the dataset. [INFO] [stdout] 112 | | [INFO] [stdout] 113 | | @return the number of items contained in the dataset. [INFO] [stdout] 114 | | "] [INFO] [stdout] 115 | | pub fn randomx_dataset_item_count() -> ::std::os::raw::c_ulong; [INFO] [stdout] 116 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 119 | | #[doc = " Initializes dataset items. [INFO] [stdout] 120 | | [INFO] [stdout] 121 | | Note: In order to use the Dataset, all items from 0 to (randomx_dataset_item_count() - 1) must be initialized. [INFO] [stdout] ... | [INFO] [stdout] 134 | | ); [INFO] [stdout] 135 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 138 | | #[doc = " Returns a pointer to the internal memory buffer of the dataset structure. The size [INFO] [stdout] 139 | | of the internal memory buffer is randomx_dataset_item_count() * RANDOMX_DATASET_ITEM_SIZE. [INFO] [stdout] ... | [INFO] [stdout] 146 | | ) -> *mut ::std::os::raw::c_void; [INFO] [stdout] 147 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 150 | | #[doc = " Releases all memory occupied by the randomx_dataset structure.\ [INFO] [stdout] 151 | | @param dataset is a pointer to a previously allocated randomx_dataset structure.\ [INFO] [stdout] 152 | | "] [INFO] [stdout] 153 | | pub fn randomx_release_dataset(dataset: *mut randomx_dataset); [INFO] [stdout] 154 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 169 | | #[doc = " Creates and initializes a RandomX virtual machine. [INFO] [stdout] 170 | | [INFO] [stdout] 171 | | @param flags is any combination of these 5 flags (each flag can be set or not set): [INFO] [stdout] ... | [INFO] [stdout] 197 | | ) -> *mut randomx_vm; [INFO] [stdout] 198 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 201 | | #[doc = " Reinitializes a virtual machine with a new Cache. This function should be called anytime [INFO] [stdout] 202 | | the Cache is reinitialized with a new key. Does nothing if called with a Cache containing [INFO] [stdout] 203 | | the same key value as already set. [INFO] [stdout] ... | [INFO] [stdout] 209 | | pub fn randomx_vm_set_cache(machine: *mut randomx_vm, cache: *mut randomx_cache); [INFO] [stdout] 210 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 212 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 213 | | #[doc = " Reinitializes a virtual machine with a new Dataset. [INFO] [stdout] 214 | | @param machine is a pointer to a randomx_vm structure that was initialized [INFO] [stdout] 215 | | with RANDOMX_FLAG_FULL_MEM. Must not be NULL. [INFO] [stdout] ... | [INFO] [stdout] 218 | | pub fn randomx_vm_set_dataset(machine: *mut randomx_vm, dataset: *mut randomx_dataset); [INFO] [stdout] 219 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:221:5 [INFO] [stdout] | [INFO] [stdout] 221 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 222 | | #[doc = " Releases all memory occupied by the randomx_vm structure. [INFO] [stdout] 223 | | @param machine is a pointer to a previously created randomx_vm structure.\ [INFO] [stdout] 224 | | "] [INFO] [stdout] 225 | | pub fn randomx_destroy_vm(machine: *mut randomx_vm); [INFO] [stdout] 226 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:228:5 [INFO] [stdout] | [INFO] [stdout] 228 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 229 | | #[doc = " Calculates a RandomX hash value. [INFO] [stdout] 230 | | @param machine is a pointer to a randomx_vm structure. Must not be NULL. [INFO] [stdout] 231 | | @param input is a pointer to memory to be hashed. Must not be NULL. [INFO] [stdout] ... | [INFO] [stdout] 241 | | ); [INFO] [stdout] 242 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 245 | | #[doc = " Set of functions used to calculate multiple RandomX hashes more efficiently. [INFO] [stdout] 246 | | randomx_calculate_hash_first will begin a hash calculation. [INFO] [stdout] 247 | | randomx_calculate_hash_next will output the hash value of the previous input [INFO] [stdout] ... | [INFO] [stdout] 264 | | ); [INFO] [stdout] 265 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 267 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 268 | | pub fn randomx_calculate_hash_next( [INFO] [stdout] 269 | | machine: *mut randomx_vm, [INFO] [stdout] 270 | | nextInput: *const ::std::os::raw::c_void, [INFO] [stdout] ... | [INFO] [stdout] 273 | | ); [INFO] [stdout] 274 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/bindings.rs:276:5 [INFO] [stdout] | [INFO] [stdout] 276 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _____help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 277 | | pub fn randomx_calculate_hash_last( [INFO] [stdout] 278 | | machine: *mut randomx_vm, [INFO] [stdout] 279 | | output: *mut ::std::os::raw::c_void, [INFO] [stdout] 280 | | ); [INFO] [stdout] 281 | | } [INFO] [stdout] | |_____^ [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 #123743 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | ($alloc:expr, $error: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] 50 | ($alloc:expr_2021, $error: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/lib.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | ($alloc:expr, $error: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] 50 | ($alloc:expr, $error:expr_2021) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.61s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling ccp-randomx v0.13.2 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | / extern "C" { [INFO] [stdout] 21 | | #[doc = " @return The recommended flags to be used on the current machine. [INFO] [stdout] 22 | | Does not include: [INFO] [stdout] 23 | | - RANDOMX_FLAG_LARGE_PAGES [INFO] [stdout] ... | [INFO] [stdout] 29 | | pub fn randomx_get_flags() -> randomx_flags; [INFO] [stdout] 30 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / extern "C" { [INFO] [stdout] 43 | | #[doc = " Creates a randomx_cache structure and allocates memory for RandomX Cache. [INFO] [stdout] 44 | | [INFO] [stdout] 45 | | @param flags is any combination of these 2 flags (each flag can be set or not set): [INFO] [stdout] ... | [INFO] [stdout] 61 | | pub fn randomx_alloc_cache(flags: randomx_flags) -> *mut randomx_cache; [INFO] [stdout] 62 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | / extern "C" { [INFO] [stdout] 65 | | #[doc = " Initializes the cache memory and SuperscalarHash using the provided key value. [INFO] [stdout] 66 | | Does nothing if called again with the same key value. [INFO] [stdout] ... | [INFO] [stdout] 76 | | ); [INFO] [stdout] 77 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | / extern "C" { [INFO] [stdout] 80 | | #[doc = " Releases all memory occupied by the randomx_cache structure. [INFO] [stdout] 81 | | [INFO] [stdout] 82 | | @param cache is a pointer to a previously allocated randomx_cache structure. [INFO] [stdout] 83 | | "] [INFO] [stdout] 84 | | pub fn randomx_release_cache(cache: *mut randomx_cache); [INFO] [stdout] 85 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | / extern "C" { [INFO] [stdout] 99 | | #[doc = " Creates a randomx_dataset structure and allocates memory for RandomX Dataset. [INFO] [stdout] 100 | | [INFO] [stdout] 101 | | @param flags is the initialization flags. Only one flag is supported (can be set or not set): [INFO] [stdout] ... | [INFO] [stdout] 107 | | pub fn randomx_alloc_dataset(flags: randomx_flags) -> *mut randomx_dataset; [INFO] [stdout] 108 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | / extern "C" { [INFO] [stdout] 111 | | #[doc = " Gets the number of items contained in the dataset. [INFO] [stdout] 112 | | [INFO] [stdout] 113 | | @return the number of items contained in the dataset. [INFO] [stdout] 114 | | "] [INFO] [stdout] 115 | | pub fn randomx_dataset_item_count() -> ::std::os::raw::c_ulong; [INFO] [stdout] 116 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | / extern "C" { [INFO] [stdout] 119 | | #[doc = " Initializes dataset items. [INFO] [stdout] 120 | | [INFO] [stdout] 121 | | Note: In order to use the Dataset, all items from 0 to (randomx_dataset_item_count() - 1) must be initialized. [INFO] [stdout] ... | [INFO] [stdout] 134 | | ); [INFO] [stdout] 135 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | / extern "C" { [INFO] [stdout] 138 | | #[doc = " Returns a pointer to the internal memory buffer of the dataset structure. The size [INFO] [stdout] 139 | | of the internal memory buffer is randomx_dataset_item_count() * RANDOMX_DATASET_ITEM_SIZE. [INFO] [stdout] ... | [INFO] [stdout] 146 | | ) -> *mut ::std::os::raw::c_void; [INFO] [stdout] 147 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / extern "C" { [INFO] [stdout] 150 | | #[doc = " Releases all memory occupied by the randomx_dataset structure.\ [INFO] [stdout] 151 | | @param dataset is a pointer to a previously allocated randomx_dataset structure.\ [INFO] [stdout] 152 | | "] [INFO] [stdout] 153 | | pub fn randomx_release_dataset(dataset: *mut randomx_dataset); [INFO] [stdout] 154 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | / extern "C" { [INFO] [stdout] 169 | | #[doc = " Creates and initializes a RandomX virtual machine. [INFO] [stdout] 170 | | [INFO] [stdout] 171 | | @param flags is any combination of these 5 flags (each flag can be set or not set): [INFO] [stdout] ... | [INFO] [stdout] 197 | | ) -> *mut randomx_vm; [INFO] [stdout] 198 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | / extern "C" { [INFO] [stdout] 201 | | #[doc = " Reinitializes a virtual machine with a new Cache. This function should be called anytime [INFO] [stdout] 202 | | the Cache is reinitialized with a new key. Does nothing if called with a Cache containing [INFO] [stdout] 203 | | the same key value as already set. [INFO] [stdout] ... | [INFO] [stdout] 209 | | pub fn randomx_vm_set_cache(machine: *mut randomx_vm, cache: *mut randomx_cache); [INFO] [stdout] 210 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 212 | / extern "C" { [INFO] [stdout] 213 | | #[doc = " Reinitializes a virtual machine with a new Dataset. [INFO] [stdout] 214 | | @param machine is a pointer to a randomx_vm structure that was initialized [INFO] [stdout] 215 | | with RANDOMX_FLAG_FULL_MEM. Must not be NULL. [INFO] [stdout] ... | [INFO] [stdout] 218 | | pub fn randomx_vm_set_dataset(machine: *mut randomx_vm, dataset: *mut randomx_dataset); [INFO] [stdout] 219 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:221:5 [INFO] [stdout] | [INFO] [stdout] 221 | / extern "C" { [INFO] [stdout] 222 | | #[doc = " Releases all memory occupied by the randomx_vm structure. [INFO] [stdout] 223 | | @param machine is a pointer to a previously created randomx_vm structure.\ [INFO] [stdout] 224 | | "] [INFO] [stdout] 225 | | pub fn randomx_destroy_vm(machine: *mut randomx_vm); [INFO] [stdout] 226 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | / extern "C" { [INFO] [stdout] 21 | | #[doc = " @return The recommended flags to be used on the current machine. [INFO] [stdout] 22 | | Does not include: [INFO] [stdout] 23 | | - RANDOMX_FLAG_LARGE_PAGES [INFO] [stdout] ... | [INFO] [stdout] 29 | | pub fn randomx_get_flags() -> randomx_flags; [INFO] [stdout] 30 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:228:5 [INFO] [stdout] | [INFO] [stdout] 228 | / extern "C" { [INFO] [stdout] 229 | | #[doc = " Calculates a RandomX hash value. [INFO] [stdout] 230 | | @param machine is a pointer to a randomx_vm structure. Must not be NULL. [INFO] [stdout] 231 | | @param input is a pointer to memory to be hashed. Must not be NULL. [INFO] [stdout] ... | [INFO] [stdout] 241 | | ); [INFO] [stdout] 242 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | / extern "C" { [INFO] [stdout] 245 | | #[doc = " Set of functions used to calculate multiple RandomX hashes more efficiently. [INFO] [stdout] 246 | | randomx_calculate_hash_first will begin a hash calculation. [INFO] [stdout] 247 | | randomx_calculate_hash_next will output the hash value of the previous input [INFO] [stdout] ... | [INFO] [stdout] 264 | | ); [INFO] [stdout] 265 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 267 | / extern "C" { [INFO] [stdout] 268 | | pub fn randomx_calculate_hash_next( [INFO] [stdout] 269 | | machine: *mut randomx_vm, [INFO] [stdout] 270 | | nextInput: *const ::std::os::raw::c_void, [INFO] [stdout] ... | [INFO] [stdout] 273 | | ); [INFO] [stdout] 274 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:276:5 [INFO] [stdout] | [INFO] [stdout] 276 | / extern "C" { [INFO] [stdout] 277 | | pub fn randomx_calculate_hash_last( [INFO] [stdout] 278 | | machine: *mut randomx_vm, [INFO] [stdout] 279 | | output: *mut ::std::os::raw::c_void, [INFO] [stdout] 280 | | ); [INFO] [stdout] 281 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | / extern "C" { [INFO] [stdout] 43 | | #[doc = " Creates a randomx_cache structure and allocates memory for RandomX Cache. [INFO] [stdout] 44 | | [INFO] [stdout] 45 | | @param flags is any combination of these 2 flags (each flag can be set or not set): [INFO] [stdout] ... | [INFO] [stdout] 61 | | pub fn randomx_alloc_cache(flags: randomx_flags) -> *mut randomx_cache; [INFO] [stdout] 62 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | / extern "C" { [INFO] [stdout] 65 | | #[doc = " Initializes the cache memory and SuperscalarHash using the provided key value. [INFO] [stdout] 66 | | Does nothing if called again with the same key value. [INFO] [stdout] ... | [INFO] [stdout] 76 | | ); [INFO] [stdout] 77 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | / extern "C" { [INFO] [stdout] 80 | | #[doc = " Releases all memory occupied by the randomx_cache structure. [INFO] [stdout] 81 | | [INFO] [stdout] 82 | | @param cache is a pointer to a previously allocated randomx_cache structure. [INFO] [stdout] 83 | | "] [INFO] [stdout] 84 | | pub fn randomx_release_cache(cache: *mut randomx_cache); [INFO] [stdout] 85 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:98:5 [INFO] [stdout] | [INFO] [stdout] 98 | / extern "C" { [INFO] [stdout] 99 | | #[doc = " Creates a randomx_dataset structure and allocates memory for RandomX Dataset. [INFO] [stdout] 100 | | [INFO] [stdout] 101 | | @param flags is the initialization flags. Only one flag is supported (can be set or not set): [INFO] [stdout] ... | [INFO] [stdout] 107 | | pub fn randomx_alloc_dataset(flags: randomx_flags) -> *mut randomx_dataset; [INFO] [stdout] 108 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | / extern "C" { [INFO] [stdout] 111 | | #[doc = " Gets the number of items contained in the dataset. [INFO] [stdout] 112 | | [INFO] [stdout] 113 | | @return the number of items contained in the dataset. [INFO] [stdout] 114 | | "] [INFO] [stdout] 115 | | pub fn randomx_dataset_item_count() -> ::std::os::raw::c_ulong; [INFO] [stdout] 116 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | / extern "C" { [INFO] [stdout] 119 | | #[doc = " Initializes dataset items. [INFO] [stdout] 120 | | [INFO] [stdout] 121 | | Note: In order to use the Dataset, all items from 0 to (randomx_dataset_item_count() - 1) must be initialized. [INFO] [stdout] ... | [INFO] [stdout] 134 | | ); [INFO] [stdout] 135 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | / extern "C" { [INFO] [stdout] 138 | | #[doc = " Returns a pointer to the internal memory buffer of the dataset structure. The size [INFO] [stdout] 139 | | of the internal memory buffer is randomx_dataset_item_count() * RANDOMX_DATASET_ITEM_SIZE. [INFO] [stdout] ... | [INFO] [stdout] 146 | | ) -> *mut ::std::os::raw::c_void; [INFO] [stdout] 147 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:149:5 [INFO] [stdout] | [INFO] [stdout] 149 | / extern "C" { [INFO] [stdout] 150 | | #[doc = " Releases all memory occupied by the randomx_dataset structure.\ [INFO] [stdout] 151 | | @param dataset is a pointer to a previously allocated randomx_dataset structure.\ [INFO] [stdout] 152 | | "] [INFO] [stdout] 153 | | pub fn randomx_release_dataset(dataset: *mut randomx_dataset); [INFO] [stdout] 154 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 168 | / extern "C" { [INFO] [stdout] 169 | | #[doc = " Creates and initializes a RandomX virtual machine. [INFO] [stdout] 170 | | [INFO] [stdout] 171 | | @param flags is any combination of these 5 flags (each flag can be set or not set): [INFO] [stdout] ... | [INFO] [stdout] 197 | | ) -> *mut randomx_vm; [INFO] [stdout] 198 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 200 | / extern "C" { [INFO] [stdout] 201 | | #[doc = " Reinitializes a virtual machine with a new Cache. This function should be called anytime [INFO] [stdout] 202 | | the Cache is reinitialized with a new key. Does nothing if called with a Cache containing [INFO] [stdout] 203 | | the same key value as already set. [INFO] [stdout] ... | [INFO] [stdout] 209 | | pub fn randomx_vm_set_cache(machine: *mut randomx_vm, cache: *mut randomx_cache); [INFO] [stdout] 210 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:212:5 [INFO] [stdout] | [INFO] [stdout] 212 | / extern "C" { [INFO] [stdout] 213 | | #[doc = " Reinitializes a virtual machine with a new Dataset. [INFO] [stdout] 214 | | @param machine is a pointer to a randomx_vm structure that was initialized [INFO] [stdout] 215 | | with RANDOMX_FLAG_FULL_MEM. Must not be NULL. [INFO] [stdout] ... | [INFO] [stdout] 218 | | pub fn randomx_vm_set_dataset(machine: *mut randomx_vm, dataset: *mut randomx_dataset); [INFO] [stdout] 219 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:221:5 [INFO] [stdout] | [INFO] [stdout] 221 | / extern "C" { [INFO] [stdout] 222 | | #[doc = " Releases all memory occupied by the randomx_vm structure. [INFO] [stdout] 223 | | @param machine is a pointer to a previously created randomx_vm structure.\ [INFO] [stdout] 224 | | "] [INFO] [stdout] 225 | | pub fn randomx_destroy_vm(machine: *mut randomx_vm); [INFO] [stdout] 226 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:228:5 [INFO] [stdout] | [INFO] [stdout] 228 | / extern "C" { [INFO] [stdout] 229 | | #[doc = " Calculates a RandomX hash value. [INFO] [stdout] 230 | | @param machine is a pointer to a randomx_vm structure. Must not be NULL. [INFO] [stdout] 231 | | @param input is a pointer to memory to be hashed. Must not be NULL. [INFO] [stdout] ... | [INFO] [stdout] 241 | | ); [INFO] [stdout] 242 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:244:5 [INFO] [stdout] | [INFO] [stdout] 244 | / extern "C" { [INFO] [stdout] 245 | | #[doc = " Set of functions used to calculate multiple RandomX hashes more efficiently. [INFO] [stdout] 246 | | randomx_calculate_hash_first will begin a hash calculation. [INFO] [stdout] 247 | | randomx_calculate_hash_next will output the hash value of the previous input [INFO] [stdout] ... | [INFO] [stdout] 264 | | ); [INFO] [stdout] 265 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:267:5 [INFO] [stdout] | [INFO] [stdout] 267 | / extern "C" { [INFO] [stdout] 268 | | pub fn randomx_calculate_hash_next( [INFO] [stdout] 269 | | machine: *mut randomx_vm, [INFO] [stdout] 270 | | nextInput: *const ::std::os::raw::c_void, [INFO] [stdout] ... | [INFO] [stdout] 273 | | ); [INFO] [stdout] 274 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/bindings.rs:276:5 [INFO] [stdout] | [INFO] [stdout] 276 | / extern "C" { [INFO] [stdout] 277 | | pub fn randomx_calculate_hash_last( [INFO] [stdout] 278 | | machine: *mut randomx_vm, [INFO] [stdout] 279 | | output: *mut ::std::os::raw::c_void, [INFO] [stdout] 280 | | ); [INFO] [stdout] 281 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 17 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ccp-randomx` (lib) due to 18 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ccp-randomx` (lib test) due to 18 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" "85b6dedd578096c6747a7cd0643b4e64b27aebbdc8e2ac7fe4f140f5a847c05e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85b6dedd578096c6747a7cd0643b4e64b27aebbdc8e2ac7fe4f140f5a847c05e", kill_on_drop: false }` [INFO] [stdout] 85b6dedd578096c6747a7cd0643b4e64b27aebbdc8e2ac7fe4f140f5a847c05e