about summary refs log tree commit diff
path: root/src/libcore/lib.rs
diff options
context:
space:
mode:
authorJoe Richey <joerichey@google.com>2020-04-24 00:19:11 -0700
committerJoe Richey <joerichey@google.com>2020-05-25 13:09:02 -0700
commit9b3dfd8ea987ce1d4b5ccbcb4c032f60a71c8cfb (patch)
tree8991eba30b12f651a895ad36de14230c1c9547de /src/libcore/lib.rs
parent08df3116e92356311735be2d0c588d461e16fbff (diff)
downloadrust-9b3dfd8ea987ce1d4b5ccbcb4c032f60a71c8cfb.tar.gz
rust-9b3dfd8ea987ce1d4b5ccbcb4c032f60a71c8cfb.zip
core: Make pointer offset methods "const fn"
Signed-off-by: Joe Richey <joerichey@google.com>
Diffstat (limited to 'src/libcore/lib.rs')
-rw-r--r--src/libcore/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs
index ca13433caec..7d21f9a9a66 100644
--- a/src/libcore/lib.rs
+++ b/src/libcore/lib.rs
@@ -85,6 +85,7 @@
 #![feature(const_panic)]
 #![feature(const_fn_union)]
 #![feature(const_generics)]
+#![feature(const_ptr_offset)]
 #![feature(const_ptr_offset_from)]
 #![feature(const_result)]
 #![feature(const_slice_from_raw_parts)]