This commit is contained in:
Folkert 2020-11-13 01:59:09 +01:00
parent 8db74298a2
commit 815b942f29
3 changed files with 4 additions and 26 deletions

View file

@ -987,6 +987,8 @@ fn path_to_expr_help<'a>(
other => vec![other.clone()],
};
debug_assert!(*index < field_layouts.len() as u64);
let inner_layout = match &field_layouts[*index as usize] {
Layout::RecursivePointer => layout.clone(),
other => other.clone(),