|
extern crate unreachable; |
|
use unreachable::UncheckedOptionExt; |
|
unsafe { self.pop().unchecked_unwrap() } |
Seems like we might be able to replace this usage with this:
use std::hint;
// ...
unsafe {
self.pop().unwrap_or_else(hint::unreachable_unchecked)
}