Skip to content

Commit 4a89558

Browse files
RalfJungoli-obk
authored andcommitted
add comment
1 parent b6cb9b6 commit 4a89558

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_lint/builtin.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1633,6 +1633,7 @@ fn check_const(cx: &LateContext, body_id: hir::BodyId, what: &str) {
16331633
let def_id = cx.tcx.hir.body_owner_def_id(body_id);
16341634
let is_static = cx.tcx.is_static(def_id).is_some();
16351635
let param_env = if is_static {
1636+
// Use the same param_env as `codegen_static_initializer`, to reuse the cache.
16361637
ty::ParamEnv::reveal_all()
16371638
} else {
16381639
cx.tcx.param_env(def_id)

0 commit comments

Comments
 (0)