]> git.lizzy.rs Git - rust.git/commitdiff
Use T: ?Sized in intrinsics::forget
authorStjepan Glavina <stjepang@gmail.com>
Thu, 8 Nov 2018 16:58:12 +0000 (17:58 +0100)
committerStjepan Glavina <stjepang@gmail.com>
Thu, 8 Nov 2018 16:58:12 +0000 (17:58 +0100)
src/libcore/intrinsics.rs

index 4fcce7096b4b67f00293565a69de8ec848ab32d7..f795e41f7c5f0bec19668c43dec2190a9427758a 100644 (file)
 
     /// Moves a value out of scope without running drop glue.
     #[cfg(not(stage0))]
-    pub fn forget<T>(_: T);
+    pub fn forget<T: ?Sized>(_: T);
 
     /// Reinterprets the bits of a value of one type as another type.
     ///