Skip to content

Commit ae963b5

Browse files
committed
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.
1 parent 4076951 commit ae963b5

File tree

1 file changed

+0
-4
lines changed
  • compiler/rustc_borrowck/src/type_check

1 file changed

+0
-4
lines changed

compiler/rustc_borrowck/src/type_check/mod.rs

-4
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,6 @@ pub(crate) fn type_check<'mir, 'tcx>(
163163

164164
debug!(?normalized_inputs_and_output);
165165

166-
for u in ty::UniverseIndex::ROOT..=infcx.universe() {
167-
constraints.universe_causes.insert(u, UniverseInfo::other());
168-
}
169-
170166
let mut borrowck_context = BorrowCheckContext {
171167
universal_regions,
172168
location_table,

0 commit comments

Comments
 (0)