Closed
Bug 1731707
Opened 4 years ago
Closed 4 years ago
[rust 1.56] error: unreachable expression in wrench/src/main.rs
Categories
(Core :: Graphics: WebRender, defect)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
94 Branch
| Tracking | Status | |
|---|---|---|
| firefox94 | --- | fixed |
People
(Reporter: glandium, Assigned: glandium)
References
Details
Attachments
(1 file)
[task 2021-09-21T02:00:52.129Z] error: unreachable expression
[task 2021-09-21T02:00:52.129Z] --> wrench/src/main.rs:350:21
[task 2021-09-21T02:00:52.129Z] |
[task 2021-09-21T02:00:52.129Z] 345 | let (_window, _context) = angle::Context::with_window(
[task 2021-09-21T02:00:52.129Z] | ___________________________________________-
[task 2021-09-21T02:00:52.129Z] 346 | | window_builder, context_builder, events_loop
[task 2021-09-21T02:00:52.129Z] 347 | | ).unwrap();
[task 2021-09-21T02:00:52.129Z] | |__________________________- any code following this expression is unreachable
[task 2021-09-21T02:00:52.129Z] ...
[task 2021-09-21T02:00:52.129Z] 350 | _context
[task 2021-09-21T02:00:52.129Z] | ^^^^^^^^ unreachable expression
[task 2021-09-21T02:00:52.129Z] |
[task 2021-09-21T02:00:52.129Z] = note: `-D unreachable-code` implied by `-D warnings`
[task 2021-09-21T02:00:52.129Z] note: this expression has type `(glutin::Window, angle::Context)`, which is uninhabited
[task 2021-09-21T02:00:52.129Z] --> wrench/src/main.rs:345:43
[task 2021-09-21T02:00:52.129Z] |
[task 2021-09-21T02:00:52.129Z] 345 | let (_window, _context) = angle::Context::with_window(
[task 2021-09-21T02:00:52.129Z] | ___________________________________________^
[task 2021-09-21T02:00:52.129Z] 346 | | window_builder, context_builder, events_loop
[task 2021-09-21T02:00:52.129Z] 347 | | ).unwrap();
[task 2021-09-21T02:00:52.129Z] | |__________________________^
[task 2021-09-21T02:00:52.129Z]
[task 2021-09-21T02:00:52.498Z] error: could not compile `wrench` due to previous error
It looks like rust 1.56 now finds out that andle::Context::with_windows(...).unwrap() is always panicking on non-windows.
| Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/f66a5b3d911a
Work around rust >= 1.56 finding unreachable code on non-windows. r=gfx-reviewers,jrmuizel
Comment 3•4 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox94:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•