about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/snippet.rs
diff options
context:
space:
mode:
authorbinarycat <binarycat@envs.net>2025-08-17 14:13:05 -0500
committerbinarycat <binarycat@envs.net>2025-08-17 14:13:05 -0500
commitab19755630ea6eb3c2f2a364300380ab01eff923 (patch)
tree8186089e5963faaeaab529b246c62fd315a0cc43 /compiler/rustc_errors/src/snippet.rs
parent425a9c0a0e365c0b8c6cfd00c2ded83a73bed9a0 (diff)
downloadrust-ab19755630ea6eb3c2f2a364300380ab01eff923.tar.gz
rust-ab19755630ea6eb3c2f2a364300380ab01eff923.zip
bufreader::Buffer::backshift: don't move the uninit bytes
previous code was perfectly sound because of MaybeUninit,
but it did waste cycles on copying memory that is
known to be uninitialized.
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions