Skip to content

Commit 990328a

Browse files
Mark-Simulacrumjieyouxualex-semenyukpthariensflamecuviper
authored
Apply suggestions from code review
Co-authored-by: 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> Co-authored-by: alexey semenyuk <alexsemenyuk88@gmail.com> Co-authored-by: Laine Taffin Altman <alexanderaltman@me.com> Co-authored-by: Josh Stone <cuviper@gmail.com>
1 parent 19c6844 commit 990328a

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

RELEASES.md

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Language
1010
- [Stabilize declaration of C-style variadic functions for `sysv64`, `win64`, `efiapi`, and `aapcs` ABIs](https://github.com/rust-lang/rust/pull/144066).
1111
This brings these ABIs in line with the C ABI: variadic functions can be declared in extern blocks but not defined.
1212
- [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)
13+
- [Add `dangling_pointers_from_locals` lint to warn against dangling pointers from local variables](https://github.com/rust-lang/rust/pull/144322)
1414
- [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)
15+
- [Stabilize LoongArch32 inline assembly](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)
1717
- [Stabilize `sse4a` and `tbm` target features](https://github.com/rust-lang/rust/pull/144542)
1818
- [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.
1919

@@ -23,15 +23,15 @@ Compiler
2323
--------
2424

2525
- [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)
26+
- [Don't warn on never-to-any `as` casts as unreachable](https://github.com/rust-lang/rust/pull/144804)
2727

2828
<a id="1.91.0-Platform-Support"></a>
2929

3030
Platform Support
3131
----------------
3232

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.
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 future releases.
3535
- [Promote `aarch64-pc-windows-msvc` to Tier 1](https://github.com/rust-lang/rust/pull/145682)
3636

3737
Refer to Rust's [platform support page][platform-support-doc]
@@ -54,7 +54,7 @@ Libraries
5454
Stabilized APIs
5555
---------------
5656

57-
- [`Path::file_prefix`](https://doc.rust-lang.org/std/path/struct.Path.html#method.file_prefix)
57+
- [`Path::file_prefix`](https://doc.rust-lang.org/stable/std/path/struct.Path.html#method.file_prefix)
5858
- [`AtomicPtr::fetch_ptr_add`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_ptr_add)
5959
- [`AtomicPtr::fetch_ptr_sub`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_ptr_sub)
6060
- [`AtomicPtr::fetch_byte_add`](https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.fetch_byte_add)
@@ -79,9 +79,9 @@ Stabilized APIs
7979
- [`u{N}::strict_add_signed`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_add_signed)
8080
- [`u{N}::strict_sub_signed`](https://doc.rust-lang.org/stable/std/primitive.u32.html#method.strict_sub_signed)
8181
- [`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)
82+
- [`core::iter::chain`](https://doc.rust-lang.org/stable/core/iter/fn.chain.html)
8383
- [`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)
84+
- [`core::array::repeat`](https://doc.rust-lang.org/stable/core/array/fn.repeat.html)
8585
- [`PathBuf::add_extension`](https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.add_extension)
8686
- [`PathBuf::with_added_extension`](https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.with_added_extension)
8787
- [`Duration::from_mins`](https://doc.rust-lang.org/stable/std/time/struct.Duration.html#method.from_mins)
@@ -107,11 +107,14 @@ Stabilized APIs
107107
- [`u{N}::carrying_mul_add`](https://doc.rust-lang.org/stable/std/primitive.u64.html#method.carrying_mul_add)
108108
- [`BTreeMap::extract_if`](https://doc.rust-lang.org/stable/std/collections/struct.BTreeMap.html#method.extract_if)
109109
- [`BTreeSet::extract_if`](https://doc.rust-lang.org/stable/std/collections/struct.BTreeSet.html#method.extract_if)
110+
- [`impl Debug for windows::ffi::EncodeWide<'_>`](https://doc.rust-lang.org/stable/std/os/windows/ffi/struct.EncodeWide.html#impl-Debug-for-EncodeWide%3C'_%3E)
111+
- [`str::ceil_char_boundary`](https://doc.rust-lang.org/stable/std/primitive.str.html#method.ceil_char_boundary)
112+
- [`str::floor_char_boundary`](https://doc.rust-lang.org/stable/std/primitive.str.html#method.floor_char_boundary)
110113

111114
These previously stable APIs are now stable in const contexts:
112115

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)
116+
- [`<[T; N]>::each_ref`](https://doc.rust-lang.org/stable/std/primitive.array.html#method.each_ref)
117+
- [`<[T; N]>::each_mut`](https://doc.rust-lang.org/stable/std/primitive.array.html#method.each_mut)
115118
- [`OsString::new`](https://doc.rust-lang.org/stable/std/ffi/struct.OsString.html#method.new)
116119
- [`PathBuf::new`](https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.new)
117120
- [`TypeId::of`](https://doc.rust-lang.org/stable/std/any/struct.TypeId.html#method.of)
@@ -156,18 +159,18 @@ Compatibility Notes
156159
- [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.
157160
- [Relaxed bounds in associated type bound position like in `TraitRef<AssocTy: ?Sized>` are now correctly forbidden](https://github.com/rust-lang/rust/pull/135331)
158161
- [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)
162+
- [Fix the drop checker being more permissive for bindings declared with let-else](https://github.com/rust-lang/rust/pull/143028)
160163
- [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)
164+
- [Mark all deprecation lints in name resolution as deny-by-default and also report in dependencies](https://github.com/rust-lang/rust/pull/143929)
162165
- 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.
163166
- [Trait impl modifiers (e.g., `unsafe`, `!`, `default`) in inherent impls are no longer syntactically valid](https://github.com/rust-lang/rust/pull/144386)
164167
- [Start reporting future breakage for `ILL_FORMED_ATTRIBUTE_INPUT` in dependencies](https://github.com/rust-lang/rust/pull/144544)
165168
- [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)
169+
- [Restrict the scope of temporaries created by the macros `pin!`, `format_args!`, `write!`, and `writeln!` in `if let` scrutinees in Rust Edition 2024.](https://github.com/rust-lang/rust/pull/145342) This applies [Rust Edition 2024's `if let` temporary scope rules](https://doc.rust-lang.org/edition-guide/rust-2024/temporary-if-let-scope.html) to these temporaries, which previously could live past the `if` expression regardless of Edition.
170+
- [Invalid numeric literal suffixes in tuple indexing, tuple struct indexing, and struct field name positions are now correctly rejected](https://github.com/rust-lang/rust/pull/145463)
168171
- [Closures marked with the keyword `static` are now syntactically invalid](https://github.com/rust-lang/rust/pull/145604)
169172
- [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)
173+
- [Add future incompatibility lint for temporary lifetime shortening in Rust 1.92](https://github.com/rust-lang/rust/pull/147056)
171174

172175
Cargo compatibility notes:
173176

0 commit comments

Comments
 (0)