add delay_span_bug
This commit is contained in:
parent
8126ccb77d
commit
7bffe945af
@ -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
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user