Closed Bug 1690546 Opened 3 years ago Closed 3 years ago

Rust 1.51 nightly has warning-as-errors in webrender

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: away, Assigned: kvark)

Details

Attachments

(1 file)

 1:18.78 error: field is never read: `handle`
 1:18.78    --> gfx\wr\webrender\src\gpu_cache.rs:651:5
 1:18.78     |
 1:18.78 651 |     handle: &'a mut GpuCacheHandle,
 1:18.78     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 1:18.78     |
 1:18.78     = note: `-D dead-code` implied by `-D warnings`
 1:18.78 error: field is never read: `map_child_pic_to_surface`
 1:18.78     --> gfx\wr\webrender\src\picture.rs:2260:5
 1:18.78      |
 1:18.78 2260 |     map_child_pic_to_surface: SpaceMapper<PicturePixel, PicturePixel>,
 1:18.78      |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 1:18.78 error: variant is never constructed: `Resolve`
 1:18.78   --> gfx\wr\webrender\src\renderer\shade.rs:69:5
 1:18.78    |
 1:18.78 69 |     Resolve,
 1:18.78    |     ^^^^^^^

Note the handle comment - looks like a compiler bug to call it unused?

Assignee: nobody → dmalyshau
Status: NEW → ASSIGNED

That handle warning looks like a Rust bug to me. We are reading this field in the destructor:

self.handle.location = Some(location);

Severity: -- → S3

(In reply to Dzmitry Malyshau [:kvark] from comment #2)

That handle warning looks like a Rust bug to me. We are reading this field in the destructor:

self.handle.location = Some(location);

But that's a write, so it's still unread, no?

Pushed by dmalyshau@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bfe9e8cddc74
Fix Rust nightly warnings due to dead_code in WR r=gw
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: