mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Switch to something that won't trigger the panic detector
This commit is contained in:
parent
2464ce6856
commit
9d3f232794
1 changed files with 2 additions and 1 deletions
|
@ -393,7 +393,8 @@ fn loc_type_in_parens<'a>(
|
|||
state = new_state;
|
||||
let end = state.pos();
|
||||
|
||||
let last = fields.pop().expect("must have at least one tuple field");
|
||||
let last = fields[fields.len() - 1];
|
||||
fields.pop();
|
||||
let region = Region::between(last.region.start(), end);
|
||||
fields.push(Loc::at(
|
||||
region,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue