]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/mod.rs
Auto merge of #26232 - eefriedman:rename-sty, r=nrc
[rust.git] / src / librustc_typeck / check / mod.rs
index 8493715aa4bc3733cf9a2f25edb77f84d9537dfb..9cab4a477321745abaf6f6d5cec37f0e9dad3077 100644 (file)
@@ -1626,10 +1626,9 @@ pub fn to_ty(&self, ast_t: &ast::Ty) -> Ty<'tcx> {
         let t = ast_ty_to_ty(self, self, ast_t);
 
         let mut bounds_checker = wf::BoundsChecker::new(self,
-                                                        ast_t.span,
                                                         self.body_id,
                                                         None);
-        bounds_checker.check_ty(t);
+        bounds_checker.check_ty(t, ast_t.span);
 
         t
     }