about summary refs log tree commit diff
path: root/src/libstd/error.rs
diff options
context:
space:
mode:
authorAndrew Cann <shum@canndrew.org>2018-03-15 12:35:56 +0800
committerAndrew Cann <shum@canndrew.org>2018-03-15 12:35:56 +0800
commit4647156985404f07dc2e61eed6f2e24770b339a9 (patch)
treef9b49b7440b8f7300f694efbcc67965c315f9901 /src/libstd/error.rs
parenta8a0c691914b72d1ca54057914b4cee2bd097ae3 (diff)
downloadrust-4647156985404f07dc2e61eed6f2e24770b339a9.tar.gz
rust-4647156985404f07dc2e61eed6f2e24770b339a9.zip
replace `convert::Infallible` with `!`
Diffstat (limited to 'src/libstd/error.rs')
-rw-r--r--src/libstd/error.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libstd/error.rs b/src/libstd/error.rs
index f8dbe193fed..79bb6af168f 100644
--- a/src/libstd/error.rs
+++ b/src/libstd/error.rs
@@ -56,7 +56,6 @@ use any::TypeId;
 use borrow::Cow;
 use cell;
 use char;
-use convert;
 use core::array;
 use fmt::{self, Debug, Display};
 use mem::transmute;
@@ -371,14 +370,6 @@ impl Error for char::ParseCharError {
     }
 }
 
-#[unstable(feature = "try_from", issue = "33417")]
-impl Error for convert::Infallible {
-    fn description(&self) -> &str {
-        match *self {
-        }
-    }
-}
-
 // copied from any.rs
 impl Error + 'static {
     /// Returns true if the boxed type is the same as `T`