]> git.lizzy.rs Git - rust.git/commitdiff
fix for pre-NLL rustc
authorRalf Jung <post@ralfj.de>
Wed, 31 Oct 2018 20:07:17 +0000 (21:07 +0100)
committerRalf Jung <post@ralfj.de>
Mon, 5 Nov 2018 08:17:48 +0000 (09:17 +0100)
src/librustc_mir/interpret/validity.rs

index 7caf81788dd2314783e45276731423915b5319ff..8919db5a6d353c68a31b7217698052238934f537 100644 (file)
@@ -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