replace convert::Infallible with !

This commit is contained in:
Andrew Cann
2018-03-15 12:35:56 +08:00
parent a8a0c69191
commit 4647156985
3 changed files with 6 additions and 42 deletions

View File

@@ -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`