Skip to content

loop control flow label "elision" inlay hints #15580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Veykril opened this issue Sep 8, 2023 · 1 comment
Open

loop control flow label "elision" inlay hints #15580

Veykril opened this issue Sep 8, 2023 · 1 comment
Labels
A-ide general IDE features C-feature Category: feature request S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work.

Comments

@Veykril
Copy link
Member

Veykril commented Sep 8, 2023

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

@Veykril Veykril added C-feature Category: feature request A-ide general IDE features labels Sep 8, 2023
@Veykril Veykril self-assigned this Oct 6, 2023
@Veykril Veykril added the S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work. label Oct 10, 2023
@Veykril
Copy link
Member Author

Veykril commented Oct 10, 2023

This is blocked on having loop resolution happen in body lowering cc #14498

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ide general IDE features C-feature Category: feature request S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work.
Projects
None yet
Development

No branches or pull requests

1 participant