]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/check/callee.rs
Auto merge of #93717 - pietroalbini:pa-ci-profiler, r=Mark-Simulacrum
[rust.git] / compiler / rustc_typeck / src / check / callee.rs
index 90b59df472cadf0f32d8fa2893c28b2174e7b915..0a84d41b4f31caa0cf99b50ecd5fb750761dd27a 100644 (file)
@@ -339,7 +339,7 @@ fn confirm_builtin_call(
     ) -> Ty<'tcx> {
         let (fn_sig, def_id) = match *callee_ty.kind() {
             ty::FnDef(def_id, subst) => {
-                let fn_sig = self.tcx.fn_sig(def_id).subst(self.tcx, subst);
+                let fn_sig = self.tcx.bound_fn_sig(def_id).subst(self.tcx, subst);
 
                 // Unit testing: function items annotated with
                 // `#[rustc_evaluate_where_clauses]` trigger special output