workaround rustc bug

This commit is contained in:
Waffle 2021-01-21 09:45:20 +03:00
parent b93947c0ab
commit cc9e3a56e6

View file

@ -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 <https://github.com/taiki-e/pin-project/issues/312>
// - related rustc issue <https://github.com/rust-lang/rust/issues/81007>
// - original fix (closed) <https://github.com/rust-lang/rust/pull/81029>
// - second iteration of the fix <https://github.com/rust-lang/rust/pull/81177>
struct $i<$T>
$(where $($wh)*)?
{
#[pin]