about summary refs log tree commit diff
path: root/src/liballoc/lib.rs
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2018-03-31 22:35:37 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2018-03-31 22:35:37 -0700
commitb394165538bc52063f79a1820135cfefa19370e7 (patch)
treea5f7dd9904f273e68887449cd4fc6d755e37ec3e /src/liballoc/lib.rs
parent80785a547d29519dbdb5781437ec318fb210b980 (diff)
downloadrust-b394165538bc52063f79a1820135cfefa19370e7.tar.gz
rust-b394165538bc52063f79a1820135cfefa19370e7.zip
Deprecate offset_to; switch core&alloc to using offset_from instead
Bonus: might make code than uses `.len()` on slice iterators faster
Diffstat (limited to 'src/liballoc/lib.rs')
-rw-r--r--src/liballoc/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index e98b58994bf..009441e1680 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -103,13 +103,13 @@
 #![feature(lang_items)]
 #![feature(needs_allocator)]
 #![feature(nonzero)]
-#![feature(offset_to)]
 #![feature(optin_builtin_traits)]
 #![feature(pattern)]
 #![feature(pin)]
 #![feature(placement_in_syntax)]
 #![feature(placement_new_protocol)]
 #![feature(ptr_internals)]
+#![feature(ptr_offset_from)]
 #![feature(rustc_attrs)]
 #![feature(slice_get_slice)]
 #![feature(slice_rsplit)]