File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
compiler/rustc_middle/src/ty Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1264,6 +1264,7 @@ impl<'tcx> IntoIterator for InstantiatedPredicates<'tcx> {
1264
1264
type IntoIter = std:: iter:: Zip < std:: vec:: IntoIter < Predicate < ' tcx > > , std:: vec:: IntoIter < Span > > ;
1265
1265
1266
1266
fn into_iter ( self ) -> Self :: IntoIter {
1267
+ debug_assert_eq ! ( self . predicates. len( ) , self . spans. len( ) ) ;
1267
1268
std:: iter:: zip ( self . predicates , self . spans )
1268
1269
}
1269
1270
}
@@ -1277,6 +1278,7 @@ impl<'a, 'tcx> IntoIterator for &'a InstantiatedPredicates<'tcx> {
1277
1278
> ;
1278
1279
1279
1280
fn into_iter ( self ) -> Self :: IntoIter {
1281
+ debug_assert_eq ! ( self . predicates. len( ) , self . spans. len( ) ) ;
1280
1282
std:: iter:: zip ( self . predicates . iter ( ) . copied ( ) , self . spans . iter ( ) . copied ( ) )
1281
1283
}
1282
1284
}
You can’t perform that action at this time.
0 commit comments