-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
Description
This might seem a bit strange but not allowing them has brought up some strange results for me.
The equivalent can be done with a plain match statement which is defiantly not as clean. In the docs it says to just use a plane let
statement, but that is not always possible because of macros. If you accept a pattern in a macro then the ability to have the following -
if let $p = $val {
$b
}
instead of
#[allow(unreachable_patterns)]
match $val {
$p => {
$b;
break;
},
_ => ()
}
qnighy and Nokel81
Metadata
Metadata
Assignees
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.