core: Make pointer offset methods "const fn"

Signed-off-by: Joe Richey <joerichey@google.com>
This commit is contained in:
Joe Richey 2020-04-24 00:19:11 -07:00
parent 08df3116e9
commit 9b3dfd8ea9
4 changed files with 27 additions and 12 deletions

View file

@ -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)]