about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorfaineance <faineance@users.noreply.github.com>2015-11-28 19:02:07 +0000
committerfaineance <faineance@users.noreply.github.com>2015-12-14 21:15:01 +0000
commitec8ea22c7f59fd898670060bceb6810cef68ca0a (patch)
treef16a49f657067f0503bee1673d087d4276bdb8d7 /src/libsyntax/parse
parent9ea4b4f01f54ec741509c624a8aa62d7a47f7eac (diff)
downloadrust-ec8ea22c7f59fd898670060bceb6810cef68ca0a.tar.gz
rust-ec8ea22c7f59fd898670060bceb6810cef68ca0a.zip
[breaking-change] move ast_util functions to methods
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 2 insertions, 2 deletions
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())
         }
     }