]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/mod.rs
refactor `ParamEnv::empty(Reveal)` into two distinct methods
[rust.git] / src / librustc_typeck / check / mod.rs
index 1ea1ff1fae24df1a533514a58f67b3a5d2dfabdd..48591998a1fb8972eeccfb76dae25aa578374fe9 100644 (file)
@@ -3997,7 +3997,7 @@ fn check_expr_kind(&self,
           }
           hir::ExprRepeat(ref element, count) => {
             let count_def_id = tcx.hir.body_owner_def_id(count);
-            let param_env = ty::ParamEnv::empty(traits::Reveal::UserFacing);
+            let param_env = ty::ParamEnv::empty();
             let substs = Substs::identity_for_item(tcx.global_tcx(), count_def_id);
             let instance = ty::Instance::resolve(
                 tcx.global_tcx(),