_ => 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,
}
// 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;
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) => {