-
Notifications
You must be signed in to change notification settings - Fork 13k
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
cannot mutate statics in initalizer of another static #56903
Comments
cc @tarcieri Repro static mut STDERR_BUFFER_SPACE: [u8; 42] = [0u8; 42];
pub static mut STDERR_BUFFER: *mut [u8] = unsafe { &mut STDERR_BUFFER_SPACE }; I'm going to fix the regression, but I just want to note that https://github.com/oxidizers/drdns/blob/98c1153a09642c2a5d8d2ed77ef7d9429d94995a/src/buffer.rs#L292 is very dangerous to use. This looks like another argument for #53639 |
FWIW the code in question is some mechanically translated C with the translation performed by |
… r=davidtwco Fix a recently introduced regression fixes rust-lang#56903
triage: P-high. |
… r=davidtwco Fix mutable references in `static mut` fixes rust-lang#56903
… r=davidtwco Fix mutable references in `static mut` fixes rust-lang#56903
… r=davidtwco Fix mutable references in `static mut` fixes rust-lang#56903
… r=davidtwco Fix mutable references in `static mut` fixes rust-lang#56903
https://crater-reports.s3.amazonaws.com/beta-1.32-1/beta-2018-12-05/gh/oxidizers.drdns/log.txt
The text was updated successfully, but these errors were encountered: