Rename never_type_impls gate to never_type
This commit is contained in:
parent
5951f8d1ba
commit
b9df045b79
4 changed files with 8 additions and 8 deletions
|
@ -880,24 +880,24 @@ mod impls {
|
||||||
|
|
||||||
ord_impl! { char usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
|
ord_impl! { char usize u8 u16 u32 u64 u128 isize i8 i16 i32 i64 i128 }
|
||||||
|
|
||||||
#[unstable(feature = "never_type_impls", issue = "35121")]
|
#[unstable(feature = "never_type", issue = "35121")]
|
||||||
impl PartialEq for ! {
|
impl PartialEq for ! {
|
||||||
fn eq(&self, _: &!) -> bool {
|
fn eq(&self, _: &!) -> bool {
|
||||||
*self
|
*self
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "never_type_impls", issue = "35121")]
|
#[unstable(feature = "never_type", issue = "35121")]
|
||||||
impl Eq for ! {}
|
impl Eq for ! {}
|
||||||
|
|
||||||
#[unstable(feature = "never_type_impls", issue = "35121")]
|
#[unstable(feature = "never_type", issue = "35121")]
|
||||||
impl PartialOrd for ! {
|
impl PartialOrd for ! {
|
||||||
fn partial_cmp(&self, _: &!) -> Option<Ordering> {
|
fn partial_cmp(&self, _: &!) -> Option<Ordering> {
|
||||||
*self
|
*self
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "never_type_impls", issue = "35121")]
|
#[unstable(feature = "never_type", issue = "35121")]
|
||||||
impl Ord for ! {
|
impl Ord for ! {
|
||||||
fn cmp(&self, _: &!) -> Ordering {
|
fn cmp(&self, _: &!) -> Ordering {
|
||||||
*self
|
*self
|
||||||
|
|
|
@ -1546,14 +1546,14 @@ macro_rules! fmt_refs {
|
||||||
|
|
||||||
fmt_refs! { Debug, Display, Octal, Binary, LowerHex, UpperHex, LowerExp, UpperExp }
|
fmt_refs! { Debug, Display, Octal, Binary, LowerHex, UpperHex, LowerExp, UpperExp }
|
||||||
|
|
||||||
#[unstable(feature = "never_type_impls", issue = "35121")]
|
#[unstable(feature = "never_type", issue = "35121")]
|
||||||
impl Debug for ! {
|
impl Debug for ! {
|
||||||
fn fmt(&self, _: &mut Formatter) -> Result {
|
fn fmt(&self, _: &mut Formatter) -> Result {
|
||||||
*self
|
*self
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "never_type_impls", issue = "35121")]
|
#[unstable(feature = "never_type", issue = "35121")]
|
||||||
impl Display for ! {
|
impl Display for ! {
|
||||||
fn fmt(&self, _: &mut Formatter) -> Result {
|
fn fmt(&self, _: &mut Formatter) -> Result {
|
||||||
*self
|
*self
|
||||||
|
|
|
@ -234,7 +234,7 @@ impl<'a> From<Cow<'a, str>> for Box<Error> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[unstable(feature = "never_type_impls", issue = "35121")]
|
#[unstable(feature = "never_type", issue = "35121")]
|
||||||
impl Error for ! {
|
impl Error for ! {
|
||||||
fn description(&self) -> &str { *self }
|
fn description(&self) -> &str { *self }
|
||||||
}
|
}
|
||||||
|
|
|
@ -192,7 +192,7 @@ mod prim_bool { }
|
||||||
/// [`Default`]: default/trait.Default.html
|
/// [`Default`]: default/trait.Default.html
|
||||||
/// [`default()`]: default/trait.Default.html#tymethod.default
|
/// [`default()`]: default/trait.Default.html#tymethod.default
|
||||||
///
|
///
|
||||||
#[unstable(feature = "never_type_impls", issue = "35121")]
|
#[unstable(feature = "never_type", issue = "35121")]
|
||||||
mod prim_never { }
|
mod prim_never { }
|
||||||
|
|
||||||
#[doc(primitive = "char")]
|
#[doc(primitive = "char")]
|
||||||
|
|
Loading…
Add table
Reference in a new issue