We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c17b3f commit 43612e2Copy full SHA for 43612e2
src/libcore/ptr/const_ptr.rs
@@ -706,6 +706,10 @@ impl<T: ?Sized> *const T {
706
}
707
708
709
+#[cfg(not(bootstrap))]
710
+#[lang = "const_slice_ptr"]
711
+impl<T> *const [T] {}
712
+
713
// Equality for pointers
714
#[stable(feature = "rust1", since = "1.0.0")]
715
impl<T: ?Sized> PartialEq for *const T {
src/libcore/ptr/mut_ptr.rs
@@ -894,6 +894,10 @@ impl<T: ?Sized> *mut T {
894
895
896
897
898
+#[lang = "mut_slice_ptr"]
899
+impl<T> *mut [T] {}
900
901
902
903
impl<T: ?Sized> PartialEq for *mut T {
0 commit comments