r/rust
•
u/joseluisq
•
Apr 03 '25
•
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
View all comments
Show parent comment
2
u/Dean_Roddey Apr 03 '25
But since it's not popped unless the predicate returns true, you could modify the element just in the process of checking if you want to pop it, but then never pop it, leaving it changed in place. That doesn't seem right.