Skip to content

loop control flow label "elision" inlay hints #15580

Open
@Veykril

Description

@Veykril

Similar to lifetime elision hints, we should have label hints for control flow constructs.

That is for,

loop {
    loop: {
        break;
    }
    continue;
}

we should have the following hints

'0: loop {
    '1: loop {
        break '1;
    }
    continue '0;
}

For configs, enabled, disabled and a third option for only showing it in nested loop contexts would make sense I think

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-idegeneral IDE featuresC-featureCategory: feature requestS-blockedStatus: marked as blocked ❌ on something else such as an RFC or other implementation work.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions