replace usages of fn_sig query with bound_fn_sig
This commit is contained in:
parent
d7948c843d
commit
e982971ff2
66 changed files with 147 additions and 113 deletions
|
@ -119,7 +119,11 @@ impl<'a, 'tcx> ConstraintContext<'a, 'tcx> {
|
|||
}
|
||||
|
||||
ty::FnDef(..) => {
|
||||
self.add_constraints_from_sig(current_item, tcx.fn_sig(def_id), self.covariant);
|
||||
self.add_constraints_from_sig(
|
||||
current_item,
|
||||
tcx.bound_fn_sig(def_id.into()).subst_identity(),
|
||||
self.covariant,
|
||||
);
|
||||
}
|
||||
|
||||
ty::Error(_) => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue