Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Nikolai Vazquez
2017-09-30 10:08:33 -04:00
362 changed files with 7972 additions and 4180 deletions

View File

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