Support parentheses in patterns under feature gate
Improve recovery for trailing comma after `..`
This commit is contained in:
@@ -1148,6 +1148,7 @@ pub fn noop_fold_pat<T: Folder>(p: P<Pat>, folder: &mut T) -> P<Pat> {
|
||||
slice.map(|x| folder.fold_pat(x)),
|
||||
after.move_map(|x| folder.fold_pat(x)))
|
||||
}
|
||||
PatKind::Paren(inner) => PatKind::Paren(folder.fold_pat(inner)),
|
||||
PatKind::Mac(mac) => PatKind::Mac(folder.fold_mac(mac))
|
||||
},
|
||||
span: folder.new_span(span)
|
||||
|
||||
Reference in New Issue
Block a user