Skip to main content

is_pattern_src

Function is_pattern_src 

Source
pub fn is_pattern_src(p: &Pattern) -> String
Expand description

#2641: a pattern after is. A record pattern there must be parenthesised — its { would otherwise read as the block that follows the condition — so a record, or an or-pattern with a record alternative, keeps the parentheses the parser dropped as transparent grouping.