Skip to content

Tracking issue for Pattern Guards with Bind-By-Move #15287

Closed
@alexcrichton

Description

@alexcrichton
Member

Tracking issue for "Pattern Guards with Bind-By-Move" (rust-lang/rfcs#107)

Steps:

  • Implement the RFC (already done as part of NLL work)
    Adjust documentation (see instructions on forge)
    Stabilization PR (see instructions on forge)

Activity

self-assigned this
on Jul 1, 2014
removed their assignment
on Jan 31, 2015
added
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Aug 11, 2015
steveklabnik

steveklabnik commented on Nov 30, 2016

@steveklabnik
jonhoo

jonhoo commented on Mar 31, 2017

@jonhoo
Contributor

I keep running into this (or rather, the simpler #14252) in places where I now end up with an extra level of indentation:

match x {
    Foo(v) => if do_a {
            // ...
        } else if do_b {
            // ...
        } else if do_c {
            // ...
        } else {
            // ...
        }
}

when it could be

match x {
    Foo(v) if do_a => {
        // ...
    },
    Foo(v) if do_b => {
        // ...
    },
    Foo(v) if do_c => {
        // ...
    },
    Foo(v) => {
        // ...
  }
}
added
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
and removed
C-enhancementCategory: An issue proposing an enhancement or a PR with one.
on Jul 21, 2017

45 remaining items

added 3 commits that reference this issue on Jul 29, 2019

Rollup merge of rust-lang#63059 - Centril:sound-bind-by-move, r=matth…

81510c9

Rollup merge of rust-lang#63059 - Centril:sound-bind-by-move, r=matth…

11a913c

Rollup merge of rust-lang#63059 - Centril:sound-bind-by-move, r=matth…

8c84efa
changed the title [-]Implement Pattern Guards with Bind-By-Move[/-] [+]Tracking issue for Pattern Guards with Bind-By-Move[/+] on Aug 4, 2019
Centril

Centril commented on Aug 4, 2019

@Centril
Contributor

Plan in #15287 (comment) was implemented in #63059.

added a commit that references this issue on Sep 9, 2019

Auto merge of #63118 - Centril:stabilize-bind-by-move, r=matthewjasper

added a commit that references this issue on Jul 24, 2023

Auto merge of rust-lang#15287 - lowr:internal/remove-crate-vis, r=lni…

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

    A-NLLArea: Non-lexical lifetimes (NLL)B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCE-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-langRelevant to the language teamfixed-by-NLLBugs fixed, but only when NLL is enabled.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @steveklabnik@alexcrichton@nikomatsakis@pnkfelix@jonhoo

      Issue actions

        Tracking issue for Pattern Guards with Bind-By-Move · Issue #15287 · rust-lang/rust