change fn_sig query to use EarlyBinder; remove bound_fn_sig query; add EarlyBinder to fn_sig in metadata
This commit is contained in:
parent
e982971ff2
commit
c2414dfaa4
80 changed files with 142 additions and 152 deletions
|
@ -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.bound_fn_sig(def_id).subst_identity().visit_with(self)?;
|
||||
tcx.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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue