]> git.lizzy.rs Git - rust.git/commitdiff
One must always remember to clean up after themselves
authorvarkor <github@varkor.com>
Tue, 15 May 2018 13:52:53 +0000 (14:52 +0100)
committervarkor <github@varkor.com>
Tue, 15 May 2018 13:52:53 +0000 (14:52 +0100)
src/librustc/infer/mod.rs

index 38db58b1e0006b319ffbd9e40c563f1e9a4559c7..1cc65dcfd1027003ae9258d07fe993d21e0c32e8 100644 (file)
@@ -924,11 +924,12 @@ pub fn var_for_def(&self,
                 // used in a path such as `Foo::<T, U>::new()` will
                 // use an inference variable for `C` with `[T, U]`
                 // as the substitutions for the default, `(T, U)`.
-                let ty_var_id = self.type_variables
-                                    .borrow_mut()
-                                    .new_var(self.universe(),
-                                             false,
-                                             TypeVariableOrigin::TypeParameterDefinition(span, param.name));
+                let ty_var_id =
+                    self.type_variables
+                        .borrow_mut()
+                        .new_var(self.universe(),
+                                    false,
+                                    TypeVariableOrigin::TypeParameterDefinition(span, param.name));
 
                 self.tcx.mk_var(ty_var_id).into()
             }