Skip to content

Procedural macros provided by futures-async-stream cannot handle expressions in macros #4

Open
@taiki-e

Description

@taiki-e

Currently, procedural macros provided by futures-async-stream cannot handle expressions in macros.

rust-lang/futures-rs#1548 (comment):

It is not possible to replace .await in macros such as assert!(foo.await) with this.

Full support for this can not be done without compiler support, but it can support for some kinds of macros (however, this is not necessarily preferable, as a macro may call an async block etc): taiki-e/futures-rs@fb33504

Related: Nemo157/embrio-rs#14

Refs: 5198fe4

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: related to a bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions