Remove type parameters from ExprField and ExprTupField
This commit is contained in:
parent
9a857b4472
commit
35316972ff
23 changed files with 125 additions and 254 deletions
|
|
@ -577,7 +577,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
|
|||
};
|
||||
|
||||
let id = Spanned { node: ident, span: field_span };
|
||||
self.expr(sp, ast::ExprField(expr, id, Vec::new()))
|
||||
self.expr(sp, ast::ExprField(expr, id))
|
||||
}
|
||||
fn expr_tup_field_access(&self, sp: Span, expr: P<ast::Expr>, idx: uint) -> P<ast::Expr> {
|
||||
let field_span = Span {
|
||||
|
|
@ -587,7 +587,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
|
|||
};
|
||||
|
||||
let id = Spanned { node: idx, span: field_span };
|
||||
self.expr(sp, ast::ExprTupField(expr, id, Vec::new()))
|
||||
self.expr(sp, ast::ExprTupField(expr, id))
|
||||
}
|
||||
fn expr_addr_of(&self, sp: Span, e: P<ast::Expr>) -> P<ast::Expr> {
|
||||
self.expr(sp, ast::ExprAddrOf(ast::MutImmutable, e))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue