Hi all,

Much more often than I'd like, I run into a lack of windows_mut on slices. I know this has been a long road and likely requires LendingIterators to be added to stdlib (A `windows_mut` method on slice - #12 by system - libs - Rust Internals), but I've not seen or heard much about this since GATs were first stabilized in 2022!

In that official stabilization, there were quite a few limitations discussed, starting with a WindowsMut example: Generic associated types to be stable in Rust 1.65 | Rust Blog

And then some more issues with the borrow checker downstream.

I suppose I'd just be interesting in being pointed towards some places where this work is being done! I think the new trait solver is coming in the 2024 edition, but I don't have any idea about where work on the borrow checker is currently? Or removing that implied 'static lifetime for GATs? Are LendingIterators in stdlib blocked on those issues?

I'm happy to read up on things on my own, but am drowning horribly in all of the tracking issues, blog posts, etc, and would really appreciate some links from people in the know <3

Thanks a ton!

2 posts - 1 participant

Read full topic

Source: View source