[INFO] fetching crate xplm 0.4.1... [INFO] checking xplm-0.4.1 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate xplm 0.4.1 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate xplm 0.4.1 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 xplm 0.4.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate xplm 0.4.1 [INFO] tweaked toml for crates.io crate xplm 0.4.1 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate crates.io crate xplm 0.4.1 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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 7cf4c9386320de1f5ca9378856d11706942e09b9cbebbad19f47c55462b7ab5d [INFO] running `Command { std: "docker" "start" "-a" "7cf4c9386320de1f5ca9378856d11706942e09b9cbebbad19f47c55462b7ab5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7cf4c9386320de1f5ca9378856d11706942e09b9cbebbad19f47c55462b7ab5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7cf4c9386320de1f5ca9378856d11706942e09b9cbebbad19f47c55462b7ab5d", kill_on_drop: false }` [INFO] [stdout] 7cf4c9386320de1f5ca9378856d11706942e09b9cbebbad19f47c55462b7ab5d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 5e85f6b99d4904e34328586595b6c1fe25f540d4807bbcfbc20efec6741ac105 [INFO] running `Command { std: "docker" "start" "-a" "5e85f6b99d4904e34328586595b6c1fe25f540d4807bbcfbc20efec6741ac105", 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 rustix v0.38.31 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling prettyplease v0.2.16 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling bitflags v2.4.2 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Compiling bindgen v0.69.4 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling clang-sys v1.7.0 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling regex v1.10.3 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Checking thiserror v1.0.58 [INFO] [stderr] Compiling xplm-sys v0.5.0 [INFO] [stderr] Checking xplm v0.4.1 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/internal.rs (1 fix) [INFO] [stderr] Fixed src/draw.rs (1 fix) [INFO] [stderr] Fixed src/window.rs (5 fixes) [INFO] [stderr] Fixed src/command.rs (1 fix) [INFO] [stderr] Fixed src/menu.rs (1 fix) [INFO] [stderr] Fixed src/feature.rs (1 fix) [INFO] [stderr] Fixed src/error.rs (1 fix) [INFO] [stderr] Fixed src/flight_loop.rs (1 fix) [INFO] [stderr] Fixed src/plugin/internal.rs (4 fixes) [INFO] [stderr] Fixed src/data/owned.rs (14 fixes) [INFO] [stderr] Migrating examples/dataref.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/menus.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/minimal.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.41s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking xplm v0.4.1 (/tmp/fixit) [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> examples/menus.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | xplane_plugin!(MenuPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> examples/minimal.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | xplane_plugin!(MinimalPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> examples/menus.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | xplane_plugin!(MenuPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> examples/minimal.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | xplane_plugin!(MinimalPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> examples/menus.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | xplane_plugin!(MenuPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:38:11 [INFO] [stdout] | [INFO] [stdout] 38 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> examples/minimal.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | xplane_plugin!(MinimalPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:38:11 [INFO] [stdout] | [INFO] [stdout] 38 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> examples/menus.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | xplane_plugin!(MenuPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> examples/minimal.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | xplane_plugin!(MinimalPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> examples/menus.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | xplane_plugin!(MenuPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:51:11 [INFO] [stdout] | [INFO] [stdout] 51 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> examples/minimal.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | xplane_plugin!(MinimalPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:51:11 [INFO] [stdout] | [INFO] [stdout] 51 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> examples/menus.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | xplane_plugin!(MenuPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:28:53 [INFO] [stdout] | [INFO] [stdout] 28 | ::xplm::plugin::internal::xplugin_start(addr_of_mut!(PLUGIN), name, signature, description) [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> examples/menus.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | xplane_plugin!(MenuPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:34:52 [INFO] [stdout] | [INFO] [stdout] 34 | ::xplm::plugin::internal::xplugin_stop(addr_of_mut!(PLUGIN)) [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> examples/minimal.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | xplane_plugin!(MinimalPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:28:53 [INFO] [stdout] | [INFO] [stdout] 28 | ::xplm::plugin::internal::xplugin_start(addr_of_mut!(PLUGIN), name, signature, description) [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> examples/menus.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | xplane_plugin!(MenuPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:40:54 [INFO] [stdout] | [INFO] [stdout] 40 | ::xplm::plugin::internal::xplugin_enable(addr_of_mut!(PLUGIN)) [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> examples/minimal.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | xplane_plugin!(MinimalPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:34:52 [INFO] [stdout] | [INFO] [stdout] 34 | ::xplm::plugin::internal::xplugin_stop(addr_of_mut!(PLUGIN)) [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> examples/menus.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | xplane_plugin!(MenuPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:46:55 [INFO] [stdout] | [INFO] [stdout] 46 | ::xplm::plugin::internal::xplugin_disable(addr_of_mut!(PLUGIN)) [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> examples/minimal.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | xplane_plugin!(MinimalPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:40:54 [INFO] [stdout] | [INFO] [stdout] 40 | ::xplm::plugin::internal::xplugin_enable(addr_of_mut!(PLUGIN)) [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> examples/minimal.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | xplane_plugin!(MinimalPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:46:55 [INFO] [stdout] | [INFO] [stdout] 46 | ::xplm::plugin::internal::xplugin_disable(addr_of_mut!(PLUGIN)) [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> examples/dataref.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | xplane_plugin!(DataRefPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> examples/dataref.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | xplane_plugin!(DataRefPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> examples/dataref.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | xplane_plugin!(DataRefPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:38:11 [INFO] [stdout] | [INFO] [stdout] 38 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> examples/dataref.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | xplane_plugin!(DataRefPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:44:11 [INFO] [stdout] | [INFO] [stdout] 44 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> examples/dataref.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | xplane_plugin!(DataRefPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:51:11 [INFO] [stdout] | [INFO] [stdout] 51 | #[unsafe(no_mangle)] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> examples/dataref.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | xplane_plugin!(DataRefPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:28:53 [INFO] [stdout] | [INFO] [stdout] 28 | ::xplm::plugin::internal::xplugin_start(addr_of_mut!(PLUGIN), name, signature, description) [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> examples/dataref.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | xplane_plugin!(DataRefPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:34:52 [INFO] [stdout] | [INFO] [stdout] 34 | ::xplm::plugin::internal::xplugin_stop(addr_of_mut!(PLUGIN)) [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> examples/dataref.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | xplane_plugin!(DataRefPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:40:54 [INFO] [stdout] | [INFO] [stdout] 40 | ::xplm::plugin::internal::xplugin_enable(addr_of_mut!(PLUGIN)) [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0796]: creating a mutable reference to a mutable static [INFO] [stdout] --> examples/dataref.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | xplane_plugin!(DataRefPlugin); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: this mutable reference has lifetime `'static`, but if the static gets accessed (read or written) by any other means, or any other reference is created, then any further use of this mutable reference is Undefined Behavior [INFO] [stdout] = note: this error originates in the macro `xplane_plugin` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: use `addr_of_mut!` instead to create a raw pointer [INFO] [stdout] --> /tmp/fixit/src/plugin_macro.rs:46:55 [INFO] [stdout] | [INFO] [stdout] 46 | ::xplm::plugin::internal::xplugin_disable(addr_of_mut!(PLUGIN)) [INFO] [stdout] | ~~~~~~~~~~~~~ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `xplm` (example "minimal") due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `xplm` (example "menus") due to 10 previous errors [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0796`. [INFO] [stdout] [INFO] [stderr] error: could not compile `xplm` (example "dataref") due to 10 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" "5e85f6b99d4904e34328586595b6c1fe25f540d4807bbcfbc20efec6741ac105", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e85f6b99d4904e34328586595b6c1fe25f540d4807bbcfbc20efec6741ac105", kill_on_drop: false }` [INFO] [stdout] 5e85f6b99d4904e34328586595b6c1fe25f540d4807bbcfbc20efec6741ac105