about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2020-11-03 21:44:21 +0100
committerMara Bos <m-ou.se@m-ou.se>2020-11-10 21:58:09 +0100
commitf534b75f050f2daca87c15f6c8d04bf9dc5b68a6 (patch)
tree955d68e656130dbaf65cd0ac2f220c9911c2ed0a /src/test/codegen
parentccbce1d3b2b9f74619d19c6d3377d20dd06e0050 (diff)
downloadrust-f534b75f050f2daca87c15f6c8d04bf9dc5b68a6.tar.gz
rust-f534b75f050f2daca87c15f6c8d04bf9dc5b68a6.zip
Use Vec<u8> for LOCAL_STD{OUT,ERR} instead of dyn Write.
It was only ever used with Vec<u8> anyway. This simplifies some things.

- It no longer needs to be flushed, because that's a no-op anyway for
  a Vec<u8>.

- Writing to a Vec<u8> never fails.

- No #[cfg(test)] code is needed anymore to use `realstd` instead of
  `std`, because Vec comes from alloc, not std (like Write).
Diffstat (limited to 'src/test/codegen')
0 files changed, 0 insertions, 0 deletions