diff options
| author | Austin Bonander <austin.bonander@gmail.com> | 2018-10-02 04:26:16 -0700 |
|---|---|---|
| committer | Austin Bonander <austin.bonander@gmail.com> | 2018-10-02 04:26:16 -0700 |
| commit | e0caaec6f92b7d9bf02278c6ed991cdb7139cd06 (patch) | |
| tree | 47fca63b8a5776633f66de5b226c69419f957468 /src/libstd | |
| parent | 092bf2b50067a92e03da024b0406dca1c0e05d12 (diff) | |
| download | rust-e0caaec6f92b7d9bf02278c6ed991cdb7139cd06.tar.gz rust-e0caaec6f92b7d9bf02278c6ed991cdb7139cd06.zip | |
make `CStr::from_bytes_with_nul_unchecked()` a const fn
closes #54678
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index f8b1760975a..afe0b67e330 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -254,6 +254,7 @@ #![feature(const_int_ops)] #![feature(const_ip)] #![feature(const_raw_ptr_deref)] +#![feature(const_cstr_unchecked)] #![feature(core_intrinsics)] #![feature(dropck_eyepatch)] #![feature(exact_size_is_empty)] |
