We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b28edb commit e1533a2Copy full SHA for e1533a2
compiler/rustc_middle/src/ty/mod.rs
@@ -1264,6 +1264,7 @@ impl<'tcx> IntoIterator for InstantiatedPredicates<'tcx> {
1264
type IntoIter = std::iter::Zip<std::vec::IntoIter<Predicate<'tcx>>, std::vec::IntoIter<Span>>;
1265
1266
fn into_iter(self) -> Self::IntoIter {
1267
+ debug_assert_eq!(self.predicates.len(), self.spans.len());
1268
std::iter::zip(self.predicates, self.spans)
1269
}
1270
@@ -1277,6 +1278,7 @@ impl<'a, 'tcx> IntoIterator for &'a InstantiatedPredicates<'tcx> {
1277
1278
>;
1279
1280
1281
1282
std::iter::zip(self.predicates.iter().copied(), self.spans.iter().copied())
1283
1284
0 commit comments