Skip to content

Commit

Permalink
Remove inline attribute
Browse files Browse the repository at this point in the history
Be more conservative with inlining.
  • Loading branch information
ranma42 committed Sep 16, 2015
1 parent 369a9dc commit 08b9edf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/libcore/slice.rs
Expand Up @@ -1558,7 +1558,6 @@ impl<T: Eq> Eq for [T] {}

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

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

0 comments on commit 08b9edf

Please sign in to comment.