add delay_span_bug

This commit is contained in:
yukang 2023-03-21 20:05:34 +08:00
parent 8126ccb77d
commit 7bffe945af

View File

@ -712,7 +712,13 @@ fn compute_min_captures(
}
}
// return Equal for two identical projections
self.tcx.sess.delay_span_bug(
closure_span,
&format!(
"two identical projections: ({:?}, {:?})",
capture1.place.projections, capture2.place.projections
),
);
std::cmp::Ordering::Equal
});
}