|
| 1 | +Version 1.91.0 (2025-10-30) |
| 2 | +========================== |
| 3 | + |
| 4 | +<a id="1.91.0-Language"></a> |
| 5 | + |
| 6 | +Language |
| 7 | +-------- |
| 8 | + |
| 9 | +- [Lower pattern bindings in the order they're written and base drop order on primary bindings' order](https://github.com/rust-lang/rust/pull/143764) |
| 10 | +- [Stabilize declaration of c-style variadic functions for sysv64, win64, efiapi, and aapcs ABIs](https://github.com/rust-lang/rust/pull/144066). |
| 11 | + This brings these ABIs in line with the C ABI: variadic functions can be declared in extern blocks but not defined. |
| 12 | +- [Always require coroutine captures to be drop-live](https://github.com/rust-lang/rust/pull/144156) |
| 13 | +- [Add lint against dangling pointers from local variables](https://github.com/rust-lang/rust/pull/144322) |
| 14 | +- [Upgrade semicolon_in_expressions_from_macros from warn to deny](https://github.com/rust-lang/rust/pull/144369) |
| 15 | +- [Stabilize loongarch32 inline asm](https://github.com/rust-lang/rust/pull/144402) |
| 16 | +- [Add warn-by-default `integer_to_ptr_transmutes` lint against integer to pointer transmutes](https://github.com/rust-lang/rust/pull/144531) |
| 17 | +- [Stabilize `sse4a` and `tbm` target features](https://github.com/rust-lang/rust/pull/144542) |
| 18 | +- [Add `target_env = "macabi"` and `target_env = "sim"` cfgs](https://github.com/rust-lang/rust/pull/139451) as replacements for the `target_abi` cfgs with the same values. |
| 19 | + |
| 20 | +<a id="1.91.0-Compiler"></a> |
| 21 | + |
| 22 | +Compiler |
| 23 | +-------- |
| 24 | + |
| 25 | +- [Error on invalid `#[link]` attributes](https://github.com/rust-lang/rust/pull/143193) |
| 26 | +- [Don't warn on never to any `as` casts as unreachable](https://github.com/rust-lang/rust/pull/144804) |
| 27 | + |
| 28 | +<a id="1.91.0-Platform-Support"></a> |
| 29 | + |
| 30 | +Platform Support |
| 31 | +---------------- |
| 32 | + |
| 33 | +- [Promote `aarch64-pc-windows-gnullvm` and `x86_64-pc-windows-gnullvm` to tier 2 with host tools.](https://github.com/rust-lang/rust/pull/143031) |
| 34 | + Note: llvm-tools and MSI installers are missing but will be added in the future releases. |
| 35 | +- [Promote `aarch64-pc-windows-msvc` to Tier 1](https://github.com/rust-lang/rust/pull/145682) |
| 36 | + |
| 37 | +Refer to Rust's [platform support page][platform-support-doc] |
| 38 | +for more information on Rust's tiered platform support. |
| 39 | + |
| 40 | +[platform-support-doc]: https://doc.rust-lang.org/rustc/platform-support.html |
| 41 | + |
| 42 | +<a id="1.91.0-Libraries"></a> |
| 43 | + |
| 44 | +Libraries |
| 45 | +--------- |
| 46 | +- [Print thread ID in panic message](https://github.com/rust-lang/rust/pull/115746) |
| 47 | +- [Fix overly restrictive lifetime in `core::panic::Location::file` return type](https://github.com/rust-lang/rust/pull/132087) |
| 48 | +- [Guarantee parameter order for `_by()` variants of `min` / `max`/ `minmax` in `std::cmp`](https://github.com/rust-lang/rust/pull/139357) |
| 49 | +- [Implement Sum and Product for `Saturating<u*>`](https://github.com/rust-lang/rust/pull/144275) |
| 50 | +- [Document assumptions about `Clone` and `Eq` traits](https://github.com/rust-lang/rust/pull/144330/) |
| 51 | + |
| 52 | +<a id="1.91.0-Stabilized-APIs"></a> |
| 53 | + |
| 54 | +Stabilized APIs |
| 55 | +--------------- |
| 56 | + |
| 57 | +- [`Path::file_prefix`](https://doc.rust-lang.org/std/path/struct.Path.html#method.file_prefix) |
| 58 | +- [`AtomicPtr::fetch_ptr_add`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_ptr_add) |
| 59 | +- [`AtomicPtr::fetch_ptr_sub`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_ptr_sub) |
| 60 | +- [`AtomicPtr::fetch_byte_add`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_byte_add) |
| 61 | +- [`AtomicPtr::fetch_byte_sub`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_byte_sub) |
| 62 | +- [`AtomicPtr::fetch_or`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_or) |
| 63 | +- [`AtomicPtr::fetch_and`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_and) |
| 64 | +- [`AtomicPtr::fetch_xor`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_xor) |
| 65 | +- [`{integer}::strict_add`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_add) |
| 66 | +- [`{integer}::strict_sub`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_sub) |
| 67 | +- [`{integer}::strict_mul`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_mul) |
| 68 | +- [`{integer}::strict_div`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_div) |
| 69 | +- [`{integer}::strict_div_euclid`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_div_euclid) |
| 70 | +- [`{integer}::strict_rem`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_rem) |
| 71 | +- [`{integer}::strict_rem_euclid`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_rem_euclid) |
| 72 | +- [`{integer}::strict_neg`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_neg) |
| 73 | +- [`{integer}::strict_shl`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_shl) |
| 74 | +- [`{integer}::strict_shr`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_shr) |
| 75 | +- [`{integer}::strict_pow`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_pow) |
| 76 | +- [`i{N}::strict_add_unsigned`](https://doc.rust-lang.org/stable/std/primitive.i32.html#method.strict_add_unsigned) |
| 77 | +- [`i{N}::strict_sub_unsigned`](https://doc.rust-lang.org/stable/std/primitive.i32.html#method.strict_sub_unsigned) |
| 78 | +- [`i{N}::strict_abs`](https://doc.rust-lang.org/stable/std/primitive.i32.html#method.strict_abs) |
| 79 | +- [`u{N}::strict_add_signed`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_add_signed) |
| 80 | +- [`u{N}::strict_sub_signed`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_sub_signed) |
| 81 | +- [`PanicHookInfo::payload_as_str`](https://doc.rust-lang.org/stable/std/panic/struct.PanicHookInfo.html#method.payload_as_str) |
| 82 | +- [`core::iter::chain`](https://github.com/rust-lang/rust/issues/125964) |
| 83 | +- [`u{N}::checked_signed_diff`](https://doc.rust-lang.org/stable/std/primitive.u16.html#method.checked_signed_diff) |
| 84 | +- [`array::repeat`](https://github.com/rust-lang/rust/issues/126695) |
| 85 | +- [`PathBuf::add_extension`](https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.add_extension) |
| 86 | +- [`PathBuf::with_added_extension`](https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.with_added_extension) |
| 87 | +- [`Duration::from_mins`](https://doc.rust-lang.org/stable/std/time/struct.Duration.html#method.from_mins) |
| 88 | +- [`Duration::from_hours`](https://doc.rust-lang.org/stable/std/time/struct.Duration.html#method.from_hours) |
| 89 | +- [`impl PartialEq<str> for PathBuf`](https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#impl-PartialEq%3Cstr%3E-for-PathBuf) |
| 90 | +- [`impl PartialEq<String> for PathBuf`](https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#impl-PartialEq%3CString%3E-for-PathBuf) |
| 91 | +- [`impl PartialEq<str> for Path`](https://doc.rust-lang.org/stable/std/path/struct.Path.html#impl-PartialEq%3Cstr%3E-for-Path) |
| 92 | +- [`impl PartialEq<String> for Path`](https://doc.rust-lang.org/stable/std/path/struct.Path.html#impl-PartialEq%3CString%3E-for-Path) |
| 93 | +- [`impl PartialEq<PathBuf> for String`](https://doc.rust-lang.org/nightly/std/string/struct.String.html#impl-PartialEq%3CPathBuf%3E-for-String) |
| 94 | +- [`impl PartialEq<Path> for String`](https://doc.rust-lang.org/nightly/std/string/struct.String.html#impl-PartialEq%3CPath%3E-for-String) |
| 95 | +- [`impl PartialEq<PathBuf> for str`](https://doc.rust-lang.org/nightly/std/primitive.str.html#impl-PartialEq%3CPathBuf%3E-for-str) |
| 96 | +- [`impl PartialEq<Path> for str`](https://doc.rust-lang.org/nightly/std/primitive.str.html#impl-PartialEq%3CPath%3E-for-str) |
| 97 | +- [`Ipv4Addr::from_octets`](https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.from_octets) |
| 98 | +- [`Ipv6Addr::from_octets`](https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.from_octets) |
| 99 | +- [`Ipv6Addr::from_segments`](https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.from_segments) |
| 100 | +- [`impl<T> Default for Pin<Box<T>> where Box<T>: Default, T: ?Sized`](https://doc.rust-lang.org/stable/std/default/trait.Default.html#impl-Default-for-Pin%3CBox%3CT%3E%3E) |
| 101 | +- [`impl<T> Default for Pin<Rc<T>> where Rc<T>: Default, T: ?Sized`](https://doc.rust-lang.org/stable/std/default/trait.Default.html#impl-Default-for-Pin%3CRc%3CT%3E%3E) |
| 102 | +- [`impl<T> Default for Pin<Arc<T>> where Arc<T>: Default, T: ?Sized`](https://doc.rust-lang.org/stable/std/default/trait.Default.html#impl-Default-for-Pin%3CArc%3CT%3E%3E) |
| 103 | +- [`Cell::as_array_of_cells`](https://doc.rust-lang.org/stable/std/cell/struct.Cell.html#method.as_array_of_cells) |
| 104 | +- [`u{N}::carrying_add`](https://doc.rust-lang.org/stable/std/primitive.u64.html#method.carrying_add) |
| 105 | +- [`u{N}::borrowing_sub`](https://doc.rust-lang.org/stable/std/primitive.u64.html#method.borrowing_sub) |
| 106 | +- [`u{N}::carrying_mul`](https://doc.rust-lang.org/stable/std/primitive.u64.html#method.carrying_mul) |
| 107 | +- [`u{N}::carrying_mul_add`](https://doc.rust-lang.org/stable/std/primitive.u64.html#method.carrying_mul_add) |
| 108 | +- [`BTreeMap::extract_if`](https://doc.rust-lang.org/stable/std/collections/struct.BTreeMap.html#method.extract_if) |
| 109 | +- [`BTreeSet::extract_if`](https://doc.rust-lang.org/stable/std/collections/struct.BTreeSet.html#method.extract_if) |
| 110 | + |
| 111 | +These previously stable APIs are now stable in const contexts: |
| 112 | + |
| 113 | +- [`[T;N]::each_ref`](https://doc.rust-lang.org/stable/std/primitive.array.html#method.each_ref) |
| 114 | +- [`[T;N]::each_mut`](https://doc.rust-lang.org/stable/std/primitive.array.html#method.each_mut) |
| 115 | +- [`OsString::new`](https://doc.rust-lang.org/stable/std/ffi/struct.OsString.html#method.new) |
| 116 | +- [`PathBuf::new`](https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.new) |
| 117 | +- [`TypeId::of`](https://doc.rust-lang.org/stable/std/any/struct.TypeId.html#method.of) |
| 118 | +- [`ptr::with_exposed_provenance`](https://doc.rust-lang.org/stable/std/ptr/fn.with_exposed_provenance.html) |
| 119 | +- [`ptr::with_exposed_provenance_mut`](https://doc.rust-lang.org/stable/std/ptr/fn.with_exposed_provenance_mut.html) |
| 120 | + |
| 121 | +<a id="1.91.0-Cargo"></a> |
| 122 | + |
| 123 | +Cargo |
| 124 | +----- |
| 125 | + |
| 126 | +- 🎉 Stabilize `build.build-dir`. |
| 127 | + This config sets the directory where intermediate build artifacts are stored. |
| 128 | + These artifacts are produced by Cargo and rustc during the build process. |
| 129 | + End users usually won't need to interact with them, and the layout inside |
| 130 | + `build-dir` is an implementation detail that may change without notice. |
| 131 | + ([config doc](https://doc.rust-lang.org/nightly/cargo/reference/config.html#buildbuild-dir)) |
| 132 | + ([build cache doc](https://doc.rust-lang.org/nightly/cargo/reference/build-cache.html)) |
| 133 | + [#15833](https://github.com/rust-lang/cargo/pull/15833) |
| 134 | + [#15840](https://github.com/rust-lang/cargo/pull/15840) |
| 135 | +- 🎉 Stabilize `build.build-dir`. |
| 136 | + This config sets the directory where intermediate build artifacts are stored. |
| 137 | + These artifacts are produced by Cargo and rustc during the build process. |
| 138 | + End users usually won't need to interact with them, and the layout inside |
| 139 | + `build-dir` is an implementation detail that may change without notice. |
| 140 | + ([config doc](https://doc.rust-lang.org/nightly/cargo/reference/config.html#buildbuild-dir)) |
| 141 | + ([build cache doc](https://doc.rust-lang.org/nightly/cargo/reference/build-cache.html)) |
| 142 | + [#15833](https://github.com/rust-lang/cargo/pull/15833) |
| 143 | + [#15840](https://github.com/rust-lang/cargo/pull/15840) |
| 144 | + |
| 145 | +<a id="1.91.0-Rustdoc"></a> |
| 146 | + |
| 147 | +Rustdoc |
| 148 | +----- |
| 149 | +- [In search results, rank doc aliases lower than non-alias items with the same name](https://github.com/rust-lang/rust/pull/145100) |
| 150 | +- [Raw pointers now work in type-based search like references](https://github.com/rust-lang/rust/pull/145731). This means you can now search for things like `*const u8 ->`, and additionally functions that take or return raw pointers will now display their signature properly in search results. |
| 151 | + |
| 152 | +<a id="1.91.0-Compatibility-Notes"></a> |
| 153 | + |
| 154 | +Compatibility Notes |
| 155 | +------------------- |
| 156 | +- [Apple: Always pass SDK root when linking with `cc`, and pass it via `SDKROOT` env var](https://github.com/rust-lang/rust/pull/131477). This should fix linking issues with `rustc` running inside Xcode. Libraries in `/usr/local/lib` may no longer be linked automatically, if you develop or use a crate that relies on this, you should explicitly set `cargo::rustc-link-search=/usr/local/lib` in a `build.rs` script. |
| 157 | +- [Relaxed bounds in associated type bound position like in `TraitRef<AssocTy: ?Sized>` are now correctly forbidden](https://github.com/rust-lang/rust/pull/135331) |
| 158 | +- [Add unstable `#[sanitize(xyz = "on|off")]` built-in attribute that shadows procedural macros with the same name](https://github.com/rust-lang/rust/pull/142681) |
| 159 | +- [Fix the drop checker being more permissive for bindings declared with `let`-`else`.](https://github.com/rust-lang/rust/pull/143028) |
| 160 | +- [Error on invalid `#[should_panic]` attributes](https://github.com/rust-lang/rust/pull/143808) |
| 161 | +- [Mark all deprecation lints in name resolution as deny-by-default and report-in-deps](https://github.com/rust-lang/rust/pull/143929) |
| 162 | +- The lint `semicolon_in_expressions_from_macros`, for `macro_rules!` macros in expression position that expand to end in a semicolon (`;`), is now deny-by-default. It was already warn-by-default, and a future compatibility warning (FCW) that warned even in dependencies. This lint will become a hard error in the future. |
| 163 | +- [Trait impl modifiers (e.g., `unsafe`, `!`, `default`) in inherent impls are no longer syntactically valid](https://github.com/rust-lang/rust/pull/144386) |
| 164 | +- [Start reporting future breakage for `ILL_FORMED_ATTRIBUTE_INPUT` in dependencies](https://github.com/rust-lang/rust/pull/144544) |
| 165 | +- [Be more strict when parsing attributes, erroring on many invalid attributes](https://github.com/rust-lang/rust/pull/144689) |
| 166 | +- [fix drop scope for `super let` bindings within `if let`](https://github.com/rust-lang/rust/pull/145342) |
| 167 | +- [Invalid literal suffixes in tuple indexing, tuple struct indexing, and struct field name position are now correctly rejected](https://github.com/rust-lang/rust/pull/145463) |
| 168 | +- [Closures marked with the keyword `static` are now syntactically invalid](https://github.com/rust-lang/rust/pull/145604) |
| 169 | +- [Shebangs inside `--cfg` and `--check-cfg` arguments are no longer allowed](https://github.com/rust-lang/rust/pull/146211) |
| 170 | +- [Add future compatibility lint for temporary lifetimes shortening in Rust 1.92](https://github.com/rust-lang/rust/pull/147056) |
| 171 | + |
| 172 | +Cargo compatibility notes: |
| 173 | + |
| 174 | +- `cargo publish` no longer keeps `.crate` tarballs as final build artifacts |
| 175 | + when `build.build-dir` is set. These tarballs were previously included due to |
| 176 | + an oversight and are now treated as intermediate artifacts. |
| 177 | + To get `.crate` tarballs as final artifacts, use `cargo package`. |
| 178 | + In the next version, this change will apply regardless of `build.build-dir`. |
| 179 | + [#15910](https://github.com/rust-lang/cargo/pull/15910) |
| 180 | +- Adjust Cargo messages to match rustc diagnostic style. |
| 181 | + This changes some of the terminal colors used by Cargo messages. |
| 182 | + [#15928](https://github.com/rust-lang/cargo/pull/15928) |
| 183 | + |
| 184 | + |
| 185 | +<a id="1.91.0-Internal-Changes"></a> |
| 186 | + |
| 187 | +Internal Changes |
| 188 | +---------------- |
| 189 | + |
| 190 | +These changes do not affect any public interfaces of Rust, but they represent |
| 191 | +significant improvements to the performance or internals of rustc and related |
| 192 | +tools. |
| 193 | + |
| 194 | +- [Update to LLVM 21](https://github.com/rust-lang/rust/pull/143684) |
| 195 | +- [std: thread: Return error if setting thread stack size fails](https://github.com/rust-lang/rust/pull/144210) |
| 196 | + |
| 197 | + |
1 | 198 | Version 1.90.0 (2025-09-18) |
2 | 199 | =========================== |
3 | 200 |
|
|
0 commit comments