We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75ff311 commit 4d8273dCopy full SHA for 4d8273d
src/liballoc/macros.rs
@@ -36,6 +36,9 @@
36
#[stable(feature = "rust1", since = "1.0.0")]
37
#[allow_internal_unstable(box_syntax)]
38
macro_rules! vec {
39
+ () => (
40
+ $crate::vec::Vec::new()
41
+ );
42
($elem:expr; $n:expr) => (
43
$crate::vec::from_elem($elem, $n)
44
);
@@ -51,6 +54,9 @@ macro_rules! vec {
51
54
// NB see the slice::hack module in slice.rs for more information
52
55
#[cfg(test)]
53
56
57
58
59
60
61
62
0 commit comments