about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Jasper <mjjasper1@gmail.com>2019-01-02 21:28:08 +0000
committerMatthew Jasper <mjjasper1@gmail.com>2019-01-02 21:28:08 +0000
commit8ca83e915e19f14efd40d9832cb486a4da1bee19 (patch)
treefa7cc615c5cc8f1e0248503d4b5c9c62fdc2bacd
parent5dfc5f205c5b2077a23dcbb3d42456ffa80e9bec (diff)
downloadrust-8ca83e915e19f14efd40d9832cb486a4da1bee19.tar.gz
rust-8ca83e915e19f14efd40d9832cb486a4da1bee19.zip
Add missing 'static bound for the Machine trait
-rw-r--r--src/librustc_mir/interpret/machine.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/interpret/machine.rs b/src/librustc_mir/interpret/machine.rs
index 1242c41a356..26d526a6f5f 100644
--- a/src/librustc_mir/interpret/machine.rs
+++ b/src/librustc_mir/interpret/machine.rs
@@ -76,7 +76,7 @@ pub trait Machine<'a, 'mir, 'tcx>: Sized {
     type MemoryExtra: Default;
 
     /// Extra data stored in every allocation.
-    type AllocExtra: AllocationExtra<Self::PointerTag, Self::MemoryExtra>;
+    type AllocExtra: AllocationExtra<Self::PointerTag, Self::MemoryExtra> + 'static;
 
     /// Memory's allocation map
     type MemoryMap: