[INFO] fetching crate stylus-sdk 0.6.0... [INFO] checking stylus-sdk-0.6.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate stylus-sdk 0.6.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate stylus-sdk 0.6.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 stylus-sdk 0.6.0 [INFO] finished tweaking crates.io crate stylus-sdk 0.6.0 [INFO] tweaked toml for crates.io crate stylus-sdk 0.6.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 73 packages to latest compatible versions [INFO] [stderr] Adding alloy-primitives v0.7.6 (available: v0.7.7) [INFO] [stderr] Adding alloy-sol-macro v0.7.7 (available: v0.8.5) [INFO] [stderr] Adding alloy-sol-macro-expander v0.7.7 (available: v0.8.5) [INFO] [stderr] Adding alloy-sol-macro-input v0.7.7 (available: v0.8.5) [INFO] [stderr] Adding alloy-sol-types v0.7.6 (available: v0.7.7) [INFO] [stderr] Adding convert_case v0.4.0 (available: v0.6.0) [INFO] [stderr] Adding derive_more v0.99.18 (available: v1.0.0) [INFO] [stderr] Adding generic-array v0.14.7 (available: v1.1.0) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.77) [INFO] [stderr] Adding syn-solidity v0.7.7 (available: v0.8.5) [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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b72ea3717402d9f376a34a7dda4abed1e9b55575531e27c6dffb07f41c9d3f07 [INFO] running `Command { std: "docker" "start" "-a" "b72ea3717402d9f376a34a7dda4abed1e9b55575531e27c6dffb07f41c9d3f07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b72ea3717402d9f376a34a7dda4abed1e9b55575531e27c6dffb07f41c9d3f07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b72ea3717402d9f376a34a7dda4abed1e9b55575531e27c6dffb07f41c9d3f07", kill_on_drop: false }` [INFO] [stdout] b72ea3717402d9f376a34a7dda4abed1e9b55575531e27c6dffb07f41c9d3f07 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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] 87af1b97dcb6430c3997b3c97ba6a10f6339023e7708e847d2653ebae0db3b27 [INFO] running `Command { std: "docker" "start" "-a" "87af1b97dcb6430c3997b3c97ba6a10f6339023e7708e847d2653ebae0db3b27", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed Cargo.toml (1 fix) [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling const-hex v1.12.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling ruint-macro v1.2.1 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling ruint v1.12.3 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling indexmap v2.5.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling hex-literal v0.4.1 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling keccak v0.1.5 [INFO] [stderr] Compiling convert_case v0.6.0 [INFO] [stderr] Compiling syn-solidity v0.7.7 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Checking mini-alloc v0.6.0 [INFO] [stderr] Checking keccak-const v0.2.0 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling alloy-sol-macro-input v0.7.7 [INFO] [stderr] Compiling alloy-primitives v0.7.6 [INFO] [stderr] Compiling alloy-sol-macro-expander v0.7.7 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling alloy-sol-macro v0.7.7 [INFO] [stderr] Compiling alloy-sol-types v0.7.6 [INFO] [stderr] Compiling stylus-proc v0.6.0 [INFO] [stderr] Checking stylus-sdk v0.6.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 `stylus_sdk` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/abi/impls.rs [INFO] [stderr] * src/storage/bytes.rs [INFO] [stderr] * src/storage/mod.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/abi/impls.rs:11:16 [INFO] [stderr] | [INFO] [stderr] 11 | ($name:tt, $as_arg:expr_2021, $($ty:tt)*) => { [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/abi/impls.rs:33:6 [INFO] [stderr] | [INFO] [stderr] 33 | ($stem:expr_2021, $leaf: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/abi/impls.rs:33:23 [INFO] [stderr] | [INFO] [stderr] 33 | ($stem:expr_2021, $leaf: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/abi/impls.rs:39:6 [INFO] [stderr] | [INFO] [stderr] 39 | ($stem:expr_2021, $num: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/abi/impls.rs:39:23 [INFO] [stderr] | [INFO] [stderr] 39 | ($stem:expr_2021, $num: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/abi/impls.rs:78:21 [INFO] [stderr] | [INFO] [stderr] 78 | ($bits:literal, $as_arg:expr_2021, $unsigned:ty, $signed:ty) => { [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/storage/bytes.rs:106:14 [INFO] [stderr] | [INFO] [stderr] 106 | ($slot: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/storage/mod.rs:94:41 [INFO] [stderr] | [INFO] [stderr] 94 | ($($name:ident, $signed_name:ident, $bits:expr_2021, $limbs: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/storage/mod.rs:94:58 [INFO] [stderr] | [INFO] [stderr] 94 | ($($name:ident, $signed_name:ident, $bits:expr_2021, $limbs: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/storage/mod.rs:106:21 [INFO] [stderr] | [INFO] [stderr] 106 | ($($name:ident, $bits:expr_2021, $bytes:expr_2021;)*) => { [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/abi/impls.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | ($name:tt, $as_arg:expr, $($ty:tt)*) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 11 | ($name:tt, $as_arg:expr_2021, $($ty:tt)*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/abi/impls.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | ($stem:expr, $leaf: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] 33 | ($stem:expr_2021, $leaf:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/abi/impls.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | ($stem:expr, $leaf: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] 33 | ($stem:expr, $leaf:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/abi/impls.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | ($stem:expr, $num: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] 39 | ($stem:expr_2021, $num:expr) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/abi/impls.rs:39:23 [INFO] [stdout] | [INFO] [stdout] 39 | ($stem:expr, $num: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] 39 | ($stem:expr, $num:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/abi/impls.rs:78:29 [INFO] [stdout] | [INFO] [stdout] 78 | ($bits:literal, $as_arg:expr, $unsigned:ty, $signed:ty) => { [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] 78 | ($bits:literal, $as_arg:expr_2021, $unsigned:ty, $signed:ty) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/storage/bytes.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 106 | ($slot: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] 106 | ($slot:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/storage/mod.rs:94:47 [INFO] [stdout] | [INFO] [stdout] 94 | ($($name:ident, $signed_name:ident, $bits:expr, $limbs: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] 94 | ($($name:ident, $signed_name:ident, $bits:expr_2021, $limbs:expr;)*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/storage/mod.rs:106:38 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/storage/mod.rs:94:60 [INFO] [stdout] | [INFO] [stdout] 94 | ($($name:ident, $signed_name:ident, $bits:expr, $limbs: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] 94 | ($($name:ident, $signed_name:ident, $bits:expr, $limbs:expr_2021;)*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 106 | ($($name:ident, $bits:expr_2021, $bytes: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 11 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/storage/mod.rs:106:27 [INFO] [stdout] | [INFO] [stdout] 106 | ($($name:ident, $bits:expr, $bytes: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] 106 | ($($name:ident, $bits:expr_2021, $bytes: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/storage/mod.rs:106:40 [INFO] [stdout] | [INFO] [stdout] 106 | ($($name:ident, $bits:expr, $bytes: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] 106 | ($($name:ident, $bits:expr, $bytes:expr_2021;)*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/hostio.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _________________help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 53 | | $( [INFO] [stdout] 54 | | $(#[$meta])* [INFO] [stdout] 55 | | $vis fn $func($($arg : $arg_type),*) $(-> $return_type)?; [INFO] [stdout] 56 | | )* [INFO] [stdout] 57 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] ... [INFO] [stdout] 63 | / vm_hooks! { [INFO] [stdout] 64 | | module("vm_hooks", vm_hooks); [INFO] [stdout] 65 | | [INFO] [stdout] 66 | | /// Gets the ETH balance in wei of the account at the given address. [INFO] [stdout] ... | [INFO] [stdout] 385 | | pub fn tx_origin(origin: *mut u8) [INFO] [stdout] 386 | | } [INFO] [stdout] | |_- in this macro invocation [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] = note: this warning originates in the macro `vm_hooks` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/hostio.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _________________help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 53 | | $( [INFO] [stdout] 54 | | $(#[$meta])* [INFO] [stdout] 55 | | $vis fn $func($($arg : $arg_type),*) $(-> $return_type)?; [INFO] [stdout] 56 | | )* [INFO] [stdout] 57 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] ... [INFO] [stdout] 388 | / vm_hooks! { [INFO] [stdout] 389 | | #[allow(dead_code)] [INFO] [stdout] 390 | | module("console", console); [INFO] [stdout] ... | [INFO] [stdout] 409 | | pub fn log_txt(text: *const u8, len: usize) [INFO] [stdout] 410 | | } [INFO] [stdout] | |_- in this macro invocation [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: this warning originates in the macro `vm_hooks` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hostio::create2` is unsafe and requires unsafe block [INFO] [stdout] --> src/deploy/raw.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | / hostio::create2( [INFO] [stdout] 90 | | code.as_ptr(), [INFO] [stdout] 91 | | code.len(), [INFO] [stdout] 92 | | endowment.as_ptr(), [INFO] [stdout] ... | [INFO] [stdout] 95 | | &mut revert_data_len as *mut _, [INFO] [stdout] 96 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/deploy/raw.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub unsafe fn deploy(self, code: &[u8], endowment: U256) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hostio::create1` is unsafe and requires unsafe block [INFO] [stdout] --> src/deploy/raw.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | / hostio::create1( [INFO] [stdout] 99 | | code.as_ptr(), [INFO] [stdout] 100 | | code.len(), [INFO] [stdout] 101 | | endowment.as_ptr(), [INFO] [stdout] 102 | | contract.as_mut_ptr(), [INFO] [stdout] 103 | | &mut revert_data_len as *mut _, [INFO] [stdout] 104 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block [INFO] [stdout] --> src/deploy/raw.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | RETURN_DATA_LEN.set(revert_data_len); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/array.rs:73:14 [INFO] [stdout] | [INFO] [stdout] 73 | Some(S::new(slot, offset)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/array.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | unsafe fn accessor(&self, index: impl TryInto) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/array.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | S::new(slot, offset) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/array.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | unsafe fn accessor_unchecked(&self, index: usize) -> S { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::bytes::StorageBytes::write_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 72 | return self.write_len(len); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/bytes.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub unsafe fn set_len(&mut self, len: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | Storage::set_word(self.root, word); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::bytes::StorageBytes::write_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | return self.write_len(len); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | Storage::set_word(*self.base(), word); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::bytes::StorageBytes::write_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | self.write_len(len) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_uint` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | Storage::set_uint(self.root, 31, U8::from(len * 2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/bytes.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | unsafe fn write_len(&mut self, len: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | Storage::set_word(self.root, U256::from(len * 2 + 1).into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:269:14 [INFO] [stdout] | [INFO] [stdout] 269 | Self(StorageBytes::new(slot, offset)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/bytes.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 268 | unsafe fn new(slot: U256, offset: u8) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::get_uint` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:228:26 [INFO] [stdout] | [INFO] [stdout] 228 | Signed::from_raw(Self::get_uint(key, offset)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 227 | unsafe fn get_signed(key: U256, offset: usize) -> Signed { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:243:20 [INFO] [stdout] | [INFO] [stdout] 243 | let word = Self::get::<1>(key, offset); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:241:5 [INFO] [stdout] | [INFO] [stdout] 241 | unsafe fn get_byte(key: U256, offset: usize) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:274:20 [INFO] [stdout] | [INFO] [stdout] 274 | return Self::set_word(key, FixedBytes::from_slice(value.as_slice())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 270 | unsafe fn set(key: U256, offset: usize, value: FixedBytes) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:280:9 [INFO] [stdout] | [INFO] [stdout] 280 | ptr::copy(value.as_ptr(), dest, N); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | Self::set_word(key, word); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:303:20 [INFO] [stdout] | [INFO] [stdout] 303 | return Self::set_word(key, FixedBytes::from_slice(&value.to_be_bytes::<32>())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 295 | / unsafe fn set_uint( [INFO] [stdout] 296 | | key: U256, [INFO] [stdout] 297 | | offset: usize, [INFO] [stdout] 298 | | value: Uint, [INFO] [stdout] 299 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:310:9 [INFO] [stdout] | [INFO] [stdout] 310 | ptr::copy(value.as_ptr(), dest, B / 8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:311:9 [INFO] [stdout] | [INFO] [stdout] 311 | Self::set_word(key, word); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_uint` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | Self::set_uint(key, offset, value.into_raw()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:324:5 [INFO] [stdout] | [INFO] [stdout] 324 | / unsafe fn set_signed( [INFO] [stdout] 325 | | key: U256, [INFO] [stdout] 326 | | offset: usize, [INFO] [stdout] 327 | | value: Signed, [INFO] [stdout] 328 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:343:9 [INFO] [stdout] | [INFO] [stdout] 343 | Self::set::<1>(key, offset, fixed) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:341:5 [INFO] [stdout] | [INFO] [stdout] 341 | unsafe fn set_byte(key: U256, offset: usize, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:363:9 [INFO] [stdout] | [INFO] [stdout] 363 | Self::set_word(key, B256::ZERO) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:362:5 [INFO] [stdout] | [INFO] [stdout] 362 | unsafe fn clear_word(key: U256) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/vec.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | Storage::set_word(self.slot, U256::from(len).into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/vec.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub unsafe fn set_len(&mut self, len: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/vec.rs:92:14 [INFO] [stdout] | [INFO] [stdout] 92 | Some(S::new(slot, offset)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/vec.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | unsafe fn accessor(&self, index: impl TryInto) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/vec.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | S::new(slot, offset) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/vec.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe fn accessor_unchecked(&self, index: usize) -> S { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hostio::storage_cache_bytes32` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/mod.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | hostio::storage_cache_bytes32(B256::from(key).as_ptr(), value.as_ptr()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/mod.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe fn set_word(key: U256, value: B256) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `stylus_sdk` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/abi/impls.rs [INFO] [stderr] * src/storage/bytes.rs [INFO] [stderr] * src/storage/mod.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/abi/impls.rs:11:16 [INFO] [stderr] | [INFO] [stderr] 11 | ($name:tt, $as_arg:expr_2021, $($ty:tt)*) => { [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/abi/impls.rs:33:6 [INFO] [stderr] | [INFO] [stderr] 33 | ($stem:expr_2021, $leaf: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/abi/impls.rs:33:23 [INFO] [stderr] | [INFO] [stderr] 33 | ($stem:expr_2021, $leaf: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/abi/impls.rs:39:6 [INFO] [stderr] | [INFO] [stderr] 39 | ($stem:expr_2021, $num: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/abi/impls.rs:39:23 [INFO] [stderr] | [INFO] [stderr] 39 | ($stem:expr_2021, $num: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/abi/impls.rs:78:21 [INFO] [stderr] | [INFO] [stderr] 78 | ($bits:literal, $as_arg:expr_2021, $unsigned:ty, $signed:ty) => { [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/storage/bytes.rs:106:14 [INFO] [stderr] | [INFO] [stderr] 106 | ($slot: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/storage/mod.rs:94:41 [INFO] [stderr] | [INFO] [stderr] 94 | ($($name:ident, $signed_name:ident, $bits:expr_2021, $limbs: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/storage/mod.rs:94:58 [INFO] [stderr] | [INFO] [stderr] 94 | ($($name:ident, $signed_name:ident, $bits:expr_2021, $limbs: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/storage/mod.rs:106:21 [INFO] [stderr] | [INFO] [stderr] 106 | ($($name:ident, $bits:expr_2021, $bytes: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/storage/mod.rs:106:38 [INFO] [stderr] | [INFO] [stderr] 106 | ($($name:ident, $bits:expr_2021, $bytes: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 11 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/abi/impls.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | ($name:tt, $as_arg:expr, $($ty:tt)*) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 11 | ($name:tt, $as_arg:expr_2021, $($ty:tt)*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/abi/impls.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | ($stem:expr, $leaf: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] 33 | ($stem:expr_2021, $leaf: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/abi/impls.rs:33:24 [INFO] [stdout] | [INFO] [stdout] 33 | ($stem:expr, $leaf: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] 33 | ($stem:expr, $leaf:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/abi/impls.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | ($stem:expr, $num: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] 39 | ($stem:expr_2021, $num: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/abi/impls.rs:39:23 [INFO] [stdout] | [INFO] [stdout] 39 | ($stem:expr, $num: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] 39 | ($stem:expr, $num:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/abi/impls.rs:78:29 [INFO] [stdout] | [INFO] [stdout] 78 | ($bits:literal, $as_arg:expr, $unsigned:ty, $signed:ty) => { [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] 78 | ($bits:literal, $as_arg:expr_2021, $unsigned:ty, $signed:ty) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/storage/bytes.rs:106:20 [INFO] [stdout] | [INFO] [stdout] 106 | ($slot: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] 106 | ($slot:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/storage/mod.rs:94:47 [INFO] [stdout] | [INFO] [stdout] 94 | ($($name:ident, $signed_name:ident, $bits:expr, $limbs: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] 94 | ($($name:ident, $signed_name:ident, $bits:expr_2021, $limbs: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/storage/mod.rs:94:60 [INFO] [stdout] | [INFO] [stdout] 94 | ($($name:ident, $signed_name:ident, $bits:expr, $limbs: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] 94 | ($($name:ident, $signed_name:ident, $bits:expr, $limbs:expr_2021;)*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/storage/mod.rs:106:27 [INFO] [stdout] | [INFO] [stdout] 106 | ($($name:ident, $bits:expr, $bytes: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] 106 | ($($name:ident, $bits:expr_2021, $bytes: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/storage/mod.rs:106:40 [INFO] [stdout] | [INFO] [stdout] 106 | ($($name:ident, $bits:expr, $bytes: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] 106 | ($($name:ident, $bits:expr, $bytes:expr_2021;)*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/hostio.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _________________help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 53 | | $( [INFO] [stdout] 54 | | $(#[$meta])* [INFO] [stdout] 55 | | $vis fn $func($($arg : $arg_type),*) $(-> $return_type)?; [INFO] [stdout] 56 | | )* [INFO] [stdout] 57 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] ... [INFO] [stdout] 63 | / vm_hooks! { [INFO] [stdout] 64 | | module("vm_hooks", vm_hooks); [INFO] [stdout] 65 | | [INFO] [stdout] 66 | | /// Gets the ETH balance in wei of the account at the given address. [INFO] [stdout] ... | [INFO] [stdout] 385 | | pub fn tx_origin(origin: *mut u8) [INFO] [stdout] 386 | | } [INFO] [stdout] | |_- in this macro invocation [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] = note: this warning originates in the macro `vm_hooks` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: extern blocks should be unsafe [INFO] [stdout] --> src/hostio.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | extern "C" { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | _________________help: needs `unsafe` before the extern keyword: `unsafe` [INFO] [stdout] | | [INFO] [stdout] 53 | | $( [INFO] [stdout] 54 | | $(#[$meta])* [INFO] [stdout] 55 | | $vis fn $func($($arg : $arg_type),*) $(-> $return_type)?; [INFO] [stdout] 56 | | )* [INFO] [stdout] 57 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] ... [INFO] [stdout] 388 | / vm_hooks! { [INFO] [stdout] 389 | | #[allow(dead_code)] [INFO] [stdout] 390 | | module("console", console); [INFO] [stdout] ... | [INFO] [stdout] 409 | | pub fn log_txt(text: *const u8, len: usize) [INFO] [stdout] 410 | | } [INFO] [stdout] | |_- in this macro invocation [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: this warning originates in the macro `vm_hooks` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hostio::create2` is unsafe and requires unsafe block [INFO] [stdout] --> src/deploy/raw.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | / hostio::create2( [INFO] [stdout] 90 | | code.as_ptr(), [INFO] [stdout] 91 | | code.len(), [INFO] [stdout] 92 | | endowment.as_ptr(), [INFO] [stdout] ... | [INFO] [stdout] 95 | | &mut revert_data_len as *mut _, [INFO] [stdout] 96 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/deploy/raw.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub unsafe fn deploy(self, code: &[u8], endowment: U256) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hostio::create1` is unsafe and requires unsafe block [INFO] [stdout] --> src/deploy/raw.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | / hostio::create1( [INFO] [stdout] 99 | | code.as_ptr(), [INFO] [stdout] 100 | | code.len(), [INFO] [stdout] 101 | | endowment.as_ptr(), [INFO] [stdout] 102 | | contract.as_mut_ptr(), [INFO] [stdout] 103 | | &mut revert_data_len as *mut _, [INFO] [stdout] 104 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block [INFO] [stdout] --> src/deploy/raw.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | RETURN_DATA_LEN.set(revert_data_len); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/array.rs:73:14 [INFO] [stdout] | [INFO] [stdout] 73 | Some(S::new(slot, offset)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/array.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | unsafe fn accessor(&self, index: impl TryInto) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/array.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | S::new(slot, offset) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/array.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | unsafe fn accessor_unchecked(&self, index: usize) -> S { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::bytes::StorageBytes::write_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 72 | return self.write_len(len); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/bytes.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub unsafe fn set_len(&mut self, len: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | Storage::set_word(self.root, word); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::bytes::StorageBytes::write_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | return self.write_len(len); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | Storage::set_word(*self.base(), word); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::bytes::StorageBytes::write_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | self.write_len(len) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_uint` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | Storage::set_uint(self.root, 31, U8::from(len * 2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/bytes.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | unsafe fn write_len(&mut self, len: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | Storage::set_word(self.root, U256::from(len * 2 + 1).into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:269:14 [INFO] [stdout] | [INFO] [stdout] 269 | Self(StorageBytes::new(slot, offset)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/bytes.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 268 | unsafe fn new(slot: U256, offset: u8) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::get_uint` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:228:26 [INFO] [stdout] | [INFO] [stdout] 228 | Signed::from_raw(Self::get_uint(key, offset)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 227 | unsafe fn get_signed(key: U256, offset: usize) -> Signed { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:243:20 [INFO] [stdout] | [INFO] [stdout] 243 | let word = Self::get::<1>(key, offset); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:241:5 [INFO] [stdout] | [INFO] [stdout] 241 | unsafe fn get_byte(key: U256, offset: usize) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:274:20 [INFO] [stdout] | [INFO] [stdout] 274 | return Self::set_word(key, FixedBytes::from_slice(value.as_slice())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 270 | unsafe fn set(key: U256, offset: usize, value: FixedBytes) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:280:9 [INFO] [stdout] | [INFO] [stdout] 280 | ptr::copy(value.as_ptr(), dest, N); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | Self::set_word(key, word); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:303:20 [INFO] [stdout] | [INFO] [stdout] 303 | return Self::set_word(key, FixedBytes::from_slice(&value.to_be_bytes::<32>())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 295 | / unsafe fn set_uint( [INFO] [stdout] 296 | | key: U256, [INFO] [stdout] 297 | | offset: usize, [INFO] [stdout] 298 | | value: Uint, [INFO] [stdout] 299 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:310:9 [INFO] [stdout] | [INFO] [stdout] 310 | ptr::copy(value.as_ptr(), dest, B / 8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:311:9 [INFO] [stdout] | [INFO] [stdout] 311 | Self::set_word(key, word); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_uint` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | Self::set_uint(key, offset, value.into_raw()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:324:5 [INFO] [stdout] | [INFO] [stdout] 324 | / unsafe fn set_signed( [INFO] [stdout] 325 | | key: U256, [INFO] [stdout] 326 | | offset: usize, [INFO] [stdout] 327 | | value: Signed, [INFO] [stdout] 328 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:343:9 [INFO] [stdout] | [INFO] [stdout] 343 | Self::set::<1>(key, offset, fixed) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:341:5 [INFO] [stdout] | [INFO] [stdout] 341 | unsafe fn set_byte(key: U256, offset: usize, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:363:9 [INFO] [stdout] | [INFO] [stdout] 363 | Self::set_word(key, B256::ZERO) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:362:5 [INFO] [stdout] | [INFO] [stdout] 362 | unsafe fn clear_word(key: U256) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/vec.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | Storage::set_word(self.slot, U256::from(len).into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/vec.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub unsafe fn set_len(&mut self, len: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/vec.rs:92:14 [INFO] [stdout] | [INFO] [stdout] 92 | Some(S::new(slot, offset)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/vec.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | unsafe fn accessor(&self, index: impl TryInto) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/vec.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | S::new(slot, offset) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/vec.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe fn accessor_unchecked(&self, index: usize) -> S { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hostio::storage_cache_bytes32` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/mod.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | hostio::storage_cache_bytes32(B256::from(key).as_ptr(), value.as_ptr()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/mod.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe fn set_word(key: U256, value: B256) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 41 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.55s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking stylus-sdk v0.6.0 (/tmp/fixit) [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/hostio.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | / extern "C" { [INFO] [stdout] 53 | | $( [INFO] [stdout] 54 | | $(#[$meta])* [INFO] [stdout] 55 | | $vis fn $func($($arg : $arg_type),*) $(-> $return_type)?; [INFO] [stdout] 56 | | )* [INFO] [stdout] 57 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] ... [INFO] [stdout] 63 | / vm_hooks! { [INFO] [stdout] 64 | | module("vm_hooks", vm_hooks); [INFO] [stdout] 65 | | [INFO] [stdout] 66 | | /// Gets the ETH balance in wei of the account at the given address. [INFO] [stdout] ... | [INFO] [stdout] 385 | | pub fn tx_origin(origin: *mut u8) [INFO] [stdout] 386 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `vm_hooks` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/hostio.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | / extern "C" { [INFO] [stdout] 53 | | $( [INFO] [stdout] 54 | | $(#[$meta])* [INFO] [stdout] 55 | | $vis fn $func($($arg : $arg_type),*) $(-> $return_type)?; [INFO] [stdout] 56 | | )* [INFO] [stdout] 57 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] ... [INFO] [stdout] 388 | / vm_hooks! { [INFO] [stdout] 389 | | #[allow(dead_code)] [INFO] [stdout] 390 | | module("console", console); [INFO] [stdout] ... | [INFO] [stdout] 409 | | pub fn log_txt(text: *const u8, len: usize) [INFO] [stdout] 410 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `vm_hooks` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/hostio.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | / extern "C" { [INFO] [stdout] 53 | | $( [INFO] [stdout] 54 | | $(#[$meta])* [INFO] [stdout] 55 | | $vis fn $func($($arg : $arg_type),*) $(-> $return_type)?; [INFO] [stdout] 56 | | )* [INFO] [stdout] 57 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] ... [INFO] [stdout] 63 | / vm_hooks! { [INFO] [stdout] 64 | | module("vm_hooks", vm_hooks); [INFO] [stdout] 65 | | [INFO] [stdout] 66 | | /// Gets the ETH balance in wei of the account at the given address. [INFO] [stdout] ... | [INFO] [stdout] 385 | | pub fn tx_origin(origin: *mut u8) [INFO] [stdout] 386 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `vm_hooks` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: extern blocks must be unsafe [INFO] [stdout] --> src/hostio.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | / extern "C" { [INFO] [stdout] 53 | | $( [INFO] [stdout] 54 | | $(#[$meta])* [INFO] [stdout] 55 | | $vis fn $func($($arg : $arg_type),*) $(-> $return_type)?; [INFO] [stdout] 56 | | )* [INFO] [stdout] 57 | | } [INFO] [stdout] | |_________________^ [INFO] [stdout] ... [INFO] [stdout] 388 | / vm_hooks! { [INFO] [stdout] 389 | | #[allow(dead_code)] [INFO] [stdout] 390 | | module("console", console); [INFO] [stdout] ... | [INFO] [stdout] 409 | | pub fn log_txt(text: *const u8, len: usize) [INFO] [stdout] 410 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `vm_hooks` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hostio::create2` is unsafe and requires unsafe block [INFO] [stdout] --> src/deploy/raw.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | / hostio::create2( [INFO] [stdout] 90 | | code.as_ptr(), [INFO] [stdout] 91 | | code.len(), [INFO] [stdout] 92 | | endowment.as_ptr(), [INFO] [stdout] ... | [INFO] [stdout] 95 | | &mut revert_data_len as *mut _, [INFO] [stdout] 96 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/deploy/raw.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub unsafe fn deploy(self, code: &[u8], endowment: U256) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hostio::create1` is unsafe and requires unsafe block [INFO] [stdout] --> src/deploy/raw.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | / hostio::create1( [INFO] [stdout] 99 | | code.as_ptr(), [INFO] [stdout] 100 | | code.len(), [INFO] [stdout] 101 | | endowment.as_ptr(), [INFO] [stdout] 102 | | contract.as_mut_ptr(), [INFO] [stdout] 103 | | &mut revert_data_len as *mut _, [INFO] [stdout] 104 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block [INFO] [stdout] --> src/deploy/raw.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | RETURN_DATA_LEN.set(revert_data_len); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/array.rs:73:14 [INFO] [stdout] | [INFO] [stdout] 73 | Some(S::new(slot, offset)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/array.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | unsafe fn accessor(&self, index: impl TryInto) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/array.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | S::new(slot, offset) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/array.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | unsafe fn accessor_unchecked(&self, index: usize) -> S { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::bytes::StorageBytes::write_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 72 | return self.write_len(len); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/bytes.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub unsafe fn set_len(&mut self, len: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | Storage::set_word(self.root, word); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::bytes::StorageBytes::write_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | return self.write_len(len); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | Storage::set_word(*self.base(), word); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::bytes::StorageBytes::write_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | self.write_len(len) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_uint` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | Storage::set_uint(self.root, 31, U8::from(len * 2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/bytes.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | unsafe fn write_len(&mut self, len: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | Storage::set_word(self.root, U256::from(len * 2 + 1).into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:269:14 [INFO] [stdout] | [INFO] [stdout] 269 | Self(StorageBytes::new(slot, offset)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/bytes.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 268 | unsafe fn new(slot: U256, offset: u8) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::get_uint` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:228:26 [INFO] [stdout] | [INFO] [stdout] 228 | Signed::from_raw(Self::get_uint(key, offset)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 227 | unsafe fn get_signed(key: U256, offset: usize) -> Signed { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:243:20 [INFO] [stdout] | [INFO] [stdout] 243 | let word = Self::get::<1>(key, offset); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:241:5 [INFO] [stdout] | [INFO] [stdout] 241 | unsafe fn get_byte(key: U256, offset: usize) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:274:20 [INFO] [stdout] | [INFO] [stdout] 274 | return Self::set_word(key, FixedBytes::from_slice(value.as_slice())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 270 | unsafe fn set(key: U256, offset: usize, value: FixedBytes) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:280:9 [INFO] [stdout] | [INFO] [stdout] 280 | ptr::copy(value.as_ptr(), dest, N); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | Self::set_word(key, word); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:303:20 [INFO] [stdout] | [INFO] [stdout] 303 | return Self::set_word(key, FixedBytes::from_slice(&value.to_be_bytes::<32>())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 295 | / unsafe fn set_uint( [INFO] [stdout] 296 | | key: U256, [INFO] [stdout] 297 | | offset: usize, [INFO] [stdout] 298 | | value: Uint, [INFO] [stdout] 299 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `core::intrinsics::copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:310:9 [INFO] [stdout] | [INFO] [stdout] 310 | ptr::copy(value.as_ptr(), dest, B / 8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:311:9 [INFO] [stdout] | [INFO] [stdout] 311 | Self::set_word(key, word); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_uint` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | Self::set_uint(key, offset, value.into_raw()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:324:5 [INFO] [stdout] | [INFO] [stdout] 324 | / unsafe fn set_signed( [INFO] [stdout] 325 | | key: U256, [INFO] [stdout] 326 | | offset: usize, [INFO] [stdout] 327 | | value: Signed, [INFO] [stdout] 328 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:343:9 [INFO] [stdout] | [INFO] [stdout] 343 | Self::set::<1>(key, offset, fixed) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:341:5 [INFO] [stdout] | [INFO] [stdout] 341 | unsafe fn set_byte(key: U256, offset: usize, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:363:9 [INFO] [stdout] | [INFO] [stdout] 363 | Self::set_word(key, B256::ZERO) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:362:5 [INFO] [stdout] | [INFO] [stdout] 362 | unsafe fn clear_word(key: U256) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/vec.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | Storage::set_word(self.slot, U256::from(len).into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/vec.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub unsafe fn set_len(&mut self, len: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/vec.rs:92:14 [INFO] [stdout] | [INFO] [stdout] 92 | Some(S::new(slot, offset)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/vec.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | unsafe fn accessor(&self, index: impl TryInto) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/vec.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | S::new(slot, offset) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/vec.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe fn accessor_unchecked(&self, index: usize) -> S { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hostio::storage_cache_bytes32` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/mod.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | hostio::storage_cache_bytes32(B256::from(key).as_ptr(), value.as_ptr()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/mod.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe fn set_word(key: U256, value: B256) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `stylus-sdk` (lib) due to 3 previous errors; 28 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning[E0133]: call to unsafe function `hostio::create2` is unsafe and requires unsafe block [INFO] [stdout] --> src/deploy/raw.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | / hostio::create2( [INFO] [stdout] 90 | | code.as_ptr(), [INFO] [stdout] 91 | | code.len(), [INFO] [stdout] 92 | | endowment.as_ptr(), [INFO] [stdout] ... | [INFO] [stdout] 95 | | &mut revert_data_len as *mut _, [INFO] [stdout] 96 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/deploy/raw.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | pub unsafe fn deploy(self, code: &[u8], endowment: U256) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hostio::create1` is unsafe and requires unsafe block [INFO] [stdout] --> src/deploy/raw.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | / hostio::create1( [INFO] [stdout] 99 | | code.as_ptr(), [INFO] [stdout] 100 | | code.len(), [INFO] [stdout] 101 | | endowment.as_ptr(), [INFO] [stdout] 102 | | contract.as_mut_ptr(), [INFO] [stdout] 103 | | &mut revert_data_len as *mut _, [INFO] [stdout] 104 | | ); [INFO] [stdout] | |_____________^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block [INFO] [stdout] --> src/deploy/raw.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | RETURN_DATA_LEN.set(revert_data_len); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/array.rs:73:14 [INFO] [stdout] | [INFO] [stdout] 73 | Some(S::new(slot, offset)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/array.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | unsafe fn accessor(&self, index: impl TryInto) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/array.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | S::new(slot, offset) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/array.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | unsafe fn accessor_unchecked(&self, index: usize) -> S { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::bytes::StorageBytes::write_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:72:20 [INFO] [stdout] | [INFO] [stdout] 72 | return self.write_len(len); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/bytes.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | pub unsafe fn set_len(&mut self, len: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | Storage::set_word(self.root, word); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::bytes::StorageBytes::write_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 79 | return self.write_len(len); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | Storage::set_word(*self.base(), word); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::bytes::StorageBytes::write_len` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | self.write_len(len) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_uint` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | Storage::set_uint(self.root, 31, U8::from(len * 2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/bytes.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | unsafe fn write_len(&mut self, len: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:96:13 [INFO] [stdout] | [INFO] [stdout] 96 | Storage::set_word(self.root, U256::from(len * 2 + 1).into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/bytes.rs:269:14 [INFO] [stdout] | [INFO] [stdout] 269 | Self(StorageBytes::new(slot, offset)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/bytes.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 268 | unsafe fn new(slot: U256, offset: u8) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::get_uint` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:228:26 [INFO] [stdout] | [INFO] [stdout] 228 | Signed::from_raw(Self::get_uint(key, offset)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 227 | unsafe fn get_signed(key: U256, offset: usize) -> Signed { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::get` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:243:20 [INFO] [stdout] | [INFO] [stdout] 243 | let word = Self::get::<1>(key, offset); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:241:5 [INFO] [stdout] | [INFO] [stdout] 241 | unsafe fn get_byte(key: U256, offset: usize) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:274:20 [INFO] [stdout] | [INFO] [stdout] 274 | return Self::set_word(key, FixedBytes::from_slice(value.as_slice())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 270 | unsafe fn set(key: U256, offset: usize, value: FixedBytes) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:280:9 [INFO] [stdout] | [INFO] [stdout] 280 | ptr::copy(value.as_ptr(), dest, N); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | Self::set_word(key, word); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:303:20 [INFO] [stdout] | [INFO] [stdout] 303 | return Self::set_word(key, FixedBytes::from_slice(&value.to_be_bytes::<32>())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:295:5 [INFO] [stdout] | [INFO] [stdout] 295 | / unsafe fn set_uint( [INFO] [stdout] 296 | | key: U256, [INFO] [stdout] 297 | | offset: usize, [INFO] [stdout] 298 | | value: Uint, [INFO] [stdout] 299 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::intrinsics::copy` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:310:9 [INFO] [stdout] | [INFO] [stdout] 310 | ptr::copy(value.as_ptr(), dest, B / 8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:311:9 [INFO] [stdout] | [INFO] [stdout] 311 | Self::set_word(key, word); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_uint` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:329:9 [INFO] [stdout] | [INFO] [stdout] 329 | Self::set_uint(key, offset, value.into_raw()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:324:5 [INFO] [stdout] | [INFO] [stdout] 324 | / unsafe fn set_signed( [INFO] [stdout] 325 | | key: U256, [INFO] [stdout] 326 | | offset: usize, [INFO] [stdout] 327 | | value: Signed, [INFO] [stdout] 328 | | ) { [INFO] [stdout] | |_____^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:343:9 [INFO] [stdout] | [INFO] [stdout] 343 | Self::set::<1>(key, offset, fixed) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:341:5 [INFO] [stdout] | [INFO] [stdout] 341 | unsafe fn set_byte(key: U256, offset: usize, value: u8) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/traits.rs:363:9 [INFO] [stdout] | [INFO] [stdout] 363 | Self::set_word(key, B256::ZERO) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/traits.rs:362:5 [INFO] [stdout] | [INFO] [stdout] 362 | unsafe fn clear_word(key: U256) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::GlobalStorage::set_word` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/vec.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | Storage::set_word(self.slot, U256::from(len).into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/vec.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | pub unsafe fn set_len(&mut self, len: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/vec.rs:92:14 [INFO] [stdout] | [INFO] [stdout] 92 | Some(S::new(slot, offset)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/vec.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 86 | unsafe fn accessor(&self, index: impl TryInto) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `storage::traits::StorageType::new` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/vec.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | S::new(slot, offset) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/vec.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | unsafe fn accessor_unchecked(&self, index: usize) -> S { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `hostio::storage_cache_bytes32` is unsafe and requires unsafe block [INFO] [stdout] --> src/storage/mod.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | hostio::storage_cache_bytes32(B256::from(key).as_ptr(), value.as_ptr()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/storage/mod.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | unsafe fn set_word(key: U256, value: B256) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `stylus-sdk` (lib test) due to 3 previous errors; 28 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" "87af1b97dcb6430c3997b3c97ba6a10f6339023e7708e847d2653ebae0db3b27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87af1b97dcb6430c3997b3c97ba6a10f6339023e7708e847d2653ebae0db3b27", kill_on_drop: false }` [INFO] [stdout] 87af1b97dcb6430c3997b3c97ba6a10f6339023e7708e847d2653ebae0db3b27