From cc9e3a56e6084f63fddfb3c11861a753bd4a4749 Mon Sep 17 00:00:00 2001 From: Waffle Date: Thu, 21 Jan 2021 09:45:20 +0300 Subject: [PATCH] workaround rustc bug --- src/local_macros.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/local_macros.rs b/src/local_macros.rs index 91f5623a..eaf50554 100644 --- a/src/local_macros.rs +++ b/src/local_macros.rs @@ -47,7 +47,15 @@ macro_rules! req_future { $(where $($wh:tt)*)? ) => { #[pin_project::pin_project] - $v struct $i<$T> + pub + // FIXME(waffle): + // The `pub` above should ideally be `$v`, but we currently can't do + // this due to compiler bug, see: + // - pin_project bug report + // - related rustc issue + // - original fix (closed) + // - second iteration of the fix + struct $i<$T> $(where $($wh)*)? { #[pin]