[INFO] cloning repository https://github.com/elpiel/interoptopus-csharp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/elpiel/interoptopus-csharp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felpiel%2Finteroptopus-csharp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felpiel%2Finteroptopus-csharp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 332a6827958f6af025949f2d10a80588fe987b8a [INFO] checking elpiel/interoptopus-csharp/332a6827958f6af025949f2d10a80588fe987b8a against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Felpiel%2Finteroptopus-csharp" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/elpiel/interoptopus-csharp on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-6-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/elpiel/interoptopus-csharp [INFO] finished tweaking git repo https://github.com/elpiel/interoptopus-csharp [INFO] tweaked toml for git repo https://github.com/elpiel/interoptopus-csharp written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/elpiel/interoptopus-csharp already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6d6c4d2367c240e32c63486fee7a90ff0d2cfb18f5f55e22dbb95dc9d64cb412 [INFO] running `Command { std: "docker" "start" "-a" "6d6c4d2367c240e32c63486fee7a90ff0d2cfb18f5f55e22dbb95dc9d64cb412", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6d6c4d2367c240e32c63486fee7a90ff0d2cfb18f5f55e22dbb95dc9d64cb412", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d6c4d2367c240e32c63486fee7a90ff0d2cfb18f5f55e22dbb95dc9d64cb412", kill_on_drop: false }` [INFO] [stdout] 6d6c4d2367c240e32c63486fee7a90ff0d2cfb18f5f55e22dbb95dc9d64cb412 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 57f83f45f6f79bee31542b36d9ddde3b3f6484e94baaa9b1f324e745fac297da [INFO] running `Command { std: "docker" "start" "-a" "57f83f45f6f79bee31542b36d9ddde3b3f6484e94baaa9b1f324e745fac297da", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking heck v0.4.1 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling interoptopus_proc v0.14.23 [INFO] [stderr] Checking interoptopus v0.14.26 [INFO] [stderr] Checking interoptopus_backend_csharp v0.14.25 [INFO] [stderr] Checking basic_csharp v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `basic_csharp` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lib.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected type, found keyword `unsafe` [INFO] [stderr] --> src/lib.rs:35:6 [INFO] [stderr] | [INFO] [stderr] 35 | impl unsafe(CoreService) { [INFO] [stderr] | ^^^^^^ expected type [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | / /// Takes a Storage instance to be used in the [`CSharpEnv`] impl [INFO] [stdout] 37 | | /// [INFO] [stdout] 38 | | /// On panic it should return an error because of the Service impl of [`interoptopus`]. [INFO] [stdout] 39 | | #[ffi_service_ctor] [INFO] [stdout] ... | [INFO] [stdout] 47 | | Ok(Self { storage: None }) [INFO] [stdout] 48 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 36 ~ unsafe(/// Takes a Storage instance to be used in the [`CSharpEnv`] impl [INFO] [stdout] 37 | /// [INFO] [stdout] ... [INFO] [stdout] 47 | Ok(Self { storage: None }) [INFO] [stdout] 48 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / #[ffi_service_ctor] [INFO] [stdout] 51 | | pub fn initialize_with_storage_with_set(storage: Storage) -> Result { [INFO] [stdout] 52 | | storage.storage_set("key", Some("value".into())); [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 50 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 51 | pub fn initialize_with_storage_with_set(storage: Storage) -> Result { [INFO] [stdout] ... [INFO] [stdout] 56 | }) [INFO] [stdout] 57 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / #[ffi_service_ctor] [INFO] [stdout] 60 | | pub fn initialize_with_storage_with_get(storage: Storage) -> Result { [INFO] [stdout] 61 | | let _value = storage.storage_get("key"); [INFO] [stdout] ... | [INFO] [stdout] 65 | | }) [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 59 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 60 | pub fn initialize_with_storage_with_get(storage: Storage) -> Result { [INFO] [stdout] ... [INFO] [stdout] 65 | }) [INFO] [stdout] 66 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | / #[ffi_service_ctor] [INFO] [stdout] 69 | | pub fn initialize_with_storage_without_set_get( [INFO] [stdout] 70 | | storage: Storage, [INFO] [stdout] 71 | | debug_callback: DebugLogCallback, [INFO] [stdout] ... | [INFO] [stdout] 81 | | }) [INFO] [stdout] 82 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 68 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 69 | pub fn initialize_with_storage_without_set_get( [INFO] [stdout] ... [INFO] [stdout] 81 | }) [INFO] [stdout] 82 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | / #[ffi_service_ctor] [INFO] [stdout] 85 | | pub fn initialize_with_storage_ascii_with_set(storage: StorageAscii) -> Result { [INFO] [stdout] 86 | | storage.storage_set("key", Some("value".into())); [INFO] [stdout] ... | [INFO] [stdout] 90 | | }) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 84 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 85 | pub fn initialize_with_storage_ascii_with_set(storage: StorageAscii) -> Result { [INFO] [stdout] ... [INFO] [stdout] 90 | }) [INFO] [stdout] 91 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | / #[ffi_service_ctor] [INFO] [stdout] 94 | | pub fn initialize_with_storage_ascii_with_get(storage: StorageAscii) -> Result { [INFO] [stdout] 95 | | let _value = storage.storage_get("key"); [INFO] [stdout] ... | [INFO] [stdout] 99 | | }) [INFO] [stdout] 100 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 93 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 94 | pub fn initialize_with_storage_ascii_with_get(storage: StorageAscii) -> Result { [INFO] [stdout] ... [INFO] [stdout] 99 | }) [INFO] [stdout] 100 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | / #[ffi_service_ctor] [INFO] [stdout] 103 | | pub fn initialize_with_storage_ascii_without_set_get( [INFO] [stdout] 104 | | storage: StorageAscii, [INFO] [stdout] 105 | | debug_callback: DebugLogCallback, [INFO] [stdout] ... | [INFO] [stdout] 115 | | }) [INFO] [stdout] 116 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 102 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 103 | pub fn initialize_with_storage_ascii_without_set_get( [INFO] [stdout] ... [INFO] [stdout] 115 | }) [INFO] [stdout] 116 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 35 | impl CoreService { [INFO] [stdout] | ^^^^^^^^^^^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 35 | impl unsafe(CoreService) { [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | / #[ffi_service_ctor] [INFO] [stdout] 138 | | pub fn new( [INFO] [stdout] 139 | | get_callback: GetStorageCallbackAscii, [INFO] [stdout] 140 | | set_callback: SetStorageCallbackAscii, [INFO] [stdout] ... | [INFO] [stdout] 145 | | }) [INFO] [stdout] 146 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 137 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 138 | pub fn new( [INFO] [stdout] ... [INFO] [stdout] 145 | }) [INFO] [stdout] 146 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | / pub fn ffi_set(&self, key: AsciiPointer, value: AsciiPointer) -> Result<(), EnvError> { [INFO] [stdout] 149 | | let value = value.as_c_str(); [INFO] [stdout] 150 | | [INFO] [stdout] 151 | | self.storage_set( [INFO] [stdout] ... | [INFO] [stdout] 156 | | Ok(()) [INFO] [stdout] 157 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 148 ~ unsafe(pub fn ffi_set(&self, key: AsciiPointer, value: AsciiPointer) -> Result<(), EnvError> { [INFO] [stdout] 149 | let value = value.as_c_str(); [INFO] [stdout] ... [INFO] [stdout] 156 | Ok(()) [INFO] [stdout] 157 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | / /// if key is empty (`null` in C#) in storage we return `None` and json will be `null`` as well [INFO] [stdout] 160 | | pub fn ffi_get( [INFO] [stdout] 161 | | &self, [INFO] [stdout] 162 | | key: AsciiPointer, [INFO] [stdout] ... | [INFO] [stdout] 176 | | Ok(()) [INFO] [stdout] 177 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 159 ~ unsafe(/// if key is empty (`null` in C#) in storage we return `None` and json will be `null`` as well [INFO] [stdout] 160 | pub fn ffi_get( [INFO] [stdout] ... [INFO] [stdout] 176 | Ok(()) [INFO] [stdout] 177 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:136:6 [INFO] [stdout] | [INFO] [stdout] 136 | impl StorageAscii { [INFO] [stdout] | ^^^^^^^^^^^^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 136 | impl unsafe(StorageAscii) { [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:221:5 [INFO] [stdout] | [INFO] [stdout] 221 | / #[ffi_service_ctor] [INFO] [stdout] 222 | | pub fn new( [INFO] [stdout] 223 | | get_callback: GetStorageCallback, [INFO] [stdout] 224 | | set_callback: SetStorageCallback, [INFO] [stdout] ... | [INFO] [stdout] 229 | | }) [INFO] [stdout] 230 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 221 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 222 | pub fn new( [INFO] [stdout] ... [INFO] [stdout] 229 | }) [INFO] [stdout] 230 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:220:6 [INFO] [stdout] | [INFO] [stdout] 220 | impl Storage { [INFO] [stdout] | ^^^^^^^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 220 | impl unsafe(Storage) { [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:316:3 [INFO] [stdout] | [INFO] [stdout] 316 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 316 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | Bare(Storage), [INFO] [stdout] | ---- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 30 | Bare(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | Ascii(StorageAscii), [INFO] [stdout] | ----- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 31 | Ascii(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `basic_csharp` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lib.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected type, found keyword `unsafe` [INFO] [stderr] --> src/lib.rs:35:6 [INFO] [stderr] | [INFO] [stderr] 35 | impl unsafe(CoreService) { [INFO] [stderr] | ^^^^^^ expected type [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | / /// Takes a Storage instance to be used in the [`CSharpEnv`] impl [INFO] [stdout] 37 | | /// [INFO] [stdout] 38 | | /// On panic it should return an error because of the Service impl of [`interoptopus`]. [INFO] [stdout] 39 | | #[ffi_service_ctor] [INFO] [stdout] ... | [INFO] [stdout] 47 | | Ok(Self { storage: None }) [INFO] [stdout] 48 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 36 ~ unsafe(/// Takes a Storage instance to be used in the [`CSharpEnv`] impl [INFO] [stdout] 37 | /// [INFO] [stdout] ... [INFO] [stdout] 47 | Ok(Self { storage: None }) [INFO] [stdout] 48 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / #[ffi_service_ctor] [INFO] [stdout] 51 | | pub fn initialize_with_storage_with_set(storage: Storage) -> Result { [INFO] [stdout] 52 | | storage.storage_set("key", Some("value".into())); [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 50 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 51 | pub fn initialize_with_storage_with_set(storage: Storage) -> Result { [INFO] [stdout] ... [INFO] [stdout] 56 | }) [INFO] [stdout] 57 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / #[ffi_service_ctor] [INFO] [stdout] 60 | | pub fn initialize_with_storage_with_get(storage: Storage) -> Result { [INFO] [stdout] 61 | | let _value = storage.storage_get("key"); [INFO] [stdout] ... | [INFO] [stdout] 65 | | }) [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 59 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 60 | pub fn initialize_with_storage_with_get(storage: Storage) -> Result { [INFO] [stdout] ... [INFO] [stdout] 65 | }) [INFO] [stdout] 66 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | / #[ffi_service_ctor] [INFO] [stdout] 69 | | pub fn initialize_with_storage_without_set_get( [INFO] [stdout] 70 | | storage: Storage, [INFO] [stdout] 71 | | debug_callback: DebugLogCallback, [INFO] [stdout] ... | [INFO] [stdout] 81 | | }) [INFO] [stdout] 82 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 68 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 69 | pub fn initialize_with_storage_without_set_get( [INFO] [stdout] ... [INFO] [stdout] 81 | }) [INFO] [stdout] 82 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | / #[ffi_service_ctor] [INFO] [stdout] 85 | | pub fn initialize_with_storage_ascii_with_set(storage: StorageAscii) -> Result { [INFO] [stdout] 86 | | storage.storage_set("key", Some("value".into())); [INFO] [stdout] ... | [INFO] [stdout] 90 | | }) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 84 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 85 | pub fn initialize_with_storage_ascii_with_set(storage: StorageAscii) -> Result { [INFO] [stdout] ... [INFO] [stdout] 90 | }) [INFO] [stdout] 91 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | / #[ffi_service_ctor] [INFO] [stdout] 94 | | pub fn initialize_with_storage_ascii_with_get(storage: StorageAscii) -> Result { [INFO] [stdout] 95 | | let _value = storage.storage_get("key"); [INFO] [stdout] ... | [INFO] [stdout] 99 | | }) [INFO] [stdout] 100 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 93 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 94 | pub fn initialize_with_storage_ascii_with_get(storage: StorageAscii) -> Result { [INFO] [stdout] ... [INFO] [stdout] 99 | }) [INFO] [stdout] 100 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | / #[ffi_service_ctor] [INFO] [stdout] 103 | | pub fn initialize_with_storage_ascii_without_set_get( [INFO] [stdout] 104 | | storage: StorageAscii, [INFO] [stdout] 105 | | debug_callback: DebugLogCallback, [INFO] [stdout] ... | [INFO] [stdout] 115 | | }) [INFO] [stdout] 116 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 102 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 103 | pub fn initialize_with_storage_ascii_without_set_get( [INFO] [stdout] ... [INFO] [stdout] 115 | }) [INFO] [stdout] 116 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 35 | impl CoreService { [INFO] [stdout] | ^^^^^^^^^^^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 35 | impl unsafe(CoreService) { [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | / #[ffi_service_ctor] [INFO] [stdout] 138 | | pub fn new( [INFO] [stdout] 139 | | get_callback: GetStorageCallbackAscii, [INFO] [stdout] 140 | | set_callback: SetStorageCallbackAscii, [INFO] [stdout] ... | [INFO] [stdout] 145 | | }) [INFO] [stdout] 146 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 137 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 138 | pub fn new( [INFO] [stdout] ... [INFO] [stdout] 145 | }) [INFO] [stdout] 146 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | / pub fn ffi_set(&self, key: AsciiPointer, value: AsciiPointer) -> Result<(), EnvError> { [INFO] [stdout] 149 | | let value = value.as_c_str(); [INFO] [stdout] 150 | | [INFO] [stdout] 151 | | self.storage_set( [INFO] [stdout] ... | [INFO] [stdout] 156 | | Ok(()) [INFO] [stdout] 157 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 148 ~ unsafe(pub fn ffi_set(&self, key: AsciiPointer, value: AsciiPointer) -> Result<(), EnvError> { [INFO] [stdout] 149 | let value = value.as_c_str(); [INFO] [stdout] ... [INFO] [stdout] 156 | Ok(()) [INFO] [stdout] 157 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | / /// if key is empty (`null` in C#) in storage we return `None` and json will be `null`` as well [INFO] [stdout] 160 | | pub fn ffi_get( [INFO] [stdout] 161 | | &self, [INFO] [stdout] 162 | | key: AsciiPointer, [INFO] [stdout] ... | [INFO] [stdout] 176 | | Ok(()) [INFO] [stdout] 177 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 159 ~ unsafe(/// if key is empty (`null` in C#) in storage we return `None` and json will be `null`` as well [INFO] [stdout] 160 | pub fn ffi_get( [INFO] [stdout] ... [INFO] [stdout] 176 | Ok(()) [INFO] [stdout] 177 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:136:6 [INFO] [stdout] | [INFO] [stdout] 136 | impl StorageAscii { [INFO] [stdout] | ^^^^^^^^^^^^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 136 | impl unsafe(StorageAscii) { [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:221:5 [INFO] [stdout] | [INFO] [stdout] 221 | / #[ffi_service_ctor] [INFO] [stdout] 222 | | pub fn new( [INFO] [stdout] 223 | | get_callback: GetStorageCallback, [INFO] [stdout] 224 | | set_callback: SetStorageCallback, [INFO] [stdout] ... | [INFO] [stdout] 229 | | }) [INFO] [stdout] 230 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 221 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 222 | pub fn new( [INFO] [stdout] ... [INFO] [stdout] 229 | }) [INFO] [stdout] 230 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:220:6 [INFO] [stdout] | [INFO] [stdout] 220 | impl Storage { [INFO] [stdout] | ^^^^^^^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 220 | impl unsafe(Storage) { [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:316:3 [INFO] [stdout] | [INFO] [stdout] 316 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [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 #123757 [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 316 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | Bare(Storage), [INFO] [stdout] | ---- ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 30 | Bare(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.94s [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | Ascii(StorageAscii), [INFO] [stdout] | ----- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 31 | Ascii(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking basic_csharp v0.1.0 (/tmp/fixit) [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | / /// Takes a Storage instance to be used in the [`CSharpEnv`] impl [INFO] [stdout] 37 | | /// [INFO] [stdout] 38 | | /// On panic it should return an error because of the Service impl of [`interoptopus`]. [INFO] [stdout] 39 | | #[ffi_service_ctor] [INFO] [stdout] ... | [INFO] [stdout] 47 | | Ok(Self { storage: None }) [INFO] [stdout] 48 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 36 ~ unsafe(/// Takes a Storage instance to be used in the [`CSharpEnv`] impl [INFO] [stdout] 37 | /// [INFO] [stdout] ... [INFO] [stdout] 47 | Ok(Self { storage: None }) [INFO] [stdout] 48 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / #[ffi_service_ctor] [INFO] [stdout] 51 | | pub fn initialize_with_storage_with_set(storage: Storage) -> Result { [INFO] [stdout] 52 | | storage.storage_set("key", Some("value".into())); [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 50 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 51 | pub fn initialize_with_storage_with_set(storage: Storage) -> Result { [INFO] [stdout] ... [INFO] [stdout] 56 | }) [INFO] [stdout] 57 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / #[ffi_service_ctor] [INFO] [stdout] 60 | | pub fn initialize_with_storage_with_get(storage: Storage) -> Result { [INFO] [stdout] 61 | | let _value = storage.storage_get("key"); [INFO] [stdout] ... | [INFO] [stdout] 65 | | }) [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 59 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 60 | pub fn initialize_with_storage_with_get(storage: Storage) -> Result { [INFO] [stdout] ... [INFO] [stdout] 65 | }) [INFO] [stdout] 66 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | / #[ffi_service_ctor] [INFO] [stdout] 69 | | pub fn initialize_with_storage_without_set_get( [INFO] [stdout] 70 | | storage: Storage, [INFO] [stdout] 71 | | debug_callback: DebugLogCallback, [INFO] [stdout] ... | [INFO] [stdout] 81 | | }) [INFO] [stdout] 82 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 68 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 69 | pub fn initialize_with_storage_without_set_get( [INFO] [stdout] ... [INFO] [stdout] 81 | }) [INFO] [stdout] 82 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | / #[ffi_service_ctor] [INFO] [stdout] 85 | | pub fn initialize_with_storage_ascii_with_set(storage: StorageAscii) -> Result { [INFO] [stdout] 86 | | storage.storage_set("key", Some("value".into())); [INFO] [stdout] ... | [INFO] [stdout] 90 | | }) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 84 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 85 | pub fn initialize_with_storage_ascii_with_set(storage: StorageAscii) -> Result { [INFO] [stdout] ... [INFO] [stdout] 90 | }) [INFO] [stdout] 91 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | / #[ffi_service_ctor] [INFO] [stdout] 94 | | pub fn initialize_with_storage_ascii_with_get(storage: StorageAscii) -> Result { [INFO] [stdout] 95 | | let _value = storage.storage_get("key"); [INFO] [stdout] ... | [INFO] [stdout] 99 | | }) [INFO] [stdout] 100 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 93 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 94 | pub fn initialize_with_storage_ascii_with_get(storage: StorageAscii) -> Result { [INFO] [stdout] ... [INFO] [stdout] 99 | }) [INFO] [stdout] 100 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | / #[ffi_service_ctor] [INFO] [stdout] 103 | | pub fn initialize_with_storage_ascii_without_set_get( [INFO] [stdout] 104 | | storage: StorageAscii, [INFO] [stdout] 105 | | debug_callback: DebugLogCallback, [INFO] [stdout] ... | [INFO] [stdout] 115 | | }) [INFO] [stdout] 116 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 102 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 103 | pub fn initialize_with_storage_ascii_without_set_get( [INFO] [stdout] ... [INFO] [stdout] 115 | }) [INFO] [stdout] 116 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 35 | impl CoreService { [INFO] [stdout] | ^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 35 | impl unsafe(CoreService) { [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | / /// Takes a Storage instance to be used in the [`CSharpEnv`] impl [INFO] [stdout] 37 | | /// [INFO] [stdout] 38 | | /// On panic it should return an error because of the Service impl of [`interoptopus`]. [INFO] [stdout] 39 | | #[ffi_service_ctor] [INFO] [stdout] ... | [INFO] [stdout] 47 | | Ok(Self { storage: None }) [INFO] [stdout] 48 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 36 ~ unsafe(/// Takes a Storage instance to be used in the [`CSharpEnv`] impl [INFO] [stdout] 37 | /// [INFO] [stdout] ... [INFO] [stdout] 47 | Ok(Self { storage: None }) [INFO] [stdout] 48 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | / #[ffi_service_ctor] [INFO] [stdout] 138 | | pub fn new( [INFO] [stdout] 139 | | get_callback: GetStorageCallbackAscii, [INFO] [stdout] 140 | | set_callback: SetStorageCallbackAscii, [INFO] [stdout] ... | [INFO] [stdout] 145 | | }) [INFO] [stdout] 146 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 137 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 138 | pub fn new( [INFO] [stdout] ... [INFO] [stdout] 145 | }) [INFO] [stdout] 146 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | / pub fn ffi_set(&self, key: AsciiPointer, value: AsciiPointer) -> Result<(), EnvError> { [INFO] [stdout] 149 | | let value = value.as_c_str(); [INFO] [stdout] 150 | | [INFO] [stdout] 151 | | self.storage_set( [INFO] [stdout] ... | [INFO] [stdout] 156 | | Ok(()) [INFO] [stdout] 157 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 148 ~ unsafe(pub fn ffi_set(&self, key: AsciiPointer, value: AsciiPointer) -> Result<(), EnvError> { [INFO] [stdout] 149 | let value = value.as_c_str(); [INFO] [stdout] ... [INFO] [stdout] 156 | Ok(()) [INFO] [stdout] 157 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 50 | / #[ffi_service_ctor] [INFO] [stdout] 51 | | pub fn initialize_with_storage_with_set(storage: Storage) -> Result { [INFO] [stdout] 52 | | storage.storage_set("key", Some("value".into())); [INFO] [stdout] ... | [INFO] [stdout] 56 | | }) [INFO] [stdout] 57 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 50 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 51 | pub fn initialize_with_storage_with_set(storage: Storage) -> Result { [INFO] [stdout] ... [INFO] [stdout] 56 | }) [INFO] [stdout] 57 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | / /// if key is empty (`null` in C#) in storage we return `None` and json will be `null`` as well [INFO] [stdout] 160 | | pub fn ffi_get( [INFO] [stdout] 161 | | &self, [INFO] [stdout] 162 | | key: AsciiPointer, [INFO] [stdout] ... | [INFO] [stdout] 176 | | Ok(()) [INFO] [stdout] 177 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 159 ~ unsafe(/// if key is empty (`null` in C#) in storage we return `None` and json will be `null`` as well [INFO] [stdout] 160 | pub fn ffi_get( [INFO] [stdout] ... [INFO] [stdout] 176 | Ok(()) [INFO] [stdout] 177 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / #[ffi_service_ctor] [INFO] [stdout] 60 | | pub fn initialize_with_storage_with_get(storage: Storage) -> Result { [INFO] [stdout] 61 | | let _value = storage.storage_get("key"); [INFO] [stdout] ... | [INFO] [stdout] 65 | | }) [INFO] [stdout] 66 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 59 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 60 | pub fn initialize_with_storage_with_get(storage: Storage) -> Result { [INFO] [stdout] ... [INFO] [stdout] 65 | }) [INFO] [stdout] 66 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:136:6 [INFO] [stdout] | [INFO] [stdout] 136 | impl StorageAscii { [INFO] [stdout] | ^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 136 | impl unsafe(StorageAscii) { [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:221:5 [INFO] [stdout] | [INFO] [stdout] 221 | / #[ffi_service_ctor] [INFO] [stdout] 222 | | pub fn new( [INFO] [stdout] 223 | | get_callback: GetStorageCallback, [INFO] [stdout] 224 | | set_callback: SetStorageCallback, [INFO] [stdout] ... | [INFO] [stdout] 229 | | }) [INFO] [stdout] 230 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 221 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 222 | pub fn new( [INFO] [stdout] ... [INFO] [stdout] 229 | }) [INFO] [stdout] 230 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 68 | / #[ffi_service_ctor] [INFO] [stdout] 69 | | pub fn initialize_with_storage_without_set_get( [INFO] [stdout] 70 | | storage: Storage, [INFO] [stdout] 71 | | debug_callback: DebugLogCallback, [INFO] [stdout] ... | [INFO] [stdout] 81 | | }) [INFO] [stdout] 82 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 68 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 69 | pub fn initialize_with_storage_without_set_get( [INFO] [stdout] ... [INFO] [stdout] 81 | }) [INFO] [stdout] 82 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:220:6 [INFO] [stdout] | [INFO] [stdout] 220 | impl Storage { [INFO] [stdout] | ^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 220 | impl unsafe(Storage) { [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 84 | / #[ffi_service_ctor] [INFO] [stdout] 85 | | pub fn initialize_with_storage_ascii_with_set(storage: StorageAscii) -> Result { [INFO] [stdout] 86 | | storage.storage_set("key", Some("value".into())); [INFO] [stdout] ... | [INFO] [stdout] 90 | | }) [INFO] [stdout] 91 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 84 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 85 | pub fn initialize_with_storage_ascii_with_set(storage: StorageAscii) -> Result { [INFO] [stdout] ... [INFO] [stdout] 90 | }) [INFO] [stdout] 91 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:316:3 [INFO] [stdout] | [INFO] [stdout] 316 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 316 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:93:5 [INFO] [stdout] | [INFO] [stdout] 93 | / #[ffi_service_ctor] [INFO] [stdout] 94 | | pub fn initialize_with_storage_ascii_with_get(storage: StorageAscii) -> Result { [INFO] [stdout] 95 | | let _value = storage.storage_get("key"); [INFO] [stdout] ... | [INFO] [stdout] 99 | | }) [INFO] [stdout] 100 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 93 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 94 | pub fn initialize_with_storage_ascii_with_get(storage: StorageAscii) -> Result { [INFO] [stdout] ... [INFO] [stdout] 99 | }) [INFO] [stdout] 100 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | / #[ffi_service_ctor] [INFO] [stdout] 103 | | pub fn initialize_with_storage_ascii_without_set_get( [INFO] [stdout] 104 | | storage: StorageAscii, [INFO] [stdout] 105 | | debug_callback: DebugLogCallback, [INFO] [stdout] ... | [INFO] [stdout] 115 | | }) [INFO] [stdout] 116 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 102 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 103 | pub fn initialize_with_storage_ascii_without_set_get( [INFO] [stdout] ... [INFO] [stdout] 115 | }) [INFO] [stdout] 116 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 35 | impl CoreService { [INFO] [stdout] | ^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 35 | impl unsafe(CoreService) { [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:137:5 [INFO] [stdout] | [INFO] [stdout] 137 | / #[ffi_service_ctor] [INFO] [stdout] 138 | | pub fn new( [INFO] [stdout] 139 | | get_callback: GetStorageCallbackAscii, [INFO] [stdout] 140 | | set_callback: SetStorageCallbackAscii, [INFO] [stdout] ... | [INFO] [stdout] 145 | | }) [INFO] [stdout] 146 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 137 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 138 | pub fn new( [INFO] [stdout] ... [INFO] [stdout] 145 | }) [INFO] [stdout] 146 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:148:5 [INFO] [stdout] | [INFO] [stdout] 148 | / pub fn ffi_set(&self, key: AsciiPointer, value: AsciiPointer) -> Result<(), EnvError> { [INFO] [stdout] 149 | | let value = value.as_c_str(); [INFO] [stdout] 150 | | [INFO] [stdout] 151 | | self.storage_set( [INFO] [stdout] ... | [INFO] [stdout] 156 | | Ok(()) [INFO] [stdout] 157 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 148 ~ unsafe(pub fn ffi_set(&self, key: AsciiPointer, value: AsciiPointer) -> Result<(), EnvError> { [INFO] [stdout] 149 | let value = value.as_c_str(); [INFO] [stdout] ... [INFO] [stdout] 156 | Ok(()) [INFO] [stdout] 157 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | / /// if key is empty (`null` in C#) in storage we return `None` and json will be `null`` as well [INFO] [stdout] 160 | | pub fn ffi_get( [INFO] [stdout] 161 | | &self, [INFO] [stdout] 162 | | key: AsciiPointer, [INFO] [stdout] ... | [INFO] [stdout] 176 | | Ok(()) [INFO] [stdout] 177 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 159 ~ unsafe(/// if key is empty (`null` in C#) in storage we return `None` and json will be `null`` as well [INFO] [stdout] 160 | pub fn ffi_get( [INFO] [stdout] ... [INFO] [stdout] 176 | Ok(()) [INFO] [stdout] 177 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:136:6 [INFO] [stdout] | [INFO] [stdout] 136 | impl StorageAscii { [INFO] [stdout] | ^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 136 | impl unsafe(StorageAscii) { [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:221:5 [INFO] [stdout] | [INFO] [stdout] 221 | / #[ffi_service_ctor] [INFO] [stdout] 222 | | pub fn new( [INFO] [stdout] 223 | | get_callback: GetStorageCallback, [INFO] [stdout] 224 | | set_callback: SetStorageCallback, [INFO] [stdout] ... | [INFO] [stdout] 229 | | }) [INFO] [stdout] 230 | | } [INFO] [stdout] | |_____^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 221 ~ unsafe(#[ffi_service_ctor] [INFO] [stdout] 222 | pub fn new( [INFO] [stdout] ... [INFO] [stdout] 229 | }) [INFO] [stdout] 230 ~ }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:220:6 [INFO] [stdout] | [INFO] [stdout] 220 | impl Storage { [INFO] [stdout] | ^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 220 | impl unsafe(Storage) { [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/lib.rs:316:3 [INFO] [stdout] | [INFO] [stdout] 316 | #[no_mangle] [INFO] [stdout] | ^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 316 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `basic_csharp` (lib) due to 16 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `basic_csharp` (lib test) due to 16 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "57f83f45f6f79bee31542b36d9ddde3b3f6484e94baaa9b1f324e745fac297da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57f83f45f6f79bee31542b36d9ddde3b3f6484e94baaa9b1f324e745fac297da", kill_on_drop: false }` [INFO] [stdout] 57f83f45f6f79bee31542b36d9ddde3b3f6484e94baaa9b1f324e745fac297da