Skip to content

Commit f211581

Browse files
author
Stjepan Glavina
committed
Use T: ?Sized in intrinsics::forget
1 parent 06cf9ae commit f211581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/intrinsics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ extern "rust-intrinsic" {
716716

717717
/// Moves a value out of scope without running drop glue.
718718
#[cfg(not(stage0))]
719-
pub fn forget<T>(_: T);
719+
pub fn forget<T: ?Sized>(_: T);
720720

721721
/// Reinterprets the bits of a value of one type as another type.
722722
///

0 commit comments

Comments
 (0)