Rename Alloc to AllocRef

This commit is contained in:
Tim Diekmann 2020-01-23 01:49:29 +01:00
parent c2d141df59
commit 7ca25db816
No known key found for this signature in database
GPG key ID: D393760BF8145B42
16 changed files with 60 additions and 45 deletions

View file

@ -4,7 +4,7 @@
#![feature(allocator_api, nonnull)]
use std::alloc::{Alloc, Global, Layout, handle_alloc_error};
use std::alloc::{AllocRef, Global, Layout, handle_alloc_error};
fn main() {
unsafe {

View file

@ -7,7 +7,7 @@
extern crate helper;
use std::alloc::{self, Global, Alloc, System, Layout};
use std::alloc::{self, Global, AllocRef, System, Layout};
use std::sync::atomic::{AtomicUsize, Ordering};
static HITS: AtomicUsize = AtomicUsize::new(0);

View file

@ -9,7 +9,7 @@
extern crate custom;
extern crate helper;
use std::alloc::{Global, Alloc, System, Layout};
use std::alloc::{Global, AllocRef, System, Layout};
use std::sync::atomic::{Ordering, AtomicUsize};
#[global_allocator]

View file

@ -6,7 +6,7 @@
#![feature(allocator_api)]
use std::alloc::{Global, Alloc, Layout, handle_alloc_error};
use std::alloc::{Global, AllocRef, Layout, handle_alloc_error};
use std::ptr::{self, NonNull};
fn main() {

View file

@ -6,7 +6,7 @@
#![feature(allocator_api)]
use std::alloc::{Alloc, Global, Layout, handle_alloc_error};
use std::alloc::{AllocRef, Global, Layout, handle_alloc_error};
use std::ptr::NonNull;
struct arena(());