Skip to content

Tracking issue for way to express intraprocedural finite state machines #132306

Open

Description

@traviscross

This is a tracking issue for some form of:

The feature gate for the issue is #![feature(loop_match)].

From #138777:

This feature is based on rust-lang/rfcs#3720, though it does not exactly implement it. Rather, this is a language experiment to figure out how to impove that RFC. So, the RFC will eventually match the implementation we end up with, rather than the other way around.

About tracking issues

Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

Steps

Unresolved Questions

TODO.

Related

TODO.

cc @bjorn3 @folkertdev @rust-lang/lang

Activity

  1. added
    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
    T-langRelevant to the language team
    on Oct 29, 2024
  2. scottmcm commented on Oct 29, 2024

    @scottmcm
    Member

    I object under the phrasing as labelled matches. See rust-lang/rfcs#3720 (comment)

    (I'm puzzled why an RFC open for less than a day got a tracking issue and label, TBH.)

  3. traviscross commented on Oct 29, 2024

    @traviscross
    ContributorAuthor

    Some form of this seemed particularly likely to me to yield a request for an experiment, especially as they already have implementation work, so the tracking issue was for a place to hang that.

  4. changed the title [-]Tracking issue for labeled matches[/-] [+]Tracking issue for way to express intraprocedural state machine[/+] on Oct 29, 2024
  5. changed the title [-]Tracking issue for way to express intraprocedural state machine[/-] [+]Tracking issue for way to express intraprocedural state machines[/+] on Oct 29, 2024
  6. changed the title [-]Tracking issue for way to express intraprocedural state machines[/-] [+]Tracking issue for way to express intraprocedural finite state machines[/+] on Oct 29, 2024
  7. added 3 commits that reference this issue on Jun 24, 2025
  8. added a commit that references this issue on Jun 25, 2025
  9. folkertdev commented on Jul 1, 2025

    @folkertdev
    Contributor

    @rustbot label +F-loop_match

  10. 19 remaining items

  11. NobodyXu commented on Sep 24, 2025

    @NobodyXu
    Contributor

    async-compression also has use of pattern of loop-match, would he interesting to see if this feature would improve its performance

    https://github.com/Nullus157/async-compression/blob/main/crates/async-compression/src/tokio/write/generic/decoder.rs

  12. added 3 commits that reference this issue on Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCF-loop_matchwhen you match up with someone and they really throw you for a loopT-langRelevant to the language team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions