Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build warning in v0.14.5 #2434

Open
CHr15F0x opened this issue Dec 3, 2024 · 0 comments · May be fixed by #2436
Open

Build warning in v0.14.5 #2434

CHr15F0x opened this issue Dec 3, 2024 · 0 comments · May be fixed by #2436
Assignees

Comments

@CHr15F0x
Copy link
Member

CHr15F0x commented Dec 3, 2024

A build warning in release mode was spotted by Argent:

INFO 🏁 Starting node. version="v0.14.5"
(...)
     Finished `release` profile [optimized] target(s) in 0.75s
 warning: `tagged` (lib) generated 1 warning
    = note: `#[warn(static_mut_refs)]` on by default
    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is m>
    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mu>
    |
    |              ^^^^^^^^^^^^^ shared reference to mutable static
 54 |     unsafe { LUTS.as_ref() }.map(|luts| luts.lock().unwrap())
    |
   --> crates/tagged/src/lib.rs:54:14
 warning: creating a shared reference to mutable static is discouraged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant