From 53f3fadaef329a0f9632f7f60776fde4d31b9c03 Mon Sep 17 00:00:00 2001 From: Glauber Costa Date: Thu, 29 Oct 2020 12:53:23 -0400 Subject: [PATCH] remove allocator API requirement I figured I'd have to adapt the code a bit to remove that, but right now as of 2020 just by removing the feature the code compile just fine with the stable compiler: My environment: $ rustup default stable-x86_64-unknown-linux-gnu (default) I intend to use this as a building block for my crate, Scipio (https://crates.io/crates/scipio) but I'd like to enforce stable there. --- src/lib.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9e6c7bd..6ac3918 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,3 @@ -#![feature(allocator_api)] - extern crate core; use core::alloc::Layout;