diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-31 11:27:21 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-31 15:53:39 -0700 |
| commit | e10ee2c8572421c056ea68e6656fee936e0330d8 (patch) | |
| tree | b66a0ecb48f039e3789837fd45d83d4461fb1035 /src/liballoc | |
| parent | da04788efca6ec1e421139fb4916a5aacd49a2e2 (diff) | |
| parent | e17f4fc1d4545f5c17b21805c5145b05495484ee (diff) | |
| download | rust-e10ee2c8572421c056ea68e6656fee936e0330d8.tar.gz rust-e10ee2c8572421c056ea68e6656fee936e0330d8.zip | |
rollup merge of #23879: seanmonstar/del-from-error
Conflicts: src/libcore/error.rs
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/boxed.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 48dce3d8815..f3c0dd0c3dc 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -51,7 +51,7 @@ use core::prelude::*; use core::any::Any; use core::cmp::Ordering; use core::default::Default; -use core::error::{Error, FromError}; +use core::error::Error; use core::fmt; use core::hash::{self, Hash}; use core::mem; @@ -308,8 +308,8 @@ impl<I: DoubleEndedIterator + ?Sized> DoubleEndedIterator for Box<I> { impl<I: ExactSizeIterator + ?Sized> ExactSizeIterator for Box<I> {} #[stable(feature = "rust1", since = "1.0.0")] -impl<'a, E: Error + 'a> FromError<E> for Box<Error + 'a> { - fn from_error(err: E) -> Box<Error + 'a> { +impl<'a, E: Error + 'a> From<E> for Box<Error + 'a> { + fn from(err: E) -> Box<Error + 'a> { Box::new(err) } } |
