mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Make use of new ArrayRef::consume_* functions. (#5975)
Minor code simplifications.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user