2 #![feature(rustc_private)]
4 #![deny(rust_2018_idioms)]
9 pub static ALLOCATOR_METHODS: &[AllocatorMethod] = &[
12 inputs: &[AllocatorTy::Layout],
13 output: AllocatorTy::ResultPtr,
17 inputs: &[AllocatorTy::Ptr, AllocatorTy::Layout],
18 output: AllocatorTy::Unit,
22 inputs: &[AllocatorTy::Ptr, AllocatorTy::Layout, AllocatorTy::Usize],
23 output: AllocatorTy::ResultPtr,
27 inputs: &[AllocatorTy::Layout],
28 output: AllocatorTy::ResultPtr,
32 pub struct AllocatorMethod {
33 pub name: &'static str,
34 pub inputs: &'static [AllocatorTy],
35 pub output: AllocatorTy,
38 pub enum AllocatorTy {