PlaceElem<'tcx> should be Copy
This commit is contained in:
parent
10f12fe3e7
commit
0b5ee56da8
1 changed files with 2 additions and 0 deletions
|
|
@ -1824,6 +1824,8 @@ impl<V, T> ProjectionElem<V, T> {
|
|||
/// 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue