]> git.lizzy.rs Git - rust.git/commit
Adjusted some doctests in libcore to use `should_panic`.
authorJake Degen <jakob@degen.org>
Sat, 13 Jun 2020 04:06:09 +0000 (00:06 -0400)
committerJake Degen <jakob@degen.com>
Sat, 13 Jun 2020 04:12:07 +0000 (00:12 -0400)
commit3ab4b380aa0b0db982d3586b47dcfa13a1a427b8
tree0cba48b98b58731e24503c325ab61b046fb6452c
parente93cb961ba67c73815401291ab42b81e3e5733ae
Adjusted some doctests in libcore to use `should_panic`.

Previously, some doctests were spawning new threads and joining them to
indicate that a particular call should panic; this hurt readability, so
the tests have been adjusted to simply call the method and use the
`should_panic` marker.
src/libcore/cell.rs
src/libcore/char/convert.rs
src/libcore/char/methods.rs