<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/ui/panic-while-printing.rs, branch 1.56.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.56.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.56.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-11-10T20:58:13+00:00</updated>
<entry>
<title>Merge set_panic and set_print into set_output_capture.</title>
<updated>2020-11-10T20:58:13+00:00</updated>
<author>
<name>Mara Bos</name>
<email>m-ou.se@m-ou.se</email>
</author>
<published>2020-11-03T23:11:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=aff7bd66e8b97a41d34c221007e12e4bbe535322'/>
<id>urn:sha1:aff7bd66e8b97a41d34c221007e12e4bbe535322</id>
<content type='text'>
There were no use cases for setting them separately.
Merging them simplifies some things.
</content>
</entry>
<entry>
<title>Use Vec&lt;u8&gt; for LOCAL_STD{OUT,ERR} instead of dyn Write.</title>
<updated>2020-11-10T20:58:09+00:00</updated>
<author>
<name>Mara Bos</name>
<email>m-ou.se@m-ou.se</email>
</author>
<published>2020-11-03T20:44:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f534b75f050f2daca87c15f6c8d04bf9dc5b68a6'/>
<id>urn:sha1:f534b75f050f2daca87c15f6c8d04bf9dc5b68a6</id>
<content type='text'>
It was only ever used with Vec&lt;u8&gt; anyway. This simplifies some things.

- It no longer needs to be flushed, because that's a no-op anyway for
  a Vec&lt;u8&gt;.

- Writing to a Vec&lt;u8&gt; never fails.

- No #[cfg(test)] code is needed anymore to use `realstd` instead of
  `std`, because Vec comes from alloc, not std (like Write).
</content>
</entry>
<entry>
<title>Update tests for updated set_panic.</title>
<updated>2020-11-10T20:57:05+00:00</updated>
<author>
<name>Mara Bos</name>
<email>m-ou.se@m-ou.se</email>
</author>
<published>2020-11-03T19:49:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ccbce1d3b2b9f74619d19c6d3377d20dd06e0050'/>
<id>urn:sha1:ccbce1d3b2b9f74619d19c6d3377d20dd06e0050</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Capture output from threads spawned in tests</title>
<updated>2020-10-23T01:15:44+00:00</updated>
<author>
<name>Tyler Mandry</name>
<email>tmandry@gmail.com</email>
</author>
<published>2020-08-05T01:42:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d0d0e7820806bbb89a2733bae8f9aaa9c78345d0'/>
<id>urn:sha1:d0d0e7820806bbb89a2733bae8f9aaa9c78345d0</id>
<content type='text'>
Fixes #42474.
</content>
</entry>
<entry>
<title>std: Don't abort process when printing panics in tests</title>
<updated>2020-03-18T14:06:13+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2020-03-12T20:03:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d5b6a20557743911ff9f90af5d8ad24c699570d3'/>
<id>urn:sha1:d5b6a20557743911ff9f90af5d8ad24c699570d3</id>
<content type='text'>
This commit fixes an issue when using `set_print` and friends, notably
used by libtest, to avoid aborting the process if printing panics. This
previously panicked due to borrowing a mutable `RefCell` twice, and this
is worked around by borrowing these cells for less time, instead
taking out and removing contents temporarily.

Closes #69558
</content>
</entry>
</feed>
