]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/check/gather_locals.rs
Auto merge of #82127 - tgnottingham:tune-ahead-of-time-codegen, r=varkor
[rust.git] / compiler / rustc_typeck / src / check / gather_locals.rs
index af552389de02491def93f0a9c6a247d11645aa21..825ebc19fa6da93569c252f7696cf4d8dcc57b7a 100644 (file)
@@ -59,16 +59,13 @@ fn visit_local(&mut self, local: &'tcx hir::Local<'tcx>) {
                 let o_ty = self.fcx.to_ty(&ty);
 
                 let revealed_ty = if self.fcx.tcx.features().impl_trait_in_bindings {
-                    self.fcx.instantiate_opaque_types_from_value(self.parent_id, &o_ty, ty.span)
+                    self.fcx.instantiate_opaque_types_from_value(self.parent_id, o_ty, ty.span)
                 } else {
                     o_ty
                 };
 
-                let c_ty = self
-                    .fcx
-                    .inh
-                    .infcx
-                    .canonicalize_user_type_annotation(&UserType::Ty(revealed_ty));
+                let c_ty =
+                    self.fcx.inh.infcx.canonicalize_user_type_annotation(UserType::Ty(revealed_ty));
                 debug!(
                     "visit_local: ty.hir_id={:?} o_ty={:?} revealed_ty={:?} c_ty={:?}",
                     ty.hir_id, o_ty, revealed_ty, c_ty