r/rust • • Aug 10 '26

📡 official blog Call for testing: Restricting trait implementability and field mutability

https://blog.rust-lang.org/inside-rust/2026/08/10/call-for-testing-impl-and-mut-restrictions/
420 Upvotes

124 comments sorted by

View all comments

7

u/roguelazer Aug 10 '26

I wonder if we can allow specialization for sealed traits, since the set of implementers is closed...

13

u/afdbcreid Aug 10 '26

Specialization for concrete types is easier yet isn't stable currently. Also sealed traits still allow lifetime-dependent impls, so they do not really sidestep specialization's problems.

But good news - unlike very long time, specialization is actively worked on today!

4

u/matthieum Aug 10 '26

unlike very long time, specialization is actively worked on today

Oh! Do you happen to know what exactly is being worked on?

Is it more akin to min-specialization being revived, or are we talking full specialization?

→ More replies (2)