about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/rustc.rs
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2024-01-24 16:48:54 +0100
committerMichal Nazarewicz <mina86@mina86.com>2024-08-09 22:50:57 +0200
commit7d1de7f9942e4f91f3fc6dbfd56491caccd02f64 (patch)
tree3838515bc891dfc14b4a24668f544b3eafc63fba /compiler/rustc_pattern_analysis/src/rustc.rs
parent19ebdcedf1f5619f8f06c546c7541bb9b54aecda (diff)
downloadrust-7d1de7f9942e4f91f3fc6dbfd56491caccd02f64.tar.gz
rust-7d1de7f9942e4f91f3fc6dbfd56491caccd02f64.zip
core: optimise Debug impl for ascii::Char
Rather than writing character at a time, optimise Debug implementation
for core::ascii::Char such that it writes the entire representation as
with a single write_str call.

With that, add tests for Display and Debug implementations.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/rustc.rs')
0 files changed, 0 insertions, 0 deletions