34
submitted 3 months ago by steam_lover@sh.itjust.works to c/rust@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] thingsiplay@lemmy.ml 2 points 3 months ago

I thought Polonius will be only implemented in a new version of Rust and tied to versions (from there all upwards off course). But it looks like this is independent from the Rust version? Does that mean everyone from older Rust versions will also benefit from it?

[-] BB_C@programming.dev 6 points 3 months ago
[-] thingsiplay@lemmy.ml 3 points 3 months ago

Yes, I was thinking off editions, not the actual versions of Rust itself.

[-] BB_C@programming.dev 4 points 3 months ago

Well, if you try the reborrow example from the article with edition=2015 and RUSTFLAGS='-Zpolonius=next', you will see that it does indeed work. So the answer is yes.

this post was submitted on 04 Aug 2026
34 points (97.2% liked)

Rust Programming

9435 readers
1 users here now

founded 7 years ago
MODERATORS