about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2018-10-31 21:07:17 +0100
committerRalf Jung <post@ralfj.de>2018-11-05 09:17:48 +0100
commitfdc3a3ed0cf7ac9082bed9a70b733751e40c8137 (patch)
tree2f7ab55fb70a5f5acbd7542b98743668bc640be1 /src
parentc8e471fac3f803d7c332ffea677dcd2b585910a3 (diff)
downloadrust-fdc3a3ed0cf7ac9082bed9a70b733751e40c8137.tar.gz
rust-fdc3a3ed0cf7ac9082bed9a70b733751e40c8137.zip
fix for pre-NLL rustc
Diffstat (limited to 'src')
-rw-r--r--src/librustc_mir/interpret/validity.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/interpret/validity.rs b/src/librustc_mir/interpret/validity.rs
index 7caf81788dd..8919db5a6d3 100644
--- a/src/librustc_mir/interpret/validity.rs
+++ b/src/librustc_mir/interpret/validity.rs
@@ -133,7 +133,7 @@ fn scalar_format<Tag>(value: ScalarMaybeUndef<Tag>) -> String {
     }
 }
 
-struct ValidityVisitor<'rt, 'a, 'tcx, Tag> {
+struct ValidityVisitor<'rt, 'a, 'tcx: 'a+'rt, Tag: 'static> {
     op: OpTy<'tcx, Tag>,
     /// The `path` may be pushed to, but the part that is present when a function
     /// starts must not be changed!  `visit_fields` and `visit_array` rely on