summaryrefslogtreecommitdiff
path: root/rust_src.patch
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-04-29 22:25:55 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-04-29 22:25:55 +0800
commitda64dc602c7e6ae80095c8b77291ace04220c796 (patch)
tree436c37e15fcd88e28b7c7299428ff93550bef19b /rust_src.patch
parent6a2d30690eb4e5c6c2801a6c340ccfb65a3875b9 (diff)
downloadmrust-da64dc602c7e6ae80095c8b77291ace04220c796.tar.gz
rust src patch - Disable added instrinsic when not building with mrustc
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.