From e0caaec6f92b7d9bf02278c6ed991cdb7139cd06 Mon Sep 17 00:00:00 2001 From: Austin Bonander Date: Tue, 2 Oct 2018 04:26:16 -0700 Subject: make `CStr::from_bytes_with_nul_unchecked()` a const fn closes #54678 --- src/libstd/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libstd') 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)] -- cgit 1.4.1-3-g733a5