Skip to content
Permalink
Browse files

Review comments

  • Loading branch information...
SimonSapin committed Feb 17, 2019
1 parent b2cf9a0 commit cf267540ebabdeac1f2045819cd6bac561017e29
Showing with 16 additions and 2 deletions.
  1. +16 −2 src/libcore/convert.rs
@@ -41,6 +41,8 @@

#![stable(feature = "rust1", since = "1.0.0")]

use fmt;

/// An identity function.
///
/// Two things are important to note about this function:
@@ -571,8 +573,6 @@ impl Clone for Infallible {
}
}

use fmt;

#[stable(feature = "convert_infallible", since = "1.34.0")]
impl fmt::Debug for Infallible {
fn fmt(&self, _: &mut fmt::Formatter<'_>) -> fmt::Result {
@@ -597,6 +597,20 @@ impl PartialEq for Infallible {
#[stable(feature = "convert_infallible", since = "1.34.0")]
impl Eq for Infallible {}

#[stable(feature = "convert_infallible", since = "1.34.0")]
impl PartialOrd for Infallible {
fn partial_cmp(&self, _other: &Self) -> Option<crate::cmp::Ordering> {
match *self {}
}
}

#[stable(feature = "convert_infallible", since = "1.34.0")]
impl Ord for Infallible {
fn cmp(&self, _other: &Self) -> crate::cmp::Ordering {
match *self {}
}
}

#[stable(feature = "convert_infallible", since = "1.34.0")]
impl From<!> for Infallible {
fn from(x: !) -> Self {

0 comments on commit cf26754

Please sign in to comment.
You can’t perform that action at this time.