Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix panic on "unreachable code" that is reachable #267
Conversation
|
According to the discussion on the linked issue, cancellation became supported in this issue servo/servo#22367 This is my first servo PR :) |
|
This isn't the correct fix, these items are not supposed to appear in the timeline, they get dealt with during insertion. The correct fix is to move this return to the outer if https://github.com/dralley/media/blob/d06aac618ed1884eb4a5d0b64a86bd371a60017f/audio/param.rs#L210 |
|
(we haven't implemented the difference between Cancel and CancelHold correctly, but that's for another time.) |
|
@Manishearth I'm still getting the issue - is this patch what you had in mind or did I move it to the wrong place? |
|
|
@dralley Are you sure it's been recompiled using your local branch? I don't see how this is possible at all. |
|
@Manishearth yup I'm sure
With a debug at the very top, it does print this
|
|
Can you paste the full backtrace? |
|
Oh. Right. Line 333 in 50ab227 That should return the inner time. My bad. |
|
But the others should still panic |
|
How about now? |
|
@bors-servo r+ Feel free to also add a test for this |
|
|
Fix panic on "unreachable code" that is reachable Fixes servo/servo#22580
|
@Manishearth I have no idea how to add a test for this unfortunately, first Servo PR. I'd be willing to do so but I'd need some guidance |
|
No biggie. If you want to try, you need to add another example under |
|
|
dralley commentedMay 26, 2019
Fixes servo/servo#22580