about summary refs log tree commit diff
path: root/src/liballoc/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-08-15 19:10:40 +0000
committerbors <bors@rust-lang.org>2015-08-15 19:10:40 +0000
commitf05b22efb5e739b92b47527d29c5fa903f7e64b6 (patch)
tree8195c04753eb184726a2733d8a32d4cb84f5e71b /src/liballoc/lib.rs
parent753a6a9e29d4c8b4ee92345051fef61908c276b6 (diff)
parentea7768c2dd8089cc3c3dc1e27158cf1bed277308 (diff)
downloadrust-f05b22efb5e739b92b47527d29c5fa903f7e64b6.tar.gz
rust-f05b22efb5e739b92b47527d29c5fa903f7e64b6.zip
Auto merge of #27845 - dylanmckay:abstract-pointer-size-away, r=alexcrichton
This patch rewrites code in several places which assume that the current target has either 32-bit or 64-bit pointers so that it can support arbitrary-width pointers.

It does not completely remove all assumptions of pointer width, but it does reduce them significantly. There is a discussion [here](https://internals.rust-lang.org/t/adding-16-bit-pointer-support/2484/10) about the change.
Diffstat (limited to 'src/liballoc/lib.rs')
-rw-r--r--src/liballoc/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index ca86850f5df..2db9cc7c4d8 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -83,6 +83,7 @@
 #![feature(lang_items)]
 #![feature(no_std)]
 #![feature(nonzero)]
+#![feature(num_bits_bytes)]
 #![feature(optin_builtin_traits)]
 #![feature(placement_in_syntax)]
 #![feature(placement_new_protocol)]