Skip to content

Commit 08b9edf

Browse files
committed
Remove inline attribute
Be more conservative with inlining.
1 parent 369a9dc commit 08b9edf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/libcore/slice.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,6 @@ impl<T: Eq> Eq for [T] {}
15581558

15591559
#[stable(feature = "rust1", since = "1.0.0")]
15601560
impl<T: Ord> Ord for [T] {
1561-
#[inline]
15621561
fn cmp(&self, other: &[T]) -> Ordering {
15631562
let l = cmp::min(self.len(), other.len());
15641563
let lhs = &self[..l];
@@ -1577,7 +1576,6 @@ impl<T: Ord> Ord for [T] {
15771576

15781577
#[stable(feature = "rust1", since = "1.0.0")]
15791578
impl<T: PartialOrd> PartialOrd for [T] {
1580-
#[inline]
15811579
fn partial_cmp(&self, other: &[T]) -> Option<Ordering> {
15821580
let l = cmp::min(self.len(), other.len());
15831581
let lhs = &self[..l];

0 commit comments

Comments
 (0)