File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ use nonzero::NonZero;
27
27
28
28
use cmp:: Ordering :: { self , Less , Equal , Greater } ;
29
29
30
+ #[ cfg( stage0) ]
31
+ use marker:: Sized as DynSized ;
32
+ #[ cfg( not( stage0) ) ]
33
+ use marker:: DynSized ;
34
+
30
35
// FIXME #19649: intrinsic docs don't render, so these have no docs :(
31
36
32
37
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -473,7 +478,7 @@ pub unsafe fn write_volatile<T>(dst: *mut T, src: T) {
473
478
}
474
479
475
480
#[ lang = "const_ptr" ]
476
- impl < T : ?Sized > * const T {
481
+ impl < T : ?DynSized > * const T {
477
482
/// Returns `true` if the pointer is null.
478
483
///
479
484
/// # Examples
@@ -1105,7 +1110,7 @@ impl<T: ?Sized> *const T {
1105
1110
}
1106
1111
1107
1112
#[ lang = "mut_ptr" ]
1108
- impl < T : ?Sized > * mut T {
1113
+ impl < T : ?DynSized > * mut T {
1109
1114
/// Returns `true` if the pointer is null.
1110
1115
///
1111
1116
/// # Examples
You can’t perform that action at this time.
0 commit comments