Skip to content

Building with "unsafe" and "std" features fails with alloc-stdlib 0.2.2 #23

@plugwash

Description

@plugwash

If I try and build with both the "std" and "unsafe" features enabled and alloc-stdlib 0.2.2 the build fails with

error[E0061]: this function takes 1 argument but 0 arguments were supplied
   --> src/reader.rs:150:33
    |
150 |     let mut alloc_u8 = unsafe { HeapAllocUninitialized::<u8>::new() };
    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-- an argument of type `u8` is missing
    |

and a bunch more similar errors.

If I force alloc-stdlib to version 0.2.1 the build succeeds, so it seems like alloc-stdlib broke API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions