about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/source-script.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-14 13:41:40 +0000
committerbors <bors@rust-lang.org>2022-10-14 13:41:40 +0000
commitee1c3b385b6673b6ef37d80dfabe048e993c2ae2 (patch)
tree96f1be9a61f9d2fed454a885e195e2373725aba4 /src/librustdoc/html/static/js/source-script.js
parent9b0a099dfc9a97ecd10adb319396c731c4b2d169 (diff)
parentb9e85bf60ab4376a321f03078c06cd95ea5143ef (diff)
downloadrust-ee1c3b385b6673b6ef37d80dfabe048e993c2ae2.tar.gz
rust-ee1c3b385b6673b6ef37d80dfabe048e993c2ae2.zip
Auto merge of #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 #102528
Diffstat (limited to 'src/librustdoc/html/static/js/source-script.js')
0 files changed, 0 insertions, 0 deletions