sub_branch_bindings

Function sub_branch_bindings 

Source
fn sub_branch_bindings<'tcx>(
    parents: &[PatternExtraData<'tcx>],
    leaf_bindings: &[SubpatternBindings<'tcx>],
) -> Vec<Binding<'tcx>>
Expand description

Collects the bindings for a MatchTreeSubBranch, preserving the order they appear in the pattern, as though the or-alternatives chosen in this sub-branch were inlined.