From bd7511204d8f6a6ede7f10021df65a4a575ca5b8 Mon Sep 17 00:00:00 2001 From: Ruben De Smet Date: Sun, 3 Nov 2019 16:07:41 +0100 Subject: [PATCH 1/2] select! warning on recursion limit Warning as discussion in issue #1917. --- futures-util/src/async_await/select_mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/futures-util/src/async_await/select_mod.rs b/futures-util/src/async_await/select_mod.rs index 5956c87671..0d2ea7d2c9 100644 --- a/futures-util/src/async_await/select_mod.rs +++ b/futures-util/src/async_await/select_mod.rs @@ -32,6 +32,9 @@ macro_rules! document_select_macro { /// It is also gated behind the `async-await` feature of this library, which is /// _not_ activated by default. /// + /// **Warning**: `select!` relies on `proc-macro-hack`, and may require to set the + /// compiler's recursion limit very high, e.g. `#![recursion_limit="1024"]`. + /// /// # Examples /// /// ``` From f8e52534c6a6ca3b3484ed6cb1be72ab054e4924 Mon Sep 17 00:00:00 2001 From: Ruben De Smet Date: Sun, 3 Nov 2019 20:02:58 +0100 Subject: [PATCH 2/2] Update futures-util/src/async_await/select_mod.rs Co-Authored-By: Taiki Endo --- futures-util/src/async_await/select_mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/futures-util/src/async_await/select_mod.rs b/futures-util/src/async_await/select_mod.rs index 0d2ea7d2c9..221b6fdbdd 100644 --- a/futures-util/src/async_await/select_mod.rs +++ b/futures-util/src/async_await/select_mod.rs @@ -32,7 +32,7 @@ macro_rules! document_select_macro { /// It is also gated behind the `async-await` feature of this library, which is /// _not_ activated by default. /// - /// **Warning**: `select!` relies on `proc-macro-hack`, and may require to set the + /// Note that `select!` relies on `proc-macro-hack`, and may require to set the /// compiler's recursion limit very high, e.g. `#![recursion_limit="1024"]`. /// /// # Examples