]> git.lizzy.rs Git - rust.git/commitdiff
PlaceElem<'tcx> should be Copy
authorSantiago Pastorino <spastorino@gmail.com>
Fri, 11 Oct 2019 19:19:48 +0000 (16:19 -0300)
committerSantiago Pastorino <spastorino@gmail.com>
Mon, 21 Oct 2019 21:53:44 +0000 (18:53 -0300)
src/librustc/mir/mod.rs

index 9ac1465cb0ba9a0f58dd773a7cdfe0591e28b73e..18619d407728442a58285130c22f7563b6254cc8 100644 (file)
@@ -1824,6 +1824,8 @@ fn is_indirect(&self) -> bool {
 /// and the index is a local.
 pub type PlaceElem<'tcx> = ProjectionElem<Local, Ty<'tcx>>;
 
+impl<'tcx> Copy for PlaceElem<'tcx> { }
+
 // At least on 64 bit systems, `PlaceElem` should not be larger than two pointers.
 #[cfg(target_arch = "x86_64")]
 static_assert_size!(PlaceElem<'_>, 16);