macros: Use more consistent runtime names (#1628)

As discussed in #1620, the attribute names for `#[tokio::main]` and
`#[tokio::test]` aren't great. Specifically, they both use
`single_thread` and `multi_thread`, as opposed to names that match the
runtime names: `current_thread` and `threadpool`. This PR changes the
former to the latter.

Fixes #1627.
This commit is contained in:
Jon Gjengset
2019-10-12 12:55:39 -04:00
committed by GitHub
parent 29f35df7f8
commit 1cae04f8b3
3 changed files with 17 additions and 17 deletions
@@ -6,7 +6,7 @@ fn main_is_not_async() {}
#[tokio::main(foo)]
async fn main_attr_has_unknown_args() {}
#[tokio::main(multi_thread::bar)]
#[tokio::main(threadpool::bar)]
async fn main_attr_has_path_args() {}
#[tokio::test]