summaryrefslogtreecommitdiff
path: root/rust_src.patch
diff options
context:
space:
mode:
Diffstat (limited to 'rust_src.patch')
-rw-r--r--rust_src.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/rust_src.patch b/rust_src.patch
index d782d16b..ac479382 100644
--- a/rust_src.patch
+++ b/rust_src.patch
@@ -1,9 +1,10 @@
--- rustc-nightly/src/libcore/intrinsics.rs
+++ rustc-nightly/src/libcore/intrinsics.rs
-@@ -643,5 +643,8 @@
+@@ -643,5 +643,9 @@
pub fn drop_in_place<T: ?Sized>(to_drop: *mut T);
+ /// Obtain the length of a slice pointer
++ #[cfg(rust_compiler="mrustc")]
+ pub fn mrustc_slice_len<T>(pointer: *const [T]) -> usize;
+
/// Gets a static string slice containing the name of a type.