Skip to content

Commit 5a6273e

Browse files
committed
Do not implement Unpin as const
1 parent bc6483d commit 5a6273e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/alloc/src/boxed.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,8 +2037,7 @@ impl<T: ?Sized, A: Allocator> AsMut<T> for Box<T, A> {
20372037
* could have a method to project a Pin<T> from it.
20382038
*/
20392039
#[stable(feature = "pin", since = "1.33.0")]
2040-
#[rustc_const_unstable(feature = "const_box", issue = "92521")]
2041-
impl<T: ?Sized, A: Allocator> const Unpin for Box<T, A> where A: 'static {}
2040+
impl<T: ?Sized, A: Allocator> Unpin for Box<T, A> where A: 'static {}
20422041

20432042
#[unstable(feature = "generator_trait", issue = "43122")]
20442043
impl<G: ?Sized + Generator<R> + Unpin, R, A: Allocator> Generator<R> for Box<G, A>

0 commit comments

Comments
 (0)