-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Minor refactoring/modernization/reintegration/enhancement of --pretty. #23017
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
-> Option<(PpMode, Option<UserIdentifiedItem>)> { | ||
None | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\o/
r+ on the driver refactoring. Afraid I don't know the pretty printing stuff well enough to comment, so r? @pnkfelix for that |
… pretty-printing annotators.
… pretty_print_input.
… T)`, as the latter might compile some day.
…ntroller manually.
…--xpretty=mode -Z pretty-keep-going -Z pretty-dump-dir=dir.
☔ The latest upstream changes (presumably #22235) made this pull request unmergeable. Please resolve the merge conflicts. |
(i'm going to be out until wedneday; but I will try to get to this then. sorry for the absurd delay; maybe you can rebase in the meantime @eddyb ) |
@nrc you would want to at least drop the last commit (there are better ways to handle this than env vars), and @alexcrichton changed pretty to do some I/O buffering at some point, that has to be reverted first. |
TODO: explain the new options.
Adds
-Z pretty-keep-going
,-Z pretty-dump-dir=dir
,--xpretty=typed,unsuffixed_literals
andRUSTC_PRETTY_DUMP=mode,dir
.These features made #22501 possible and if/when they get into a nightly, we can apply it to all cargo crates ever, even if only to gather statistics.
r? @nrc @pnkfelix