Closed Bug 1559644 Opened 6 years ago Closed 6 years ago

--enable-warnings-as-errors fails due to -D ellipsis-inclusive-range-patterns with Rust 1.37

Categories

(Core :: WebRTC: Signaling, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1564647
Tracking Status
firefox69 --- affected

People

(Reporter: jbeich, Assigned: ng)

References

Details

Attachments

(1 file)

Probably regressed by https://github.com/rust-lang/rust/pull/61342

$ rustc -vV
rustc 1.37.0-nightly
binary: rustc
commit-hash: 991c719a1d0f95c37ed7ea56bdb38bcc2a6246b9
commit-date: 2019-06-08
host: x86_64-unknown-freebsd
release: 1.37.0-nightly
LLVM version: 8.0
$ echo "ac_add_options --enable-warnings-as-errors" >>.mozconfig
$ ./mach build
[...]
error: `...` range patterns are deprecated
    --> media/webrtc/signaling/src/sdp/rsdparsa/src/attribute_type.rs:1820:30
     |
1820 |                         x @ 0...0x00ff_ffff => x,
     |                              ^^^ help: use `..=` for an inclusive range
     |
     = note: `-D ellipsis-inclusive-range-patterns` implied by `-D warnings`
error: `...` range patterns are deprecated
    --> media/webrtc/signaling/src/sdp/rsdparsa/src/attribute_type.rs:1829:30
     |
1829 |                         x @ 0...2 => x,
     |                              ^^^ help: use `..=` for an inclusive range
error: `...` range patterns are deprecated
    --> media/webrtc/signaling/src/sdp/rsdparsa/src/attribute_type.rs:1867:22
     |
1867 |                 x @ 0...128 => parameters.encodings.push(x),
     |                      ^^^ help: use `..=` for an inclusive range
error: `...` range patterns are deprecated
    --> media/webrtc/signaling/src/sdp/rsdparsa/src/attribute_type.rs:1884:22
     |
1884 |                     0...100 => Some(x),
     |                      ^^^ help: use `..=` for an inclusive range
error: `...` range patterns are deprecated
   --> media/webrtc/signaling/src/sdp/rsdparsa/src/media_type.rs:374:24
    |
374 |                     96 ... 127 => (),  // dynamic range
    |                        ^^^ help: use `..=` for an inclusive range
error: aborting due to 5 previous errors
error: Could not compile `webrtc-sdp`.
Assignee: nobody → na-g

fixes new inclusive range warnings, fixes mut warnings

Priority: -- → P3

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:ng, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(na-g)
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(na-g)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: