From d469723df708088fedebea9ef03a46fefd97dab1 Mon Sep 17 00:00:00 2001 From: Ankit Bhardwaj Date: Wed, 30 Sep 2020 19:04:46 -0600 Subject: [PATCH] Add feature to allow mutable reference update in a const fn. More information can be found at https://github.com/rust-lang/rust/issues/71212 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index f8cd586..8175cc4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,7 +18,7 @@ //! # Implementing GlobalAlloc //! See the [global alloc](https://github.com/gz/rust-slabmalloc/tree/master/examples/global_alloc.rs) example. #![allow(unused_features)] -#![cfg_attr(feature = "unstable", feature(const_fn))] +#![cfg_attr(feature = "unstable", feature(const_fn, const_mut_refs))] #![cfg_attr( test, feature(