rust/library/alloc
bors ee1c3b385b 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
2022-10-14 13:41:40 +00:00
..
benches Stabilize map_first_last 2022-09-30 17:00:07 +02:00
src Auto merge of #102529 - colinba:master, r=joshtriplett 2022-10-14 13:41:40 +00:00
tests Add regression test for lifetimes in alloc internals autotraits 2022-10-05 12:15:17 -07:00
Cargo.toml Switch all libraries to the 2021 edition 2021-12-23 19:03:47 +08:00