about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-08 05:11:18 +0000
committerbors <bors@rust-lang.org>2024-05-08 05:11:18 +0000
commit5ce96b1d0f6b5093955e7b6a70dfd877395c1d73 (patch)
treedad5229d772955c79015c0e65c44899ae1696ffa /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent32dd3795bce8b347fda786529cf5e42a813e0b7d (diff)
parent5e67a3783c89ebb1f611e0351c9a36a579e49cec (diff)
downloadrust-5ce96b1d0f6b5093955e7b6a70dfd877395c1d73.tar.gz
rust-5ce96b1d0f6b5093955e7b6a70dfd877395c1d73.zip
Auto merge of #124779 - workingjubilee:debug-formatting-my-beloved, r=compiler-errors
Improve `rustc_parse::Parser`'s debuggability

The main event is the final commit where I add `Parser::debug_lookahead`. Everything else was basically cleaning up things that bugged me (debugging, as it were) until I felt comfortable enough to actually work on it.

The motivation is that it's annoying as hell to try to figure out how the debug infra works in rustc without having basic queries like `debug!(?parser);` come up "empty". However, Parser has a lot of fields that are mostly irrelevant for most debugging, like the entire ParseSess. I think `Parser::debug_lookahead` with a capped lookahead might be fine as a general-purpose Debug impl, but this adapter version was suggested to allow more choice, and admittedly, it's a refined version of what I was already handrolling just to get some insight going.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions