]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_middle/src/ty/assoc.rs
Rollup merge of #107553 - edward-shen:edward-shen/suggest-null-ptr, r=WaffleLapkin
[rust.git] / compiler / rustc_middle / src / ty / assoc.rs
index bab084f6192242e92f28f6bb60248ab3bfba9644..71cecfb558fb282c48055ff139d96fb399c88a07 100644 (file)
@@ -79,7 +79,7 @@ pub fn signature(&self, tcx: TyCtxt<'_>) -> String {
                 // late-bound regions, and we don't want method signatures to show up
                 // `as for<'r> fn(&'r MyType)`. Pretty-printing handles late-bound
                 // regions just fine, showing `fn(&MyType)`.
-                tcx.bound_fn_sig(self.def_id).subst_identity().skip_binder().to_string()
+                tcx.fn_sig(self.def_id).subst_identity().skip_binder().to_string()
             }
             ty::AssocKind::Type => format!("type {};", self.name),
             ty::AssocKind::Const => {