std: Don't use a wrapper for the float error type

Ensures that the same error type is propagated throughout. Unnecessary leakage
of the internals is prevented through the usage of stability attributes.

Closes #24748
This commit is contained in:
Alex Crichton
2015-04-24 15:58:27 -07:00
parent f3345cb0a7
commit 12910418fb
6 changed files with 22 additions and 47 deletions

View File

@@ -147,7 +147,7 @@ impl Error for num::ParseIntError {
#[stable(feature = "rust1", since = "1.0.0")]
impl Error for num::ParseFloatError {
fn description(&self) -> &str {
self.description()
self.__description()
}
}