Skip to content

Use explicit promotion for constants in repeat expressions#70042

Closed
oli-obk wants to merge 9 commits intorust-lang:masterfrom
oli-obk:const_in_array_repeat
Closed

Use explicit promotion for constants in repeat expressions#70042
oli-obk wants to merge 9 commits intorust-lang:masterfrom
oli-obk:const_in_array_repeat

Conversation

@oli-obk
Copy link
Copy Markdown
Contributor

@oli-obk oli-obk commented Mar 16, 2020

As per #49147 (comment)

Even in generics everything is obvious. Either you have a Copy bound, or you get promotion. I think not being a full const context will confuse more than it will not. We'll just get requests to add more things or at least issues opened asking why things that are obv OK don't work

cc @rust-lang/wg-const-eval

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-lang Relevant to the language team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants