2 #![feature(rustc_private)]
4 #![deny(rust_2018_idioms)]
6 #![deny(unused_lifetimes)]
10 pub static ALLOCATOR_METHODS: &[AllocatorMethod] = &[
13 inputs: &[AllocatorTy::Layout],
14 output: AllocatorTy::ResultPtr,
18 inputs: &[AllocatorTy::Ptr, AllocatorTy::Layout],
19 output: AllocatorTy::Unit,
23 inputs: &[AllocatorTy::Ptr, AllocatorTy::Layout, AllocatorTy::Usize],
24 output: AllocatorTy::ResultPtr,
28 inputs: &[AllocatorTy::Layout],
29 output: AllocatorTy::ResultPtr,
33 pub struct AllocatorMethod {
34 pub name: &'static str,
35 pub inputs: &'static [AllocatorTy],
36 pub output: AllocatorTy,
39 pub enum AllocatorTy {