remove dummy UniverseInfo causes from type checker type_check

This was pre-filling causes for universes that could already exist in
the InferCtxt. We don't need to do that anymore: `other()` is the default when
there is no registered universe cause.
This commit is contained in:
Rémy Rakic 2023-08-31 11:16:35 +00:00
parent 407695132c
commit ae963b560f

View File

@ -163,10 +163,6 @@ pub(crate) fn type_check<'mir, 'tcx>(
debug!(?normalized_inputs_and_output);
for u in ty::UniverseIndex::ROOT..=infcx.universe() {
constraints.universe_causes.insert(u, UniverseInfo::other());
}
let mut borrowck_context = BorrowCheckContext {
universal_regions,
location_table,