Skip to content

Commit

Permalink
Fix version number
Browse files Browse the repository at this point in the history
  • Loading branch information
canndrew committed Jan 21, 2018
1 parent 3848428 commit 72ce701
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
Original file line number Diff line number Diff line change
Expand Up @@ -880,24 +880,24 @@ mod impls {

ord_impl! { char usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }

#[stable(feature = "never_type", since = "1.24.0")]
#[stable(feature = "never_type", since = "1.25.0")]
impl PartialEq for ! {
fn eq(&self, _: &!) -> bool {
*self
}
}

#[stable(feature = "never_type", since = "1.24.0")]
#[stable(feature = "never_type", since = "1.25.0")]
impl Eq for ! {}

#[stable(feature = "never_type", since = "1.24.0")]
#[stable(feature = "never_type", since = "1.25.0")]
impl PartialOrd for ! {
fn partial_cmp(&self, _: &!) -> Option<Ordering> {
*self
}
}

#[stable(feature = "never_type", since = "1.24.0")]
#[stable(feature = "never_type", since = "1.25.0")]
impl Ord for ! {
fn cmp(&self, _: &!) -> Ordering {
*self
Expand Down
4 changes: 2 additions & 2 deletions src/libcore/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1570,14 +1570,14 @@ macro_rules! fmt_refs {

fmt_refs! { Debug, Display, Octal, Binary, LowerHex, UpperHex, LowerExp, UpperExp }

#[stable(feature = "never_type", since = "1.24.0")]
#[stable(feature = "never_type", since = "1.25.0")]
impl Debug for ! {
fn fmt(&self, _: &mut Formatter) -> Result {
*self
}
}

#[stable(feature = "never_type", since = "1.24.0")]
#[stable(feature = "never_type", since = "1.25.0")]
impl Display for ! {
fn fmt(&self, _: &mut Formatter) -> Result {
*self
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ impl<'a> From<Cow<'a, str>> for Box<Error> {
}
}

#[stable(feature = "never_type", since = "1.24.0")]
#[stable(feature = "never_type", since = "1.25.0")]
impl Error for ! {
fn description(&self) -> &str { *self }
}
Expand Down

0 comments on commit 72ce701

Please sign in to comment.