Skip to content

join! and try_join! deadlock with empty invocation #5502

Closed
@adrianheine

Description

@adrianheine

Version
Starting with 1.19.0 (i. e. everything including 1872a42 / #4624).

Platform
any

Description
join!() and try_join!() emit an empty loop {}, see playground. I would expect this to either work (preferred) or be rejected at compile time (acceptable).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tokioArea: The main tokio crateC-bugCategory: This is a bug.M-macrosModule: macros in the main Tokio crate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions