Skip to content

Commit d539628

Browse files
authored
Rollup merge of #104405 - Mark-Simulacrum:relnotes, r=pietroalbini
1.66.0 release notes r? ``@tmandry`` ``@rust-lang/release``
2 parents 37d7de3 + 4264f08 commit d539628

File tree

1 file changed

+91
-0
lines changed

1 file changed

+91
-0
lines changed

RELEASES.md

+91
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,94 @@
1+
Version 1.66.0 (2022-12-15)
2+
==========================
3+
4+
Language
5+
--------
6+
- [Permit specifying explicit discriminants on all `repr(Int)` enums](https://github.com/rust-lang/rust/pull/95710/)
7+
```rust
8+
#[repr(u8)]
9+
enum Foo {
10+
A(u8) = 0,
11+
B(i8) = 1,
12+
C(bool) = 42,
13+
}
14+
```
15+
- [Allow transmutes between the same type differing only in lifetimes](https://github.com/rust-lang/rust/pull/101520/)
16+
- [Change constant evaluation errors from a deny-by-default lint to a hard error](https://github.com/rust-lang/rust/pull/102091/)
17+
- [Trigger `must_use` on `impl Trait` for supertraits](https://github.com/rust-lang/rust/pull/102287/)
18+
This makes `impl ExactSizeIterator` respect the existing `#[must_use]` annotation on `Iterator`.
19+
- [Allow `..X` and `..=X` in patterns](https://github.com/rust-lang/rust/pull/102275/)
20+
- [Uplift `clippy::for_loops_over_fallibles` lint into rustc](https://github.com/rust-lang/rust/pull/99696/)
21+
- [Stabilize `sym` operands in inline assembly](https://github.com/rust-lang/rust/pull/103168/)
22+
- [Update to Unicode 15](https://github.com/rust-lang/rust/pull/101912/)
23+
- [Opaque types no longer imply lifetime bounds](https://github.com/rust-lang/rust/pull/95474/)
24+
This is a soundness fix which may break code that was erroneously relying on this behavior.
25+
26+
Compiler
27+
--------
28+
- [Add armv5te-none-eabi and thumbv5te-none-eabi tier 3 targets](https://github.com/rust-lang/rust/pull/101329/)
29+
- Refer to Rust's [platform support page][platform-support-doc] for more
30+
information on Rust's tiered platform support.
31+
- [Add support for linking against macOS universal libraries](https://github.com/rust-lang/rust/pull/98736)
32+
33+
Libraries
34+
---------
35+
- [Fix `#[derive(Default)]` on a generic `#[default]` enum adding unnecessary `Default` bounds](https://github.com/rust-lang/rust/pull/101040/)
36+
- [Update to Unicode 15](https://github.com/rust-lang/rust/pull/101821/)
37+
38+
Stabilized APIs
39+
---------------
40+
41+
- [`proc_macro::Span::source_text`](https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.source_text)
42+
- [`uX::{checked_add_signed, overflowing_add_signed, saturating_add_signed, wrapping_add_signed}`](https://doc.rust-lang.org/stable/std/primitive.u8.html#method.checked_add_signed)
43+
- [`iX::{checked_add_unsigned, overflowing_add_unsigned, saturating_add_unsigned, wrapping_add_unsigned}`](https://doc.rust-lang.org/stable/std/primitive.i8.html#method.checked_add_unsigned)
44+
- [`iX::{checked_sub_unsigned, overflowing_sub_unsigned, saturating_sub_unsigned, wrapping_sub_unsigned}`](https://doc.rust-lang.org/stable/std/primitive.i8.html#method.checked_sub_unsigned)
45+
- [`BTreeSet::{first, last, pop_first, pop_last}`](https://doc.rust-lang.org/stable/std/collections/struct.BTreeSet.html#method.first)
46+
- [`BTreeMap::{first_key_value, last_key_value, first_entry, last_entry, pop_first, pop_last}`](https://doc.rust-lang.org/stable/std/collections/struct.BTreeMap.html#method.first_key_value)
47+
- [Add `AsFd` implementations for stdio lock types on WASI.](https://github.com/rust-lang/rust/pull/101768/)
48+
- [`impl TryFrom<Vec<T>> for Box<[T; N]>`](https://doc.rust-lang.org/stable/std/boxed/struct.Box.html#impl-TryFrom%3CVec%3CT%2C%20Global%3E%3E-for-Box%3C%5BT%3B%20N%5D%2C%20Global%3E)
49+
- [`core::hint::black_box`](https://doc.rust-lang.org/stable/std/hint/fn.black_box.html)
50+
- [`Duration::try_from_secs_{f32,f64}`](https://doc.rust-lang.org/stable/std/time/struct.Duration.html#method.try_from_secs_f32)
51+
- [`Option::unzip`](https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.unzip)
52+
- [`std::os::fd`](https://doc.rust-lang.org/stable/std/os/fd/index.html)
53+
54+
55+
Rustdoc
56+
-------
57+
58+
- [Add Rustdoc warning for invalid HTML tags in the documentation](https://github.com/rust-lang/rust/pull/101720/)
59+
60+
Cargo
61+
-----
62+
63+
- [Added `cargo remove` to remove dependencies from Cargo.toml](https://doc.rust-lang.org/nightly/cargo/commands/cargo-remove.html)
64+
- [`cargo publish` now waits for the new version to be downloadable before exiting](https://github.com/rust-lang/cargo/pull/11062)
65+
66+
See [detailed release notes](https://github.com/rust-lang/cargo/blob/master/CHANGELOG.md#cargo-166-2022-12-15) for more.
67+
68+
Compatibility Notes
69+
-------------------
70+
71+
- [Only apply `ProceduralMasquerade` hack to older versions of `rental`](https://github.com/rust-lang/rust/pull/94063/)
72+
- [Don't export `__heap_base` and `__data_end` on wasm32-wasi.](https://github.com/rust-lang/rust/pull/102385/)
73+
- [Don't export `__wasm_init_memory` on WebAssembly.](https://github.com/rust-lang/rust/pull/102426/)
74+
- [Only export `__tls_*` on wasm32-unknown-unknown.](https://github.com/rust-lang/rust/pull/102440/)
75+
- [Don't link to `libresolv` in libstd on Darwin](https://github.com/rust-lang/rust/pull/102766/)
76+
- [Update libstd's libc to 0.2.135 (to make `libstd` no longer pull in `libiconv.dylib` on Darwin)](https://github.com/rust-lang/rust/pull/103277/)
77+
- [Opaque types no longer imply lifetime bounds](https://github.com/rust-lang/rust/pull/95474/)
78+
This is a soundness fix which may break code that was erroneously relying on this behavior.
79+
- [Make `order_dependent_trait_objects` show up in future-breakage reports](https://github.com/rust-lang/rust/pull/102635/)
80+
- [Change std::process::Command spawning to default to inheriting the parent's signal mask](https://github.com/rust-lang/rust/pull/101077/)
81+
82+
Internal Changes
83+
----------------
84+
85+
These changes do not affect any public interfaces of Rust, but they represent
86+
significant improvements to the performance or internals of rustc and related
87+
tools.
88+
89+
- [Enable BOLT for LLVM compilation](https://github.com/rust-lang/rust/pull/94381/)
90+
- [Enable LTO for rustc_driver.so](https://github.com/rust-lang/rust/pull/101403/)
91+
192
Version 1.65.0 (2022-11-03)
293
==========================
394

0 commit comments

Comments
 (0)