Skip to content

Commit e7a344f

Browse files
XAMPPRockyjonas-schievinkCentril
authored
Update RELEASES.md
Co-Authored-By: Jonas Schievink <[email protected]> Co-Authored-By: Mazdak Farrokhzad <[email protected]>
1 parent 32daa2a commit e7a344f

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

RELEASES.md

+25-11
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ Version 1.42.0 (2020-03-12)
33

44
Language
55
--------
6-
- [You can now use `#[repr(transparent)]` on univariant `enum`s.][68122] Meaning
7-
that you can create an enum that has the exact layout and ABI of the type
8-
it contains.
96
- [You can now use the slice pattern syntax with subslices.][67712] e.g.
107
```rust
118
fn foo(words: &[&str]) {
@@ -16,18 +13,34 @@ Language
1613
}
1714
}
1815
```
19-
<!-- TODO -->
20-
- [Merge `TraitItem` & `ImplItem into `AssocItem`][67131]
16+
- [You can now use `#[repr(transparent)]` on univariant `enum`s.][68122] Meaning
17+
that you can create an enum that has the exact layout and ABI of the type
18+
it contains.
19+
- [There are some *syntax-only* changes:][67131]
20+
- `default` is syntactically allowed before items in `trait` definitions.
21+
- Items in `impl`s (i.e. `const`s, `type`s, and `fn`s) may syntactically
22+
leave out their bodies in favor of `;`.
23+
- Bounds on associated types in `impl`s are now syntactically allowed
24+
(e.g. `type Foo: Ord;`).
25+
- `...` (the C-variadic type) may occur syntactically directly as the type of
26+
any function parameter.
27+
28+
These are still rejected *semantically*, so you will likely receive an error
29+
but these changes can be seen and parsed by procedural macros and
30+
conditional compilation.
2131

2232
Compiler
2333
--------
24-
- [Added tier 3\* support for `armv7a-none-eabi`.][68253]
25-
- [Added tier 3 support for `riscv64gc-unknown-linux-gnu`.][68037]
34+
- [Added tier 2\* support for `armv7a-none-eabi`.][68253]
35+
- [Added tier 2 support for `riscv64gc-unknown-linux-gnu`.][68339]
2636
- [`Option::{expect,unwrap}` and
2737
`Result::{expect, expect_err, unwrap, unwrap_err}` now produce panic messages
2838
pointing to the location where they were called, rather than
2939
`core`'s internals. ][67887]
3040

41+
\* Refer to Rust's [platform support page][forge-platform-support] for more
42+
information on Rust's tiered platform support.
43+
3144
Libraries
3245
---------
3346
- [`iter::Empty<T>` now implements `Send` and `Sync` for any `T`.][68348]
@@ -40,14 +53,14 @@ Libraries
4053

4154
Stabilized APIs
4255
---------------
56+
- [`CondVar::wait_while`]
57+
- [`CondVar::wait_timeout_while`]
4358
- [`DebugMap::key`]
4459
- [`DebugMap::value`]
4560
- [`ManuallyDrop::take`]
4661
- [`matches!`]
4762
- [`ptr::slice_from_raw_parts_mut`]
4863
- [`ptr::slice_from_raw_parts`]
49-
- [`wait_timeout_while`]
50-
- [`wait_while`]
5164

5265
Cargo
5366
-----
@@ -62,7 +75,7 @@ Compatibility Notes
6275
[68253]: https://github.com/rust-lang/rust/pull/68253/
6376
[68348]: https://github.com/rust-lang/rust/pull/68348/
6477
[67935]: https://github.com/rust-lang/rust/pull/67935/
65-
[68037]: https://github.com/rust-lang/rust/pull/68037/
78+
[68339]: https://github.com/rust-lang/rust/pull/68339/
6679
[68122]: https://github.com/rust-lang/rust/pull/68122/
6780
[67712]: https://github.com/rust-lang/rust/pull/67712/
6881
[67887]: https://github.com/rust-lang/rust/pull/67887/
@@ -78,7 +91,8 @@ Compatibility Notes
7891
[`matches!`]: https://doc.rust-lang.org/stable/std/macro.matches.html
7992
[`ptr::slice_from_raw_parts_mut`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts_mut.html
8093
[`ptr::slice_from_raw_parts`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts.html
81-
[`wait_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_while
94+
[`CondVar::wait_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_while
95+
[`CondVar::wait_timeout_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_timeout_while
8296

8397

8498
Version 1.41.0 (2020-01-30)

0 commit comments

Comments
 (0)