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> {
12641264 type IntoIter = std:: iter:: Zip < std:: vec:: IntoIter < Predicate < ' tcx > > , std:: vec:: IntoIter < Span > > ;
12651265
12661266 fn into_iter ( self ) -> Self :: IntoIter {
1267+ debug_assert_eq ! ( self . predicates. len( ) , self . spans. len( ) ) ;
12671268 std:: iter:: zip ( self . predicates , self . spans )
12681269 }
12691270}
@@ -1277,6 +1278,7 @@ impl<'a, 'tcx> IntoIterator for &'a InstantiatedPredicates<'tcx> {
12771278 > ;
12781279
12791280 fn into_iter ( self ) -> Self :: IntoIter {
1281+ debug_assert_eq ! ( self . predicates. len( ) , self . spans. len( ) ) ;
12801282 std:: iter:: zip ( self . predicates . iter ( ) . copied ( ) , self . spans . iter ( ) . copied ( ) )
12811283 }
12821284}
You can’t perform that action at this time.
0 commit comments