Skip to content

Commit 54802fa

Browse files
committed
Use a more appropriate parameter environment
1 parent af72466 commit 54802fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2105,7 +2105,7 @@ impl<'tcx> Operand<'tcx> {
21052105
span,
21062106
ty,
21072107
user_ty: None,
2108-
literal: ty::Const::zero_sized(tcx, ParamEnv::empty().and(ty)),
2108+
literal: ty::Const::zero_sized(tcx, tcx.param_env(def_id).and(ty)),
21092109
})
21102110
}
21112111

0 commit comments

Comments
 (0)