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

Add const_fn feature (more granular than nigthly) #102

Closed
wants to merge 1 commit into from

Conversation

niklasf
Copy link

@niklasf niklasf commented Nov 1, 2018

min_const_fn has been stabilized. It should still be opt-in, because it bumps the minimum Rust version to 1.31 (currently in beta).

This adds a new const_fn Cargo feature that allows using this without all current and future features implied by nightly. nightly still also implies const_fn.

@niklasf
Copy link
Author

niklasf commented Nov 1, 2018

Build failed due to:

error: trait bounds other than `Sized` on const fn parameters are unstable
   --> lock_api/src/rwlock.rs:236:6
    |
236 | impl<R: RawRwLock, T> RwLock<R, T> {
    |      ^

Looks like min_const_fn is not enough.

@niklasf niklasf closed this Nov 1, 2018
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

Successfully merging this pull request may close these issues.

1 participant