Make use of new ArrayRef::consume_* functions. (#5975)

Minor code simplifications.
This commit is contained in:
Richard Smith authored and GitHub committed 2025-08-21 21:41:53 +00:00
1 parent 046fbbcb29
commit 816d4589cd
7 files changed
+9 -14

No files matched your search

+1 -1
View File
@@ -140,7 +140,7 @@ auto CheckFunctionDefinitionSignature(Context& context,
SemIR::LocId(function.return_slot_pattern_id),
function, SemIR::SpecificId::None);
// Don't re-check the return type below.
params_to_complete = params_to_complete.drop_back();
params_to_complete.consume_back();
}
// Check the parameter types are complete.