mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
Remove RawVec::cap()
As suggested in https://github.com/rust-lang/rust/pull/60340#issuecomment-493681032
This commit is contained in:
@@ -209,12 +209,6 @@ pub fn capacity(&self) -> usize {
|
||||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user