r/rust • • Nov 17 '22

What are Rust’s biggest weaknesses?

What would you say are Rust’s biggest weaknesses right now? And are they things that can be fixed in future versions do you think or is it something that could only be fixed by introducing a breaking change? Let’s say if you could create a Rust 2.0 and therefore not worry about backwards compatibility what would you do different.

220 Upvotes

390 comments sorted by

View all comments

Show parent comment

1

u/robin-m Nov 20 '22

split_as_mut isn't UB (or even unsound). Otherwise it wouldn't be in the standard library. And the reason I was asking is because aliasing rules in unsafe Rust are surprisingly harder in practice than what I was expecting. Much harder than in C or C++.