Skip to content

Commit 5be2bdb

Browse files
committed
One must always remember to clean up after themselves
1 parent 5ea91ac commit 5be2bdb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/librustc/infer/mod.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -924,11 +924,12 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
924924
// used in a path such as `Foo::<T, U>::new()` will
925925
// use an inference variable for `C` with `[T, U]`
926926
// as the substitutions for the default, `(T, U)`.
927-
let ty_var_id = self.type_variables
928-
.borrow_mut()
929-
.new_var(self.universe(),
930-
false,
931-
TypeVariableOrigin::TypeParameterDefinition(span, param.name));
927+
let ty_var_id =
928+
self.type_variables
929+
.borrow_mut()
930+
.new_var(self.universe(),
931+
false,
932+
TypeVariableOrigin::TypeParameterDefinition(span, param.name));
932933

933934
self.tcx.mk_var(ty_var_id).into()
934935
}

0 commit comments

Comments
 (0)