Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make sure the
const-extern-fn
feature is enabled
This was dropped in fa554bc on `main` and 674cc1f on `libc-0.2` ("Drop the libc_const_extern_fn conditional"). Unfortunately, this meant that functions were incorrectly never getting marked `const`. Instead of the fix here, I attempted to just use `cfg(not(libc_ctest))` instead of a Cargo feature to enable `const` extern functions; however, this seemed extremely problematic with `ctest` for some reason [1]. Instead, leave the feature as-is and just make it enabled by default. Fixes: rust-lang#4115 [1]: rust-lang#4134
- Loading branch information