Skip to content

Commit 929003a

Browse files
committedDec 1, 2022
Make VecDeque::new_in unstably const
1 parent e0098a5 commit 929003a

File tree

1 file changed

+1
-2
lines changed
  • library/alloc/src/collections/vec_deque

1 file changed

+1
-2
lines changed
 

‎library/alloc/src/collections/vec_deque/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -566,10 +566,9 @@ impl<T, A: Allocator> VecDeque<T, A> {
566566
///
567567
/// let deque: VecDeque<u32> = VecDeque::new();
568568
/// ```
569-
// FIXME: This should probably be const
570569
#[inline]
571570
#[unstable(feature = "allocator_api", issue = "32838")]
572-
pub fn new_in(alloc: A) -> VecDeque<T, A> {
571+
pub const fn new_in(alloc: A) -> VecDeque<T, A> {
573572
VecDeque { head: 0, len: 0, buf: RawVec::new_in(alloc) }
574573
}
575574

0 commit comments

Comments
 (0)
Please sign in to comment.