Navigation Menu

Skip to content

Commit

Permalink
change never_type stabilisation version
Browse files Browse the repository at this point in the history
  • Loading branch information
canndrew committed Mar 14, 2018
1 parent edb9d2b commit a704624
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/libcore/cmp.rs
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/libcore/fmt/mod.rs
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/error.rs
Expand Up @@ -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 }
}
Expand Down

0 comments on commit a704624

Please sign in to comment.