Skip to content
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

Change some free functions into methods in libsyntax/diagnostic.rs #26838

Merged
merged 1 commit into from
Jul 17, 2015

Conversation

ftxqxd
Copy link
Contributor

@ftxqxd ftxqxd commented Jul 6, 2015

No description provided.

@rust-highfive
Copy link
Collaborator

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

@bors: r+ 1c0039094fea23d149a19577547c9ac09aa4f549

@bors
Copy link
Contributor

bors commented Jul 8, 2015

⌛ Testing commit 1c00390 with merge 9cb65b3...

@bors
Copy link
Contributor

bors commented Jul 8, 2015

💔 Test failed - auto-linux-64-nopt-t

@ftxqxd ftxqxd force-pushed the refactor-diagnostic branch from 1c00390 to e08c5f7 Compare July 8, 2015 04:03
@alexcrichton
Copy link
Member

@bors: r+ e08c5f7

Feel free to ping a PR when force pushed, unfortunately github doesn't send out notifications on a force push :(

Manishearth added a commit to Manishearth/rust that referenced this pull request Jul 16, 2015
@bors bors merged commit e08c5f7 into rust-lang:master Jul 17, 2015
ftxqxd added a commit to ftxqxd/rust that referenced this pull request Jul 18, 2015
`EmitterWriter::print_maybe_styled` was basically always used with `format!`, so
this macro makes some code cleaner. It should also remove some unnecessary
allocations (most `print_maybe_styled` invocations allocated a `String`
previously, whereas the new macro uses `write_fmt` to write the formatted string
directly to the terminal).

This probably could have been part of rust-lang#26838, but it’s too late now.
bors added a commit that referenced this pull request Jul 29, 2015
`EmitterWriter::print_maybe_styled` was basically always used with `format!`, so this macro makes some code cleaner. It should also remove some unnecessary allocations (most `print_maybe_styled` invocations allocated a `String` previously, whereas the new macro uses `write_fmt` to write the formatted string directly to the terminal).

This probably could have been part of #26838, but it’s too late now. It’s also rebased on #26838’s branch because otherwise pretty much all of the changes in this PR would conflict with the other PR’s changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants