Skip to content

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.

2 participants