You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Rust compiler and standard library we're planning to limit the width and precision formatting options to a u16. This means that, in a future version of Rust, this line will panic when max_len is larger than u16::MAX:
This is the only code we found on all of Crates.io and GitHub that triggers the new runtime panic. This is a heads-up to give you the time to adjust your code. Apologies for breaking your code.
Wow, the only code on all of Crates.io and GitHub? 😀 Thank you so much for your hard work identifying not only what breaks but actually tracking the parts of code leading to the values "close to" usize::MAX! Glad to hear from you about this.
This was nothing but a laziness on my part, equivalent to no limit on precision in all intended cases. I'll fix this promptly.
Hi there!
In the Rust compiler and standard library we're planning to limit the
width
andprecision
formatting options to au16
. This means that, in a future version of Rust, this line will panic whenmax_len
is larger thanu16::MAX
:stream-rust/src/base.rs
Line 638 in 420283f
This is the only code we found on all of Crates.io and GitHub that triggers the new runtime panic. This is a heads-up to give you the time to adjust your code. Apologies for breaking your code.
See rust-lang/rust#136932 for more information.
If you have any thoughts or concerns about the planned change, feel free to leave a comment on that pull request.
Thanks!
The text was updated successfully, but these errors were encountered: