Rust 1.81

Revision en2, by Egor, 2024-09-06 09:55:31

Changes relevant to competitive programming:

  • New sort implementations Both the stable and unstable sort implementations in the standard library have been updated to new algorithms, improving their runtime performance and compilation time. Additionally, both of the new sort algorithms try to detect incorrect implementations of Ord that prevent them from being able to produce a meaningfully sorted result, and will now panic on such cases rather than returning effectively randomly arranged data. Users encountering these panics should audit their ordering implementations to ensure they satisfy the requirements documented in PartialOrd and Ord.

  • Duration::abs_diff stabilized

Tags rust

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Egor 2024-09-06 09:55:31 4
en1 English Egor 2024-09-06 09:55:07 693 Initial revision (published)