We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d86d04 commit 7385f21Copy full SHA for 7385f21
src/librustc_mir/hair/pattern/_match.rs
@@ -228,7 +228,7 @@ impl LiteralExpander<'tcx> {
228
ConstValue::Slice {
229
data: self.tcx.alloc_map.lock().unwrap_memory(p.alloc_id),
230
start: p.offset.bytes().try_into().unwrap(),
231
- end: n.eval_usize(self.tcx, ty::ParamEnv::reveal_all()).try_into().unwrap(),
+ end: n.eval_usize(self.tcx, ty::ParamEnv::empty()).try_into().unwrap(),
232
}
233
},
234
// fat pointers stay the same
0 commit comments