mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-09 03:43:22 +01:00
workaround rustc bug
This commit is contained in:
parent
b93947c0ab
commit
cc9e3a56e6
1 changed files with 9 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue