From fdc3a3ed0cf7ac9082bed9a70b733751e40c8137 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 31 Oct 2018 21:07:17 +0100 Subject: [PATCH] fix for pre-NLL rustc --- src/librustc_mir/interpret/validity.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_mir/interpret/validity.rs b/src/librustc_mir/interpret/validity.rs index 7caf81788dd2..8919db5a6d35 100644 --- a/src/librustc_mir/interpret/validity.rs +++ b/src/librustc_mir/interpret/validity.rs @@ -133,7 +133,7 @@ fn scalar_format(value: ScalarMaybeUndef) -> 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