-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup to syntax::print/rustc::hir::print #62098
Cleanup to syntax::print/rustc::hir::print #62098
Conversation
Your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
I don't understand the larger picture of excising So r=me on that. |
That said, cc @petrochenkov and @eddyb. |
The larger goal is mostly just a simplification of the code, which may lead to both compile time wins ( |
@bors r+ |
📌 Commit 0091e6e has been approved by |
@@ -259,7 +259,7 @@ pub fn mk_printer<'a>(out: Box<dyn io::Write+'a>, linewidth: usize) -> Printer<' | |||
} | |||
|
|||
pub struct Printer<'a> { | |||
out: Box<dyn io::Write+'a>, | |||
out: &'a mut Vec<u8>, |
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.
Why not a String
?
This is in preparation for a removal of
io::Result<()>
from all of the printing infrastructure methods (separate PR due to huge diff), along with potentially some other cleanups.r? @Centril (but feel free to reassign if there's someone better -- there's no functional changes here)