Closed
Bug 1596311
Opened 5 years ago
Closed 5 years ago
Webrender fails to build with rustc 1.39 and warnings as errors - use `mem::MaybeUninit` instead
Categories
(Core :: Graphics: WebRender, defect, P3)
Core
Graphics: WebRender
Tracking
()
RESOLVED
DUPLICATE
of bug 1564873
People
(Reporter: chmanchester, Unassigned)
References
Details
Builds fail with
[task 2019-11-14T01:18:47.487Z] 01:18:47 INFO - error: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
[task 2019-11-14T01:18:47.487Z] 01:18:47 INFO - --> gfx/wr/webrender/src/prim_store/gradient.rs:665:77
[task 2019-11-14T01:18:47.488Z] 01:18:47 INFO - |
[task 2019-11-14T01:18:47.488Z] 01:18:47 INFO - 665 | let mut entries: [GradientDataEntry; GRADIENT_DATA_SIZE] = unsafe { mem::uninitialized() };
[task 2019-11-14T01:18:47.488Z] 01:18:47 INFO - | ^^^^^^^^^^^^^^^^^^
[task 2019-11-14T01:18:47.488Z] 01:18:47 INFO - |
[task 2019-11-14T01:18:47.488Z] 01:18:47 INFO - = note: `-D deprecated` implied by `-D warnings`
[task 2019-11-14T01:18:47.488Z] 01:18:47 INFO - error: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
[task 2019-11-14T01:18:47.488Z] 01:18:47 INFO - --> gfx/wr/webrender/src/renderer.rs:1602:32
[task 2019-11-14T01:18:47.488Z] 01:18:47 INFO - |
[task 2019-11-14T01:18:47.488Z] 01:18:47 INFO - 1602 | data.push(unsafe { mem::uninitialized() });
[task 2019-11-14T01:18:47.489Z] 01:18:47 INFO - | ^^^^^^^^^^^^^^^^^^
[task 2019-11-14T01:18:47.489Z] 01:18:47 INFO - error: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
[task 2019-11-14T01:18:47.489Z] 01:18:47 INFO - --> gfx/wr/webrender/src/renderer.rs:1610:36
[task 2019-11-14T01:18:47.489Z] 01:18:47 INFO - |
[task 2019-11-14T01:18:47.489Z] 01:18:47 INFO - 1610 | data.push(unsafe { mem::uninitialized() });
[task 2019-11-14T01:18:47.489Z] 01:18:47 INFO - | ^^^^^^^^^^^^^^^^^^
[task 2019-11-14T01:18:47.489Z] 01:18:47 INFO - error: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
[task 2019-11-14T01:18:47.489Z] 01:18:47 INFO - --> gfx/wr/webrender/src/platform/unix/font.rs:538:42
[task 2019-11-14T01:18:47.490Z] 01:18:47 INFO - |
[task 2019-11-14T01:18:47.490Z] 01:18:47 INFO - 538 | let mut cbox: FT_BBox = unsafe { mem::uninitialized() };
[task 2019-11-14T01:18:47.490Z] 01:18:47 INFO - | ^^^^^^^^^^^^^^^^^^
[task 2019-11-14T01:18:47.490Z] 01:18:47 INFO - error: use of deprecated item 'std::mem::uninitialized': use `mem::MaybeUninit` instead
[task 2019-11-14T01:18:47.490Z] 01:18:47 INFO - --> gfx/wr/webrender/src/platform/unix/font.rs:721:37
[task 2019-11-14T01:18:47.490Z] 01:18:47 INFO - |
[task 2019-11-14T01:18:47.490Z] 01:18:47 INFO - 721 | let mut cbox: FT_BBox = mem::uninitialized();
[task 2019-11-14T01:18:47.490Z] 01:18:47 INFO - | ^^^^^^^^^^^^^^^^^^
[task 2019-11-14T01:18:47.490Z] 01:18:47 INFO - error: aborting due to 5 previous errors
[task 2019-11-14T01:18:47.491Z] 01:18:47 INFO - error: could not compile `webrender`.
Comment 1•5 years ago
|
||
Probably bug 1564873 is the (long term) fix for this.
Updated•5 years ago
|
Summary: Webrender fails to build with rustc 1.39 and warnings as errors → Webrender fails to build with rustc 1.39 and warnings as errors - use `mem::MaybeUninit` instead
Comment 3•5 years ago
|
||
Should be good now.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•