about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-06-11 18:56:27 +0000
committerbors <bors@rust-lang.org>2017-06-11 18:56:27 +0000
commite2eaef8497bd212694840515a568d592b17d0e07 (patch)
tree86b81d0d0821a4786e2518a82c5d70d1ca0a3f4e /src/libstd/thread
parent27650ee8ab612cc3d5f4e3439b56b3a352177f44 (diff)
parentf51771939ba5b36ec89b9f0b51c2cbda51164676 (diff)
downloadrust-e2eaef8497bd212694840515a568d592b17d0e07.tar.gz
rust-e2eaef8497bd212694840515a568d592b17d0e07.zip
Auto merge of #42155 - seanmonstar:unimplemented, r=sfackler
core: allow messages in unimplemented!() macro

This makes `unimplemented!()` match `unreachable!()`, allowing a message and possible formatting to be provided to better explain what and/or why something is not implemented.

I've used this myself in hyper for a while, include the type and method name, to better help while prototyping new modules, like `unimplemented!("Conn::poll_complete")`, or `unimplemented!("Conn::poll; state={:?}", state)`.
Diffstat (limited to 'src/libstd/thread')
0 files changed, 0 insertions, 0 deletions