We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 886ac09 commit e856d89Copy full SHA for e856d89
src/parser/mod.rs
@@ -10245,9 +10245,10 @@ impl<'a> Parser<'a> {
10245
// Check if there's a comma, indicating multiple strings (e.g., AS 'obj_file', 'link_symbol')
10246
// This is used for C language functions: AS 'MODULE_PATHNAME', 'link_symbol'
10247
if self.consume_token(&Token::Comma) {
10248
- let mut exprs = vec![first_expr];
10249
- exprs.extend(self.parse_comma_separated(parse_string_expr)?);
10250
- Ok(Expr::Tuple(exprs))
+ Ok(Expr::Tuple(vec![
+ first_expr,
+ self.parse_comma_separated(parse_string_expr)?
10251
+ ]))
10252
} else {
10253
Ok(first_expr)
10254
}
0 commit comments