Skip to content

Commit 0b5ee56

Browse files
committed
PlaceElem<'tcx> should be Copy
1 parent 10f12fe commit 0b5ee56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc/mir/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1824,6 +1824,8 @@ impl<V, T> ProjectionElem<V, T> {
18241824
/// and the index is a local.
18251825
pub type PlaceElem<'tcx> = ProjectionElem<Local, Ty<'tcx>>;
18261826

1827+
impl<'tcx> Copy for PlaceElem<'tcx> { }
1828+
18271829
// At least on 64 bit systems, `PlaceElem` should not be larger than two pointers.
18281830
#[cfg(target_arch = "x86_64")]
18291831
static_assert_size!(PlaceElem<'_>, 16);

0 commit comments

Comments
 (0)