diff options
| author | Joe Richey <joerichey@google.com> | 2020-04-24 00:19:11 -0700 |
|---|---|---|
| committer | Joe Richey <joerichey@google.com> | 2020-05-25 13:09:02 -0700 |
| commit | 9b3dfd8ea987ce1d4b5ccbcb4c032f60a71c8cfb (patch) | |
| tree | 8991eba30b12f651a895ad36de14230c1c9547de /src/libcore/lib.rs | |
| parent | 08df3116e92356311735be2d0c588d461e16fbff (diff) | |
| download | rust-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.rs | 1 |
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)] |
