Skip to content

Commit 82fc83d

Browse files
committed
Add comment on why stream_yield uses a temporary
1 parent 1c5f933 commit 82fc83d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

futures-await-macro/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ macro_rules! await {
2727
})
2828
}
2929

30+
// TODO: This macro needs to use an extra temporary variable because of
31+
// rust-lang/rust#44197, once that's fixed this should just use $e directly
32+
// inside the yield expression
3033
#[macro_export]
3134
macro_rules! stream_yield {
3235
($e:expr) => ({

0 commit comments

Comments
 (0)