File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1162,7 +1162,7 @@ extern "rust-intrinsic" {
1162
1162
///
1163
1163
/// The stabilized version of this intrinsic is [`mem::needs_drop`](crate::mem::needs_drop).
1164
1164
#[ rustc_const_stable( feature = "const_needs_drop" , since = "1.40.0" ) ]
1165
- pub fn needs_drop < T > ( ) -> bool ;
1165
+ pub fn needs_drop < T : ? Sized > ( ) -> bool ;
1166
1166
1167
1167
/// Calculates the offset from a pointer.
1168
1168
///
Original file line number Diff line number Diff line change @@ -592,7 +592,7 @@ pub const unsafe fn align_of_val_raw<T: ?Sized>(val: *const T) -> usize {
592
592
#[ stable( feature = "needs_drop" , since = "1.21.0" ) ]
593
593
#[ rustc_const_stable( feature = "const_mem_needs_drop" , since = "1.36.0" ) ]
594
594
#[ rustc_diagnostic_item = "needs_drop" ]
595
- pub const fn needs_drop < T > ( ) -> bool {
595
+ pub const fn needs_drop < T : ? Sized > ( ) -> bool {
596
596
intrinsics:: needs_drop :: < T > ( )
597
597
}
598
598
You can’t perform that action at this time.
0 commit comments