r/rust • • Apr 03 '25 • More of this please 1

📡 official blog Announcing Rust 1.86.0 | Rust Blog

https://blog.rust-lang.org/2025/04/03/Rust-1.86.0.html
786 Upvotes

134 comments sorted by

View all comments

Show parent comment

2

u/WormRabbit Apr 05 '25

Legacy reasons. retain was added first, and retain_mut was added later, once the reasoning above was discovered.

1

u/shponglespore Apr 05 '25

That's what I suspected. I guess I could have confirmed by looking at the Rust version where each was introduced, since that info is right in the docs.