about summary refs log tree commit diff
path: root/src/libstd/error.rs
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2016-05-04 22:42:14 -0700
committerSteven Fackler <sfackler@gmail.com>2016-05-07 08:52:41 -0700
commita9779df1886e18923f40cf0bb67ab72d4e4942df (patch)
tree8b2cb30118bca393968a3bd28ab0d47384ee76ec /src/libstd/error.rs
parent936b32a514b73c1d3dfcbd9d17818f9f18bf4883 (diff)
downloadrust-a9779df1886e18923f40cf0bb67ab72d4e4942df.tar.gz
rust-a9779df1886e18923f40cf0bb67ab72d4e4942df.zip
Implement RFC 1542
cc #33417
Diffstat (limited to 'src/libstd/error.rs')
-rw-r--r--src/libstd/error.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstd/error.rs b/src/libstd/error.rs
index 35cd4a5ec52..d49d9764946 100644
--- a/src/libstd/error.rs
+++ b/src/libstd/error.rs
@@ -159,6 +159,13 @@ impl Error for num::ParseIntError {
     }
 }
 
+#[unstable(feature = "try_from", issue = "33417")]
+impl Error for num::TryFromIntError {
+    fn description(&self) -> &str {
+        self.__description()
+    }
+}
+
 #[stable(feature = "rust1", since = "1.0.0")]
 impl Error for num::ParseFloatError {
     fn description(&self) -> &str {