about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-07-29 00:28:55 +0000
committerbors <bors@rust-lang.org>2015-07-29 00:28:55 +0000
commit8d432fbf10f53e00365ee83eae54c1705ce14237 (patch)
tree5c3a32aecd0c6e25c5dcb5c1789f6051d09ac94d /src/libstd/sys/unix/stack_overflow.rs
parentba324694d6116cb0a9a73e29acb043d251a1e6f5 (diff)
parent3ebf706cf7db582c8b3a1f61c92184daeaf1f811 (diff)
downloadrust-8d432fbf10f53e00365ee83eae54c1705ce14237.tar.gz
rust-8d432fbf10f53e00365ee83eae54c1705ce14237.zip
Auto merge of #26846 - P1start:print-maybe-styled-macro, r=pnkfelix
`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.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions