Narrowing conversion
Narrowing conversion
Posted Jul 23, 2021 0:47 UTC (Fri) by khim (subscriber, #9252)In reply to: Narrowing conversion by roc
Parent article: The Sequoia seq_file vulnerability
> But obviously a lot of existing code would be affected.
Isn't it something Rust editions are supposed to cover?
Posted Jul 23, 2021 7:50 UTC (Fri)
by Fowl (subscriber, #65667)
[Link] (1 responses)
Posted Jul 23, 2021 9:54 UTC (Fri)
by khim (subscriber, #9252)
[Link]
Not really. In Rust, unlike in C++, editions are supposed to coexist. You can write one crate in Rust 2015, another in Rust 2018, and third in Rust 2021. Sure, if you are actively developing your code then you would probably want to upgrade it, but there are no pressure to do that ASAP.
Narrowing conversion
Narrowing conversion