Skip to content

Commit

Permalink
Changed back inline markings.
Browse files Browse the repository at this point in the history
  • Loading branch information
penpalperson committed Jan 30, 2018
1 parent 81e4959 commit deba389
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/libcore/array.rs
Expand Up @@ -185,7 +185,6 @@ macro_rules! array_impls {

#[stable(feature = "rust1", since = "1.0.0")]
impl<T: fmt::Debug> fmt::Debug for [T; $N] {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
fmt::Debug::fmt(&&self[..], f)
}
Expand Down
1 change: 0 additions & 1 deletion src/libcore/fmt/float.rs
Expand Up @@ -125,7 +125,6 @@ macro_rules! floating {
($ty:ident) => (
#[stable(feature = "rust1", since = "1.0.0")]
impl Debug for $ty {
#[inline]
fn fmt(&self, fmt: &mut Formatter) -> Result {
float_to_decimal_common(fmt, self, true, 1)
}
Expand Down
8 changes: 0 additions & 8 deletions src/libcore/fmt/mod.rs
Expand Up @@ -1558,12 +1558,10 @@ macro_rules! fmt_refs {
$(
#[stable(feature = "rust1", since = "1.0.0")]
impl<'a, T: ?Sized + $tr> $tr for &'a T {
#[inline]
fn fmt(&self, f: &mut Formatter) -> Result { $tr::fmt(&**self, f) }
}
#[stable(feature = "rust1", since = "1.0.0")]
impl<'a, T: ?Sized + $tr> $tr for &'a mut T {
#[inline]
fn fmt(&self, f: &mut Formatter) -> Result { $tr::fmt(&**self, f) }
}
)*
Expand Down Expand Up @@ -1603,7 +1601,6 @@ impl Display for bool {

#[stable(feature = "rust1", since = "1.0.0")]
impl Debug for str {
#[inline]
fn fmt(&self, f: &mut Formatter) -> Result {
f.write_char('"')?;
let mut from = 0;
Expand Down Expand Up @@ -1632,7 +1629,6 @@ impl Display for str {

#[stable(feature = "rust1", since = "1.0.0")]
impl Debug for char {
#[inline]
fn fmt(&self, f: &mut Formatter) -> Result {
f.write_char('\'')?;
for c in self.escape_debug() {
Expand Down Expand Up @@ -1706,12 +1702,10 @@ impl<'a, T: ?Sized> Pointer for &'a mut T {

#[stable(feature = "rust1", since = "1.0.0")]
impl<T: ?Sized> Debug for *const T {
#[inline]
fn fmt(&self, f: &mut Formatter) -> Result { Pointer::fmt(self, f) }
}
#[stable(feature = "rust1", since = "1.0.0")]
impl<T: ?Sized> Debug for *mut T {
#[inline]
fn fmt(&self, f: &mut Formatter) -> Result { Pointer::fmt(self, f) }
}

Expand All @@ -1725,7 +1719,6 @@ macro_rules! tuple {
#[stable(feature = "rust1", since = "1.0.0")]
impl<$($name:Debug),*> Debug for ($($name,)*) where last_type!($($name,)+): ?Sized {
#[allow(non_snake_case, unused_assignments, deprecated)]
#[inline]
fn fmt(&self, f: &mut Formatter) -> Result {
let mut builder = f.debug_tuple("");
let ($(ref $name,)*) = *self;
Expand All @@ -1749,7 +1742,6 @@ tuple! { T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, }

#[stable(feature = "rust1", since = "1.0.0")]
impl<T: Debug> Debug for [T] {
#[inline]
fn fmt(&self, f: &mut Formatter) -> Result {
f.debug_list().entries(self.iter()).finish()
}
Expand Down
1 change: 0 additions & 1 deletion src/libcore/ptr.rs
Expand Up @@ -2202,7 +2202,6 @@ macro_rules! fnptr_impls_safety_abi {

#[stable(feature = "fnptr_impls", since = "1.4.0")]
impl<Ret, $($Arg),*> fmt::Debug for $FnTy {
#[inline]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
fmt::Pointer::fmt(&(*self as *const ()), f)
}
Expand Down

0 comments on commit deba389

Please sign in to comment.