change never_type stabilisation version

This commit is contained in:
Andrew Cann 2018-03-01 01:41:10 +08:00
parent edb9d2b20d
commit a704624ef5
3 changed files with 7 additions and 7 deletions

View file

@ -882,24 +882,24 @@ mod impls {
ord_impl! { char usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
#[stable(feature = "never_type", since = "1.25.0")]
#[stable(feature = "never_type", since = "1.26.0")]
impl PartialEq for ! {
fn eq(&self, _: &!) -> bool {
*self
}
}
#[stable(feature = "never_type", since = "1.25.0")]
#[stable(feature = "never_type", since = "1.26.0")]
impl Eq for ! {}
#[stable(feature = "never_type", since = "1.25.0")]
#[stable(feature = "never_type", since = "1.26.0")]
impl PartialOrd for ! {
fn partial_cmp(&self, _: &!) -> Option<Ordering> {
*self
}
}
#[stable(feature = "never_type", since = "1.25.0")]
#[stable(feature = "never_type", since = "1.26.0")]
impl Ord for ! {
fn cmp(&self, _: &!) -> Ordering {
*self

View file

@ -1579,14 +1579,14 @@ macro_rules! fmt_refs {
fmt_refs! { Debug, Display, Octal, Binary, LowerHex, UpperHex, LowerExp, UpperExp }
#[stable(feature = "never_type", since = "1.25.0")]
#[stable(feature = "never_type", since = "1.26.0")]
impl Debug for ! {
fn fmt(&self, _: &mut Formatter) -> Result {
*self
}
}
#[stable(feature = "never_type", since = "1.25.0")]
#[stable(feature = "never_type", since = "1.26.0")]
impl Display for ! {
fn fmt(&self, _: &mut Formatter) -> Result {
*self

View file

@ -234,7 +234,7 @@ impl<'a> From<Cow<'a, str>> for Box<Error> {
}
}
#[stable(feature = "never_type", since = "1.25.0")]
#[stable(feature = "never_type", since = "1.26.0")]
impl Error for ! {
fn description(&self) -> &str { *self }
}