mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 11:41:05 +01:00
Stop using std::pair in the implementation of tuples (#479)
This commit is contained in:
@@ -323,11 +323,7 @@ statement_list:
|
||||
;
|
||||
return_type:
|
||||
// Empty
|
||||
{
|
||||
$$ = Carbon::MakeTuple(
|
||||
yylineno,
|
||||
new std::vector<std::pair<std::string, const Carbon::Expression*>>());
|
||||
}
|
||||
{ $$ = Carbon::MakeUnit(yylineno); }
|
||||
| ARROW expression
|
||||
{ $$ = $2; }
|
||||
;
|
||||
@@ -362,9 +358,7 @@ alternative:
|
||||
| identifier
|
||||
{
|
||||
$$ = new std::pair<std::string, const Carbon::Expression*>(
|
||||
$1, Carbon::MakeTuple(
|
||||
yylineno,
|
||||
new std::vector<std::pair<std::string, const Carbon::Expression*>>()));
|
||||
$1, Carbon::MakeUnit(yylineno));
|
||||
}
|
||||
;
|
||||
alternative_list:
|
||||
|
||||
Reference in New Issue
Block a user