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

Use constant instead of removed const_in_array_repeat_expressions feature #921

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

phil-opp
Copy link
Owner

@phil-opp phil-opp commented Feb 2, 2021

The const_in_array_repeat_expressions feature was removed in rust-lang/rust#80404 because its design led to various bugs. The inline const blocks (const { ... }) feature should be a good alternative, but it is still marked as incomplete because there are still major bugs with it too. For this reason, this PR uses a local EMPTY constant instead to not require any unstable features at all.

@phil-opp phil-opp added the relnotes "Release notes" – Notable changes that are rendered on the blog. label Feb 2, 2021
@phil-opp phil-opp merged commit d57a9d3 into post-11 Feb 2, 2021
@phil-opp phil-opp deleted the post-11-const-array-init branch February 2, 2021 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relnotes "Release notes" – Notable changes that are rendered on the blog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant