Skip to content

rustc: Handle struct patterns where the expected type is an enum - #6200

Merged
bors merged 2 commits into
rust-lang:incomingfrom
catamorphism:issue-5358
May 4, 2013
Merged

rustc: Handle struct patterns where the expected type is an enum#6200
bors merged 2 commits into
rust-lang:incomingfrom
catamorphism:issue-5358

Conversation

@catamorphism

Copy link
Copy Markdown
Contributor

r? @nikomatsakis Previously, rustc would ICE if you matched on an enum-typed thing
with a structure pattern. Error out correctly. This will close#5358

Previously, rustc would ICE if you matched on an enum-typed thing
with a structure pattern. Error out correctly.
bors added a commit that referenced this pull request May 3, 2013
r? @nikomatsakis Previously, rustc would ICE if you matched on an enum-typed thing
with a structure pattern. Error out correctly. This will close#5358
@borsbors closed this May 4, 2013
@bors
bors merged commit 32b3d3e into rust-lang:incomingMay 4, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 3, 2020
…=phansch
fix the error-causing suggestion of 'borrowed_box'
Fixesrust-lang#3128
Fix the suggestion of 'borrowed_box', which causes a syntax error because it misses necessary parentheses.
---
changelog: Fix the error-causing suggestion of 'borrowed_box'
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
6200: Update crates r=kjeremy a=kjeremy
Co-authored-by: kjeremy <kjeremy@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@catamorphism@bors