Closed Bug 1640983 Opened 6 years ago Closed 6 years ago

rust 1.45 must-use error about mem::replace in webrender

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: away, Assigned: away)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

1:16.17 error: unused return value of `std::mem::replace` that must be used
 1:16.17     --> gfx\wr\webrender\src\renderer.rs:2764:29
 1:16.17      |
 1:16.17 2764 | / ...                   mem::replace(
 1:16.17 2765 | | ...                       &mut self.active_documents[pos].1,
 1:16.17 2766 | | ...                       doc,
 1:16.17 2767 | | ...                   );
 1:16.17      | |________________________^
 1:16.17      |
 1:16.17      = note: `-D unused-must-use` implied by `-D warnings`
 1:16.17      = note: if you don't need the old value, you can just assign the new value directly
 1:16.17 error: aborting due to previous error
 1:16.18 error: could not compile `webrender`.
Assignee: nobody → dmajor
Status: NEW → ASSIGNED
Pushed by dmajor@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/168ba3892817 Fix a must-use error about mem::replace in renderer.rs r=gw
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
Has Regression Range: --- → yes
Keywords: regression
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: