From ec8ea22c7f59fd898670060bceb6810cef68ca0a Mon Sep 17 00:00:00 2001 From: faineance Date: Sat, 28 Nov 2015 19:02:07 +0000 Subject: [breaking-change] move ast_util functions to methods --- src/libsyntax/parse/parser.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 7502a8cbc35..9398f1a5733 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2872,7 +2872,7 @@ impl<'a> Parser<'a> { fn check_no_chained_comparison(&mut self, lhs: &Expr, outer_op: &AssocOp) { debug_assert!(outer_op.is_comparison()); match lhs.node { - ExprBinary(op, _, _) if ast_util::is_comparison_binop(op.node) => { + ExprBinary(op, _, _) if op.node.is_comparison() => { // respan to include both operators let op_span = mk_sp(op.span.lo, self.span.hi); self.span_err(op_span, @@ -4000,7 +4000,7 @@ impl<'a> Parser<'a> { } }) } else { - Ok(ast_util::empty_generics()) + Ok(ast::Generics::default()) } } -- cgit 1.4.1-3-g733a5