about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2015-09-16 16:09:01 +0200
committerAndrea Canciani <ranma42@gmail.com>2015-09-16 16:09:01 +0200
commit08b9edfe94c2680bde224b9dc6dd4a0de6616a07 (patch)
treef7a209a0ff8a1247ca473516d2a688afc37239d0
parent369a9dc302582145e37cf335c454fb6bd74906c6 (diff)
downloadrust-08b9edfe94c2680bde224b9dc6dd4a0de6616a07.tar.gz
rust-08b9edfe94c2680bde224b9dc6dd4a0de6616a07.zip
Remove inline attribute
Be more conservative with inlining.
-rw-r--r--src/libcore/slice.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs
index af8db18a873..dbebea37f6f 100644
--- a/src/libcore/slice.rs
+++ b/src/libcore/slice.rs
@@ -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];
@@ -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];