about summary refs log tree commit diff
path: root/compiler/rustc_privacy/src
diff options
context:
space:
mode:
authorKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-01-18 15:43:20 -0700
committerKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-01-26 20:15:36 -0700
commite982971ff22fa190369b5f536403c37c52b10a26 (patch)
tree3b5002c6057b31c2c2d300a7ebf1bf48d22de281 /compiler/rustc_privacy/src
parentd7948c843de94245c794e8c63dd4301a78bb5ba3 (diff)
downloadrust-e982971ff22fa190369b5f536403c37c52b10a26.tar.gz
rust-e982971ff22fa190369b5f536403c37c52b10a26.zip
replace usages of fn_sig query with bound_fn_sig
Diffstat (limited to 'compiler/rustc_privacy/src')
-rw-r--r--compiler/rustc_privacy/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_privacy/src/lib.rs b/compiler/rustc_privacy/src/lib.rs
index 9a5d3cceb91..682985c6c07 100644
--- a/compiler/rustc_privacy/src/lib.rs
+++ b/compiler/rustc_privacy/src/lib.rs
@@ -198,7 +198,7 @@ where
                 // Something like `fn() -> Priv {my_func}` is considered a private type even if
                 // `my_func` is public, so we need to visit signatures.
                 if let ty::FnDef(..) = ty.kind() {
-                    tcx.fn_sig(def_id).visit_with(self)?;
+                    tcx.bound_fn_sig(def_id).subst_identity().visit_with(self)?;
                 }
                 // Inherent static methods don't have self type in substs.
                 // Something like `fn() {my_method}` type of the method