Closed Bug 1536605 Opened 5 years ago Closed 5 years ago

New warnings in audioipc with rust 1.34 due to ATOMIC_USIZE_INIT usage

Categories

(Core :: Audio/Video: cubeb, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: bryce, Assigned: kinetik)

References

Details

Attachments

(1 file)

The usage of ATOMIC_USIZE_INIT has been deprecated in rust 1.34, and I see errors on Windows when trying to build due to their usage in audioipc (not sure about other platforms). We should fix these upstream then grab the changes in central.

Example log below (complete with garbled characters from Windows env.):

0:31.62    Compiling audioipc v0.2.4 (C:\Projects\mozilla-central\media\audioipc\audioipc)
 0:32.63 error: use of deprecated item 'std::sync::atomic::ATOMIC_USIZE_INIT': the `new` function is now preferred
 0:32.63  --> media\audioipc\audioipc\src\messagestream_win.rs:8:48
 0:32.63   |
 0:32.63 8 | use std::sync::atomic::{AtomicUsize, Ordering, ATOMIC_USIZE_INIT};
 0:32.63   |                                                ^^^^^^^^^^^^^^^^^
 0:32.63   |
 0:32.63   = note: `-D deprecated` implied by `-D warnings`
 0:32.63 error: use of deprecated item 'std::sync::atomic::ATOMIC_USIZE_INIT': the `new` function is now preferred
 0:32.63    --> media\audioipc\audioipc\src\messagestream_win.rs:103:31
 0:32.63     |
 0:32.63 103 | static PIPE_ID: AtomicUsize = ATOMIC_USIZE_INIT;
 0:32.63     |                               ^^^^^^^^^^^^^^^^^
 0:32.63 help: use of deprecated item 'std::sync::atomic::ATOMIC_USIZE_INIT': the `new` function is now preferred
 0:32.64     |
 0:32.65 103 | static PIPE_ID: AtomicUsize = AtomicUsize::new(0);
 0:32.65     |                               ^^^^^^^^^^^^^^^^^^^
 0:34.09 error: aborting due to 2 previous errors
 0:34.15 error: Could not compile `audioipc`.
Assignee: nobody → kinetik
Status: NEW → ASSIGNED
Blocks: 1536613
Pushed by mgregan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/494ebb6edf2a
Update audioipc to 9bb53d5ba11b.  r=chunmin
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: