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

Enable const extern "C" fn definitions on Rust 1.62.0 and above #2785

Closed
wants to merge 1 commit into from

Conversation

Aaron1011
Copy link
Member

This was recently stabilized in rust-lang/rust#95346,
and will be included in the 1.62.0 release.

This const-extern-fn feature can still be used to enable
these definitions on older compiler versions.

This was recently stabilized in rust-lang/rust#95346,
and will be included in the 1.62.0 release.

This `const-extern-fn` feature can still be used to enable
these definitions on older compiler versions.
@rust-highfive
Copy link

r? @Amanieu

(rust-highfive has picked a reviewer for you, use r? to override)

@Amanieu
Copy link
Member

Amanieu commented May 11, 2022

main.rs has this line:

#![cfg_attr(libc_const_extern_fn, feature(const_extern_fn))]

This will fail to compile on stable even if the feature is supported.

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

Successfully merging this pull request may close these issues.

4 participants