Switch to something that won't trigger the panic detector

This commit is contained in:
Joshua Warner 2024-12-25 09:33:07 -05:00
parent 2464ce6856
commit 9d3f232794
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD

View file

@ -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,