Open
Bug 1563623
Opened 5 years ago
Updated 2 years ago
use MaybeUninit instead of mem::uninitialized
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Core
CSS Parsing and Computation
Tracking
()
NEW
People
(Reporter: heycam, Unassigned)
References
(Blocks 1 open bug)
Details
Rust 1.36 has been released, and we should migrate from mem::uninitialized to MaybeUninit. mem::uninitialized will be deprecated in Rust 1.38.
Comment 1•5 years ago
|
||
FWIW, Servo is planning to do this so we'll get most of this when they get to it. I plan to do a sync tomorrow to allow this not to get too messy.
Reporter | ||
Comment 2•5 years ago
|
||
I had just started on doing this, but noticed that the current offset_of
macro used in servo_arc relies on UB, and would continue to do so when converted to MaybeUninit
. I have a patch to compute the offset differently which I'll upload to a separate bug.
Comment 3•5 years ago
|
||
Servo PR doing this in Stylo: https://github.com/servo/servo/pull/23726
m-c has a few other uses of mem::uninitialized
in WebRender and Cubeb.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•