about summary refs log tree commit diff
path: root/example/mini_core.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2018-11-17 15:02:57 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2018-11-17 15:02:57 +0100
commit16334be18e50be2a66675a860e4d600c288ff34c (patch)
treea0b4e7041b69ad085ec7908e843742047431284c /example/mini_core.rs
parente3bbef764c6d2b8655a8d2f8540b5aaffa1924ef (diff)
downloadrust-16334be18e50be2a66675a860e4d600c288ff34c.tar.gz
rust-16334be18e50be2a66675a860e4d600c288ff34c.zip
Remove a workaround for icmp.i8/i16 not having an encoding
Diffstat (limited to 'example/mini_core.rs')
-rw-r--r--example/mini_core.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/mini_core.rs b/example/mini_core.rs
index b8504a14771..83dd4f10f5e 100644
--- a/example/mini_core.rs
+++ b/example/mini_core.rs
@@ -1,4 +1,4 @@
-#![feature(no_core, lang_items, intrinsics, unboxed_closures)]
+#![feature(no_core, lang_items, intrinsics, unboxed_closures, type_ascription)]
 #![no_core]
 #![allow(dead_code)]
 
@@ -246,7 +246,7 @@ pub struct Box<T: ?Sized>(*mut T);
 
 impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Box<U>> for Box<T> {}
 
-static mut MY_TINY_HEAP: [u8; 16] = [0; 16];
+static mut MY_TINY_HEAP: [u8; 16] = [0xff; 16];
 
 #[lang = "exchange_malloc"]
 unsafe fn allocate(size: usize, _align: usize) -> *mut u8 {