mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
b9e85bf60a
Until now out-of-range integers in format string literals were silently ignored. They wrapped around to zero at usize::MAX, producing unexpected results. When using debug builds of rustc, such integers in format string literals even cause an 'attempt to add with overflow' panic in rustc. Fix this by producing an error diagnostic for integers in format string literals which do not fit into usize. Fixes #102528 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |