We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
repeat_vec_with_capacity
1 parent b95bef0 commit 08b676dCopy full SHA for 08b676d
alloc/src/vec/mod.rs
@@ -477,6 +477,7 @@ impl<T> Vec<T> {
477
#[inline]
478
#[stable(feature = "rust1", since = "1.0.0")]
479
#[must_use]
480
+ #[cfg_attr(not(test), rustc_diagnostic_item = "vec_with_capacity")]
481
pub fn with_capacity(capacity: usize) -> Self {
482
Self::with_capacity_in(capacity, Global)
483
}
0 commit comments