Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
plugwash opened this issue Mar 7, 2023 · 0 comments
Open

Comments

@plugwash
Copy link

plugwash commented Mar 7, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant