Skip to content

Commit 1e0b9ca

Browse files
committed
Revert accidental stabilization
1 parent 9759f0a commit 1e0b9ca

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

alloc/src/boxed.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,8 +1170,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
11701170
}
11711171

11721172
#[stable(feature = "rust1", since = "1.0.0")]
1173-
#[rustc_const_unstable(feature = "const_box", issue = "92521")]
1174-
unsafe impl<#[may_dangle] T: ?Sized, A: Allocator> const Drop for Box<T, A> {
1173+
unsafe impl<#[may_dangle] T: ?Sized, A: Allocator> Drop for Box<T, A> {
11751174
fn drop(&mut self) {
11761175
// FIXME: Do nothing, drop is currently performed by compiler.
11771176
}

alloc/tests/boxed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ fn const_box() {
160160
*boxed = 42;
161161
assert!(*boxed == 42);
162162

163-
*boxed
163+
*Box::leak(boxed)
164164
};
165165

166166
assert!(VALUE == 42);

0 commit comments

Comments
 (0)