special-case rose tree field access

This commit is contained in:
Folkert 2021-06-16 23:16:14 +02:00
parent a1231058da
commit 11ed2cbcf8
5 changed files with 14 additions and 3 deletions

View file

@ -597,7 +597,7 @@ fn to_relevant_branch_help<'a>(
start.extend(end);
}
}
Wrapped::RecordOrSingleTagUnion => {
Wrapped::RecordOrSingleTagUnion | Wrapped::LikeARoseTree => {
let sub_positions = arguments.into_iter().enumerate().map(
|(index, (pattern, _))| {
let mut new_path = path.to_vec();