Mark {array,slice}::{from_ref,from_mut} as const fn

This commit is contained in:
Maybe Waffle
2021-10-22 11:15:56 +03:00
parent 1d6f24210c
commit a288bf6afb
3 changed files with 10 additions and 4 deletions

View File

@@ -135,6 +135,8 @@
#![feature(ptr_metadata)]
#![feature(slice_ptr_get)]
#![feature(variant_count)]
#![feature(const_array_from_ref)]
#![feature(const_slice_from_ref)]
//
// Language features:
#![feature(abi_unadjusted)]