Update RELEASES.md

This commit is contained in:
XAMPPRocky 2021-02-11 11:25:32 +00:00 committed by GitHub
parent cecb8a660c
commit 8e24a97c5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ Version 1.51.0 (2021-03-25)
Language Language
-------- --------
- [You can now parameterize items such as functions, traits, and `struct`s by constant - [You can now parameterize items such as functions, traits, and `struct`s by constant
values in addition to by types.][78135] E.g. you can now write the following. Note: values in addition to by types.][79135] E.g. you can now write the following. Note:
Only values of primitive integers, `bool`, or `char` types are currently permitted. Only values of primitive integers, `bool`, or `char` types are currently permitted.
```rust ```rust
struct GenericArray<T, const LENGTH: usize> { struct GenericArray<T, const LENGTH: usize> {
@ -104,7 +104,7 @@ Internal Only
- [Consistently avoid constructing optimized MIR when not doing codegen][80718] - [Consistently avoid constructing optimized MIR when not doing codegen][80718]
[78135]: https://github.com/rust-lang/rust/pull/78135 [79135]: https://github.com/rust-lang/rust/pull/79135
[74489]: https://github.com/rust-lang/rust/pull/74489 [74489]: https://github.com/rust-lang/rust/pull/74489
[76934]: https://github.com/rust-lang/rust/pull/76934 [76934]: https://github.com/rust-lang/rust/pull/76934
[79570]: https://github.com/rust-lang/rust/pull/79570 [79570]: https://github.com/rust-lang/rust/pull/79570