2 #![feature(rustc_private)]
4 #![deny(rust_2018_idioms)]
8 pub static ALLOCATOR_METHODS: &[AllocatorMethod] = &[
11 inputs: &[AllocatorTy::Layout],
12 output: AllocatorTy::ResultPtr,
16 inputs: &[AllocatorTy::Ptr, AllocatorTy::Layout],
17 output: AllocatorTy::Unit,
21 inputs: &[AllocatorTy::Ptr, AllocatorTy::Layout, AllocatorTy::Usize],
22 output: AllocatorTy::ResultPtr,
26 inputs: &[AllocatorTy::Layout],
27 output: AllocatorTy::ResultPtr,
31 pub struct AllocatorMethod {
32 pub name: &'static str,
33 pub inputs: &'static [AllocatorTy],
34 pub output: AllocatorTy,
37 pub enum AllocatorTy {