|
| 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 | + |
1 | 92 | Version 1.65.0 (2022-11-03)
|
2 | 93 | ==========================
|
3 | 94 |
|
|
0 commit comments