about summary refs log tree commit diff
path: root/src/liballoc/raw_vec.rs
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2019-06-25 15:44:21 +0200
committerMatthias Geier <Matthias.Geier@gmail.com>2019-06-25 15:44:21 +0200
commitabe3bdf257f50b583cd7dea91e33424f700fb0c2 (patch)
treec023158dc72ca5e416c057d2627f8255133ea1b0 /src/liballoc/raw_vec.rs
parent0967d28be787b281c0364aca8fb9c25124029b30 (diff)
downloadrust-abe3bdf257f50b583cd7dea91e33424f700fb0c2.tar.gz
rust-abe3bdf257f50b583cd7dea91e33424f700fb0c2.zip
Remove RawVec::cap()
As suggested in https://github.com/rust-lang/rust/pull/60340#issuecomment-493681032
Diffstat (limited to 'src/liballoc/raw_vec.rs')
-rw-r--r--src/liballoc/raw_vec.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/liballoc/raw_vec.rs b/src/liballoc/raw_vec.rs
index e5a8a522fbc..7c92ee51337 100644
--- a/src/liballoc/raw_vec.rs
+++ b/src/liballoc/raw_vec.rs
@@ -209,12 +209,6 @@ impl<T, A: Alloc> RawVec<T, A> {
         }
     }
 
-    // For backwards compatibility
-    #[inline(always)]
-    pub fn cap(&self) -> usize {
-        self.capacity()
-    }
-
     /// Returns a shared reference to the allocator backing this RawVec.
     pub fn alloc(&self) -> &A {
         &self.a