Skip to content

Matching a struct pattern should autoderef #661

Closed
@marijnh

Description

@marijnh
Contributor

Either that, or we need a syntax for dereferencing in a pattern.

Activity

ghost assigned on Jul 11, 2011
msullivan

msullivan commented on Jul 11, 2011

@msullivan
Contributor

Perhaps the answer is to introduce "box patterns"?

pcwalton

pcwalton commented on Jul 12, 2011

@pcwalton
Contributor

What sully said; box patterns seem to me to be more broadly useful anyway (consider boxed tags, etc.)

marijnh

marijnh commented on Jul 12, 2011

@marijnh
ContributorAuthor

I think stars are still free in pattern syntax. expr_assign(*{span...}, _) seems cute.

removed their assignment
on Jun 16, 2014
added a commit that references this issue on Dec 12, 2017

Auto merge of rust-lang#661 - Susurrus:mips_cmspar, r=alexcrichton

added a commit that references this issue on Jan 24, 2023
97e2213
added a commit that references this issue on Jun 3, 2025

Merge pull request rust-lang#661 from rust-lang/revert-656-public-tes…

a1fd037
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @marijnh@pcwalton@msullivan

        Issue actions

          Matching a struct pattern should autoderef · Issue #661 · rust-lang/rust