Skip to content

Commit 222dd17

Browse files
committed
add comment
1 parent 5ce5f31 commit 222dd17

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
@@ -1632,6 +1632,7 @@ fn check_const(cx: &LateContext, body_id: hir::BodyId, what: &str) {
16321632
let def_id = cx.tcx.hir.body_owner_def_id(body_id);
16331633
let is_static = cx.tcx.is_static(def_id).is_some();
16341634
let param_env = if is_static {
1635+
// Use the same param_env as `codegen_static_initializer`, to reuse the cache.
16351636
ty::ParamEnv::reveal_all()
16361637
} else {
16371638
cx.tcx.param_env(def_id)

0 commit comments

Comments
 (0)