Skip to content

Commit 334da86

Browse files
authored
Rollup merge of rust-lang#146564 - cjgillot:mir-nolen, r=scottmcm
Remove Rvalue::Len again. Now that we have `RawPtrKind::FakeForPtrMetadata`, we can reimplement `Rvalue::Len` using `PtrMetadata(&raw const (fake) place)`. r? ``@scottmcm``
2 parents 062fd1b + 0ff5f46 commit 334da86

File tree

1 file changed

+0
-1
lines changed
  • compiler/rustc_public/src/unstable/convert/stable

1 file changed

+0
-1
lines changed

compiler/rustc_public/src/unstable/convert/stable/mir.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ impl<'tcx> Stable<'tcx> for mir::Rvalue<'tcx> {
215215
mutability.stable(tables, cx),
216216
place.stable(tables, cx),
217217
),
218-
Len(place) => crate::mir::Rvalue::Len(place.stable(tables, cx)),
219218
Cast(cast_kind, op, ty) => crate::mir::Rvalue::Cast(
220219
cast_kind.stable(tables, cx),
221220
op.stable(tables, cx),

0 commit comments

Comments
 (0)