Skip to content

Commit

Permalink
Add constants to list of things that should be promotable
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed May 4, 2020
1 parent 275f29d commit 2596308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/0000-inline-const.md
Expand Up @@ -272,5 +272,5 @@ variant of closures: `|| 42`. This is backwards compatible with the current prop
This could allow us to deprecate the more esoteric classes of promotable
expressions (e.g., `&(u32::MAX + u32::MAX)`) in favor of inline `const`
expressions. This would have to be done at an edition boundary. We would only
do promotion for aggregates, literals, and combinations thereof, and
do promotion for aggregates, literals, constants and combinations thereof, and
`#[rustc_promotable]` would be removed from the standard library.

0 comments on commit 2596308

Please sign in to comment.