]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_lint/types.rs
Auto merge of #29291 - petrochenkov:privacy, r=alexcrichton
[rust.git] / src / librustc_lint / types.rs
index feb4b0afd8afcf2ee7060f18dd80e3c865e52786..abbb733d8848da10d40941142d93e820d8e7dabc 100644 (file)
@@ -120,7 +120,7 @@ fn check_expr(&mut self, cx: &LateContext, e: &hir::Expr) {
                             if let ast::LitInt(shift, _) = lit.node { shift >= bits }
                             else { false }
                         } else {
-                            match eval_const_expr_partial(cx.tcx, &r, ExprTypeChecked) {
+                            match eval_const_expr_partial(cx.tcx, &r, ExprTypeChecked, None) {
                                 Ok(ConstVal::Int(shift)) => { shift as u64 >= bits },
                                 Ok(ConstVal::Uint(shift)) => { shift >= bits },
                                 _ => { false }
@@ -671,4 +671,3 @@ fn check_foreign_fn(cx: &LateContext, decl: &hir::FnDecl) {
         }
     }
 }
-