Closed workingjubilee closed 1 week ago
r? @TaKO8Ki
rustbot has assigned @TaKO8Ki. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.
Use r?
to explicitly pick a reviewer
The job x86_64-gnu-tools
failed! Check out the build log: (web) (plain)
@bors r+
:pushpin: Commit 5e67a3783c89ebb1f611e0351c9a36a579e49cec has been approved by compiler-errors
It is now in the queue for this repository.
:hourglass: Testing commit 5e67a3783c89ebb1f611e0351c9a36a579e49cec with merge 5ce96b1d0f6b5093955e7b6a70dfd877395c1d73...
:sunny: Test successful - checks-actions Approved by: compiler-errors Pushing 5ce96b1d0f6b5093955e7b6a70dfd877395c1d73 to master...
Finished benchmarking commit (5ce96b1d0f6b5093955e7b6a70dfd877395c1d73): comparison URL.
@rustbot label: -perf-regression
This benchmark run did not return any relevant results for this metric.
This benchmark run did not return any relevant results for this metric.
This benchmark run did not return any relevant results for this metric.
Bootstrap: 676.869s -> 676.306s (-0.08%) Artifact size: 315.94 MiB -> 315.93 MiB (-0.00%)
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 thinkParser::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.