Skip to content

Commit 44364dc

Browse files
Add release notes for 1.62
1 parent 4a52e0f commit 44364dc

File tree

1 file changed

+125
-0
lines changed

1 file changed

+125
-0
lines changed

RELEASES.md

+125
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,128 @@
1+
Version 1.62.0 (2022-06-30)
2+
==========================
3+
4+
Language
5+
--------
6+
7+
- [Stabilize `#[derive(Default)]` on enums with a `#[default]` variant][94457]
8+
- [Stop validating some checks in dead code after functions with uninhabited return types][93313]
9+
- [Fix constants not getting dropped if part of a diverging expression][94775]
10+
- [Support unit struct/enum variant in destructuring assignment][95380]
11+
- [Remove mutable_borrow_reservation_conflict lint and allow the code pattern][96268]
12+
13+
Compiler
14+
--------
15+
16+
- [linker: Stop using whole-archive on dependencies of dylibs][96436]
17+
- [Make `unaligned_references` lint deny-by-default][95372]
18+
This lint is also a future compatibility lint, and is expected to eventually
19+
become a hard error.
20+
- [Only add codegen backend to dep info if -Zbinary-dep-depinfo is used][93969]
21+
- [Reject `#[thread_local]` attribute on non-static items][95006]
22+
- [Add tier 3 `aarch64-pc-windows-gnullvm` and `x86_64-pc-windows-gnullvm` targets\*][94872]
23+
- [Implement a lint to warn about unused macro rules][96150]
24+
- [Promote `x86_64-unknown-none` target to Tier 2\*][95705]
25+
26+
\* Refer to Rust's [platform support page][platform-support-doc] for more
27+
information on Rust's tiered platform support.
28+
29+
Libraries
30+
---------
31+
32+
- [Move `CStr` to libcore, and `CString` to liballoc][94079]
33+
- [Windows: Use a pipe relay for chaining pipes][95841]
34+
- [Replace Linux Mutex and Condvar with futex based ones.][95035]
35+
- [Replace RwLock by a futex based one on Linux][95801]
36+
- [std: directly use pthread in UNIX parker implementation][96393]
37+
38+
Stabilized APIs
39+
---------------
40+
41+
- [`bool::then_some`]
42+
- [`f32::total_cmp`]
43+
- [`f64::total_cmp`]
44+
- [`Stdin::lines`]
45+
- [`windows::CommandExt::raw_arg`]
46+
- [`impl<T: Default> Default for AssertUnwindSafe<T>`]
47+
- [`From<Rc<str>> for Rc<[u8]>`][rc-u8-from-str]
48+
- [`From<Arc<str>> for Arc<[u8]>`][arc-u8-from-str]
49+
- [`FusedIterator for EncodeWide`]
50+
- [RDM intrinsics on aarch64][stdarch/1285]
51+
52+
Clippy
53+
------
54+
55+
- [Create clippy lint against unexpectedly late drop for temporaries in match scrutinee expressions][94206]
56+
57+
Cargo
58+
-----
59+
60+
- Added the `cargo add` command for adding dependencies to `Cargo.toml` from
61+
the command-line.
62+
[docs](https://doc.rust-lang.org/nightly/cargo/commands/cargo-add.html)
63+
- Package ID specs now support `name@version` syntax in addition to the
64+
previous `name:version` to align with the behavior in `cargo add` and other
65+
tools. `cargo install` and `cargo yank` also now support this syntax so the
66+
version does not need to passed as a separate flag.
67+
- The `git` and `registry` directories in Cargo's home directory (usually
68+
`~/.cargo`) are now marked as cache directories so that they are not
69+
included in backups or content indexing (on Windows).
70+
- Added automatic `@` argfile support, which will use "response files" if the
71+
command-line to `rustc` exceeds the operating system's limit.
72+
73+
Compatibility Notes
74+
-------------------
75+
76+
- `cargo test` now passes `--target` to `rustdoc` if the specified target is
77+
the same as the host target.
78+
[#10594](https://github.com/rust-lang/cargo/pull/10594)
79+
- [rustdoc: Remove .woff font files][96279]
80+
- [Enforce Copy bounds for repeat elements while considering lifetimes][95819]
81+
82+
Internal Changes
83+
----------------
84+
85+
- [Unify ReentrantMutex implementations across all platforms][96042]
86+
87+
These changes provide no direct user facing benefits, but represent significant
88+
improvements to the internals and overall performance of rustc
89+
and related tools.
90+
91+
[93313]: https://github.com/rust-lang/rust/pull/93313/
92+
[93969]: https://github.com/rust-lang/rust/pull/93969/
93+
[94079]: https://github.com/rust-lang/rust/pull/94079/
94+
[94206]: https://github.com/rust-lang/rust/pull/94206/
95+
[94457]: https://github.com/rust-lang/rust/pull/94457/
96+
[94775]: https://github.com/rust-lang/rust/pull/94775/
97+
[94872]: https://github.com/rust-lang/rust/pull/94872/
98+
[95006]: https://github.com/rust-lang/rust/pull/95006/
99+
[95035]: https://github.com/rust-lang/rust/pull/95035/
100+
[95372]: https://github.com/rust-lang/rust/pull/95372/
101+
[95380]: https://github.com/rust-lang/rust/pull/95380/
102+
[95431]: https://github.com/rust-lang/rust/pull/95431/
103+
[95705]: https://github.com/rust-lang/rust/pull/95705/
104+
[95801]: https://github.com/rust-lang/rust/pull/95801/
105+
[95819]: https://github.com/rust-lang/rust/pull/95819/
106+
[95841]: https://github.com/rust-lang/rust/pull/95841/
107+
[96042]: https://github.com/rust-lang/rust/pull/96042/
108+
[96150]: https://github.com/rust-lang/rust/pull/96150/
109+
[96268]: https://github.com/rust-lang/rust/pull/96268/
110+
[96279]: https://github.com/rust-lang/rust/pull/96279/
111+
[96393]: https://github.com/rust-lang/rust/pull/96393/
112+
[96436]: https://github.com/rust-lang/rust/pull/96436/
113+
[96557]: https://github.com/rust-lang/rust/pull/96557/
114+
115+
[`bool::then_some`]: https://doc.rust-lang.org/stable/std/primitive.bool.html#method.then_some
116+
[`f32::total_cmp`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.total_cmp
117+
[`f64::total_cmp`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.total_cmp
118+
[`Stdin::lines`]: https://doc.rust-lang.org/stable/std/io/struct.Stdin.html#method.lines
119+
[`impl<T: Default> Default for AssertUnwindSafe<T>`]: https://doc.rust-lang.org/stable/std/panic/struct.AssertUnwindSafe.html#impl-Default
120+
[rc-u8-from-str]: https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#impl-From%3CRc%3Cstr%3E%3E
121+
[arc-u8-from-str]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#impl-From%3CArc%3Cstr%3E%3E
122+
[stdarch/1285]: https://github.com/rust-lang/stdarch/pull/1285
123+
[`windows::CommandExt::raw_arg`]: https://doc.rust-lang.org/stable/std/os/windows/process/trait.CommandExt.html#tymethod.raw_arg
124+
[`FusedIterator for EncodeWide`]: https://doc.rust-lang.org/stable/std/os/windows/ffi/struct.EncodeWide.html#impl-FusedIterator
125+
1126
Version 1.61.0 (2022-05-19)
2127
==========================
3128

0 commit comments

Comments
 (0)