Closed Bug 1692353 Opened 4 years ago Closed 4 years ago

[rust 1.50] use of deprecated associated function `std::sync::atomic::AtomicPtr::<T>::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

[task 2021-02-11T23:17:38.107Z] 23:17:38     INFO -  error: use of deprecated associated function `std::sync::atomic::AtomicPtr::<T>::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead
[task 2021-02-11T23:17:38.107Z] 23:17:38     INFO -     --> gfx/wr/webrender/src/compositor/sw_compositor.rs:755:18
[task 2021-02-11T23:17:38.107Z] 23:17:38     INFO -      |
[task 2021-02-11T23:17:38.107Z] 23:17:38     INFO -  755 |                 .compare_and_swap(current_job_ptr, ptr::null_mut(), Ordering::Relaxed);
[task 2021-02-11T23:17:38.107Z] 23:17:38     INFO -      |                  ^^^^^^^^^^^^^^^^
[task 2021-02-11T23:17:38.107Z] 23:17:38     INFO -      |
[task 2021-02-11T23:17:38.107Z] 23:17:38     INFO -      = note: `-D deprecated` implied by `-D warnings`
[task 2021-02-11T23:17:38.108Z] 23:17:38    ERROR -  error: aborting due to previous error
[task 2021-02-11T23:17:38.108Z] 23:17:38     INFO -  error: could not compile `webrender`
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/a3ec063a11a3 Replace use of compare_and_swap with compare_exchange. r=lsalzman
Status: NEW → RESOLVED
Closed: 4 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: