about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorAustin Bonander <austin.bonander@gmail.com>2018-10-02 04:26:16 -0700
committerAustin Bonander <austin.bonander@gmail.com>2018-10-02 04:26:16 -0700
commite0caaec6f92b7d9bf02278c6ed991cdb7139cd06 (patch)
tree47fca63b8a5776633f66de5b226c69419f957468 /src/libstd
parent092bf2b50067a92e03da024b0406dca1c0e05d12 (diff)
downloadrust-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.rs1
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)]