]> git.lizzy.rs Git - rust.git/commitdiff
fixed the build
authorAndre Bogus <bogusandre@gmail.com>
Sun, 20 Mar 2016 20:24:18 +0000 (21:24 +0100)
committerAndre Bogus <bogusandre@gmail.com>
Sun, 20 Mar 2016 20:24:18 +0000 (21:24 +0100)
src/bit_mask.rs
src/consts.rs
src/utils/hir.rs

index 02d428e834d75e04ce6f14eb9046f2de72a3d907..f96927f154845635d644c27610445a99128137c2 100644 (file)
@@ -270,7 +270,7 @@ fn fetch_int_literal(cx: &LateContext, lit: &Expr) -> Option<u64> {
                     _ => None,
                 }
             }
-            .and_then(|def_id| lookup_const_by_id(cx.tcx, def_id, None, None))
+            .and_then(|def_id| lookup_const_by_id(cx.tcx, def_id, None))
             .and_then(|(l, _ty)| fetch_int_literal(cx, l))
         }
         _ => None,
index 3e08f1b74ff847a0ad062ae463ce39957960a9db..e6bda7df8de9295175a3bd7dcf894cad39cf2353 100644 (file)
@@ -290,7 +290,7 @@ fn fetch_path(&mut self, e: &Expr) -> Option<Constant> {
             }
             // separate if lets to avoid double borrowing the def_map
             if let Some(id) = maybe_id {
-                if let Some((const_expr, _ty)) = lookup_const_by_id(lcx.tcx, id, None, None) {
+                if let Some((const_expr, _ty)) = lookup_const_by_id(lcx.tcx, id, None) {
                     let ret = self.expr(const_expr);
                     if ret.is_some() {
                         self.needed_resolution = true;
index b4b786f9743111f8031f0a10c62dc79b7bcf4204..fd8dc046eb52b2f7ed3d73a5de4202b1b824e041 100644 (file)
@@ -332,8 +332,8 @@ pub fn hash_expr(&mut self, e: &Expr) {
                 self.hash_expr(a);
                 self.hash_expr(i);
             }
-            ExprInlineAsm(_) => {
-                let c: fn(_) -> _ = ExprInlineAsm;
+            ExprInlineAsm(..) => {
+                let c: fn(_, _, _) -> _ = ExprInlineAsm;
                 c.hash(&mut self.s);
             }
             ExprIf(ref cond, ref t, ref e) => {