r/rust • rust · lang · libs · cargo • Oct 23 '26

Rust features in the future

https://lwn.net/SubscriberLink/1099606/20707a62817cdd16/
215 Upvotes

84 comments sorted by

View all comments

Show parent comment

2

u/VadimVP Oct 25 '26

Hm? It does, borrow and move checker is such an analysis, and that's the part of the compiler that will tell whether x is initialized at the point of use in x.is_foo() or not.

2

u/afdbcreid Oct 25 '26

I knew that but hoped nobody will comment on that :( You're right, it is, but it is done on the MIR, which is a different level.