Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -56,6 +56,7 @@ use any::TypeId;
|
||||
use borrow::Cow;
|
||||
use cell;
|
||||
use char;
|
||||
use convert;
|
||||
use core::array;
|
||||
use fmt::{self, Debug, Display};
|
||||
use mem::transmute;
|
||||
@@ -370,6 +371,13 @@ 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 {
|
||||
|
||||
Reference in New Issue
Block a user