Skip to content

Commit 7385f21

Browse files
committed
Fixup: eval_usize needs param env
1 parent 2d86d04 commit 7385f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/librustc_mir/hair/pattern/_match.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ impl LiteralExpander<'tcx> {
228228
ConstValue::Slice {
229229
data: self.tcx.alloc_map.lock().unwrap_memory(p.alloc_id),
230230
start: p.offset.bytes().try_into().unwrap(),
231-
end: n.eval_usize(self.tcx, ty::ParamEnv::reveal_all()).try_into().unwrap(),
231+
end: n.eval_usize(self.tcx, ty::ParamEnv::empty()).try_into().unwrap(),
232232
}
233233
},
234234
// fat pointers stay the same

0 commit comments

Comments
 (0)