rust/library/core
Mara Bos d80f127a75 Avoid panic_bounds_check in fmt::write.
Writing any fmt::Arguments would trigger the inclusion of usize
formatting and padding code in the resulting binary, because indexing
used in fmt::write would generate code using panic_bounds_check, which
prints the index and length.

These bounds checks are not necessary, as fmt::Arguments never contains
any out-of-bounds indexes.

This change replaces them with unsafe get_unchecked, to reduce the
amount of generated code, which is especially important for embedded
targets.
2020-10-20 00:11:40 +02:00
..
benches Use more efficient scheme for display u128/i128 2020-09-28 20:38:38 +00:00
src Avoid panic_bounds_check in fmt::write. 2020-10-20 00:11:40 +02:00
tests Rollup merge of #77892 - est31:remove_redundant_absolute_paths, r=lcnr 2020-10-14 06:02:36 +09:00
Cargo.toml mv std libs to library/ 2020-07-27 19:51:13 -05:00