Skip to content

Commit a84ef47

Browse files
authored
Rollup merge of #129944 - Mark-Simulacrum:relnotes-tweak, r=pietroalbini
Add compat note for trait solver change r? ``@pietroalbini`` ``@BoxyUwU`` cc ``@lcnr``
2 parents 57d85fa + f3efe3d commit a84ef47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: RELEASES.md

+3
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ Compatibility Notes
100100
The reason is that these types have different roles: `std::panic::PanicHookInfo` is the argument to the [panic hook](https://doc.rust-lang.org/stable/std/panic/fn.set_hook.html) in std context (where panics can have an arbitrary payload), while `core::panic::PanicInfo` is the argument to the [`#[panic_handler]`](https://doc.rust-lang.org/nomicon/panic-handler.html) in no_std context (where panics always carry a formatted *message*). Separating these types allows us to add more useful methods to these types, such as `std::panic::PanicHookInfo::payload_as_str()` and `core::panic::PanicInfo::message()`.
101101

102102
* The new sort implementations may panic if a type's implementation of [`Ord`](https://doc.rust-lang.org/std/cmp/trait.Ord.html) (or the given comparison function) does not implement a [total order](https://en.wikipedia.org/wiki/Total_order) as the trait requires. `Ord`'s supertraits (`PartialOrd`, `Eq`, and `PartialEq`) must also be consistent. The previous implementations would not "notice" any problem, but the new implementations have a good chance of detecting inconsistencies, throwing a panic rather than returning knowingly unsorted data.
103+
* [In very rare cases, a change in the internal evaluation order of the trait
104+
solver may result in new fatal overflow errors.](https://github.com/rust-lang/rust/pull/126128)
105+
103106

104107
<a id="1.81.0-Internal-Changes"></a>
105108

0 commit comments

Comments
 (0)