Skip to content

cannot mutate statics in initalizer of another static #56903

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum

https://crater-reports.s3.amazonaws.com/beta-1.32-1/beta-2018-12-05/gh/oxidizers.drdns/log.txt

Dec 08 20:04:10.309 INFO [stderr] error: cannot mutate statics in the initializer of another static
Dec 08 20:04:10.309 INFO [stderr]    --> src/buffer.rs:279:17
Dec 08 20:04:10.309 INFO [stderr]     |
Dec 08 20:04:10.309 INFO [stderr] 279 |     x: unsafe { &mut STDOUT_BUFFER_SPACE as *mut [u8] as *mut u8 },
Dec 08 20:04:10.309 INFO [stderr]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^
Dec 08 20:04:10.309 INFO [stderr] 
Dec 08 20:04:10.309 INFO [stderr] error: cannot mutate statics in the initializer of another static
Dec 08 20:04:10.310 INFO [stderr]    --> src/buffer.rs:293:17
Dec 08 20:04:10.310 INFO [stderr]     |
Dec 08 20:04:10.310 INFO [stderr] 293 |     x: unsafe { &mut STDERR_BUFFER_SPACE as *mut [u8] as *mut u8 },
Dec 08 20:04:10.310 INFO [stderr]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^
Dec 08 20:04:10.310 INFO [stderr] 

Metadata

Metadata

Assignees

Labels

P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions