Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/libcore/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@

use iter::{FromIterator, FusedIterator, TrustedLen};
use mem;
use intrinsics;

// Note that this is not a lang item per se, but it has a hidden dependency on
// `Iterator`, which is one. The compiler assumes that the `next` method of
Expand Down Expand Up @@ -665,7 +666,7 @@ impl<T> Option<T> {

match *self {
Some(ref mut v) => v,
_ => unreachable!(),
_ => unsafe { intrinsics::unreachable() }
}
}

Expand Down Expand Up @@ -698,7 +699,7 @@ impl<T> Option<T> {

match *self {
Some(ref mut v) => v,
_ => unreachable!(),
_ => unsafe { intrinsics::unreachable() }
}
}

Expand Down