Skip to content

Commit a028d77

Browse files
committed
---
yaml --- r: 113875 b: refs/heads/master c: f12b517 h: refs/heads/master i: 113873: 1a52112 113871: af4669d v: v3
1 parent b97b410 commit a028d77

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: e4271cae54c7f4a868c60a1822b91e702e511947
2+
refs/heads/master: f12b51705b064bbbeb86ad65663de476d07ad51f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
55
refs/heads/try: 7c6c492fb2af9a85f21ff952942df3523b22fd17

trunk/src/libcore/option.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,9 @@
138138
//! }
139139
//! ```
140140
141-
use any::Any;
142141
use cmp::{Eq, TotalEq, TotalOrd};
143142
use default::Default;
144143
use iter::{Iterator, DoubleEndedIterator, FromIterator, ExactSize};
145-
use kinds::Send;
146144
use mem;
147145
use slice;
148146

@@ -238,7 +236,7 @@ impl<T> Option<T> {
238236
///
239237
/// Fails if the value is a `None` with a custom failure message provided by `msg`.
240238
#[inline]
241-
pub fn expect<M: Any + Send>(self, msg: M) -> T {
239+
pub fn expect(self, msg: &str) -> T {
242240
match self {
243241
Some(val) => val,
244242
None => fail!(msg),

0 commit comments

Comments
 (0)