Skip to content

Commit d7ad82a

Browse files
committed
Auto merge of rust-lang#102529 - colinba:master, r=joshtriplett
Detect and reject out-of-range integers in format string literals 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 rust-lang#102528
2 parents 5d5bb36 + f37d280 commit d7ad82a

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)