diff options
author | Kyle Matsuda <kyle.yoshio.matsuda@gmail.com> | 2023-01-19 12:52:52 -0700 |
---|---|---|
committer | Kyle Matsuda <kyle.yoshio.matsuda@gmail.com> | 2023-01-26 20:28:31 -0700 |
commit | a969c194d87f0fe1c30e5eeec981414e8b11dc47 (patch) | |
tree | 81f5854b62a6a2822174dda3b139c8a2f079c05a /compiler/rustc_privacy | |
parent | ab40ba2fb1c034554f12a0f8ada3f5f3e42ad592 (diff) | |
download | rust-a969c194d87f0fe1c30e5eeec981414e8b11dc47.tar.gz |
fix up subst_identity vs skip_binder; add some FIXMEs as identified in review
Diffstat (limited to 'compiler/rustc_privacy')
-rw-r--r-- | compiler/rustc_privacy/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_privacy/src/lib.rs b/compiler/rustc_privacy/src/lib.rs index 5c701bef304..e969bb6db9e 100644 --- a/compiler/rustc_privacy/src/lib.rs +++ b/compiler/rustc_privacy/src/lib.rs @@ -198,6 +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() { + // FIXME: this should probably use `substs` from `FnDef` tcx.fn_sig(def_id).subst_identity().visit_with(self)?; } // Inherent static methods don't have self type in substs. |