Open
Description
Checklist
- I've looked through the issues and pull requests for similar reports
Describe your issue
Cross will stop working in Rust 2024 because it uses an outdated feature.
Please migrate from mutable statics to support the latest Rust edition.
What target(s) are you cross-compiling for?
x86_64-pc-windows-gnu
Which operating system is the host (e.g computer cross is on) running?
- macOS
- Windows
- Linux / BSD
- other OS (specify in description)
What architecture is the host?
- x86_64 / AMD64
- arm32
- arm64 (including Mac M1)
What container engine is cross using?
- docker
- podman
- other container engine (specify in description)
cross version
cross 0.2.5 (ac4c11c 2024-09-24)
Example
Warnings like this are repeated multiple times while compiling.
warning: creating a shared reference to mutable static is discouraged
--> src/temp.rs:91:8
|
91 | Ok(DIRS.last().expect("should not be empty").path())
| ^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
Additional information / notes
No response
Metadata
Metadata
Assignees
Labels
No labels