From 8ca83e915e19f14efd40d9832cb486a4da1bee19 Mon Sep 17 00:00:00 2001 From: Matthew Jasper Date: Wed, 2 Jan 2019 21:28:08 +0000 Subject: [PATCH] Add missing 'static bound for the Machine trait --- src/librustc_mir/interpret/machine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; + type AllocExtra: AllocationExtra + 'static; /// Memory's allocation map type MemoryMap: -- GitLab