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.
Showing
想要评论请 注册 或 登录