Closed Bug 1736484 Opened 1 month ago Closed 1 month ago

[rust 1.57] error: field is never read: `index`

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: glandium, Assigned: glandium)

Details

Attachments

(1 file)

 3:30.27     --> gfx/wr/webrender/src/profiler.rs:1433:5
 3:30.27      |
 3:30.27 1433 |     index: usize,
 3:30.27      |     ^^^^^^^^^^^^
 3:30.27      |
 3:30.27      = note: `-D dead-code` implied by `-D warnings`
 3:30.27 error: field is never read: `swizzle`
 3:30.27    --> gfx/wr/webrender/src/device/gl.rs:389:5
 3:30.27     |
 3:30.27 389 |     swizzle: Swizzle,
 3:30.27     |     ^^^^^^^^^^^^^^^^
 3:30.27 error: field is never read: `description`
 3:30.27    --> gfx/wr/webrender/src/internal_types.rs:690:5
 3:30.27     |
 3:30.27 690 |     description: String,
 3:30.27     |     ^^^^^^^^^^^^^^^^^^^
 3:30.62 error: could not compile `webrender` due to 3 previous errors

And past those:

 0:09.16 error: unused return value of `CString::from_raw` that must be used
 0:09.16     --> gfx/webrender_bindings/src/bindings.rs:1709:9
 0:09.16      |
 0:09.16 1709 |         CString::from_raw(msg);
 0:09.16      |         ^^^^^^^^^^^^^^^^^^^^^^^
 0:09.16      |
 0:09.16 note: the lint level is defined here
 0:09.16     --> gfx/webrender_bindings/src/lib.rs:5:9
 0:09.16      |
 0:09.16 5    | #![deny(warnings)]
 0:09.16      |         ^^^^^^^^
 0:09.16      = note: `#[deny(unused_must_use)]` implied by `#[deny(warnings)]`
 0:09.16      = note: call `drop(from_raw(ptr))` if you intend to drop the `CString`
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/b8815353a549
Fix new dead-code warnings with rust 1.57. r=gfx-reviewers,nical
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/50c191c8b3eb
Fix new dead-code warnings with rust 1.57. r=gfx-reviewers,nical
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
Flags: needinfo?(mh+mozilla)
You need to log in before you can comment on or make changes to this bug.