bastion-rs/allocator-suite

Update std::alloc api

o0Ignition0o opened this issue · 0 comments

Looks like the api changed again :/

  |
2 | use std::alloc::{AllocErr, AllocInit, AllocRef, GlobalAlloc, Layout, MemoryBlock};
  |                            ^^^^^^^^^ no `AllocInit` in `alloc`

error[E0050]: method `alloc` has 3 parameters but the declaration in trait `std::alloc::AllocRef::alloc` has 2
##[error]  --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/allocator-suite-0.1.6/src/adaptors/allocator_adaptor.rs:47:14
   |
47 |     fn alloc(&mut self, layout: Layout, init: AllocInit) -> Result<MemoryBlock, AllocErr> {
   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 parameters, found 3
   |
   = note: `alloc` from trait: `fn(&mut Self, std::alloc::Layout) -> std::result::Result<std::alloc::MemoryBlock, std::alloc::AllocErr>`

error: aborting due to 2 previous errors
##[error]aborting due to 2 previous errors
Some errors have detailed explanations: E0050, E0432.
For more information about an error, try `rustc --explain E0050`.
error: could not compile `allocator-suite`.
##[error]could not compile `allocator-suite`.
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
##[warning]error: build failed
##[error]The process '/usr/share/rust/.cargo/bin/cargo' failed with exit code 101```