Track fn type and lifetime parameters in TyFnDef.
This commit is contained in:
parent
b423a0f9ef
commit
ffa0860467
44 changed files with 130 additions and 116 deletions
|
|
@ -135,9 +135,10 @@ pub fn enc_ty<'a, 'tcx>(w: &mut Cursor<Vec<u8>>, cx: &ctxt<'a, 'tcx>, t: Ty<'tcx
|
|||
ty::TyStr => {
|
||||
write!(w, "v");
|
||||
}
|
||||
ty::TyFnDef(def_id, f) => {
|
||||
ty::TyFnDef(def_id, substs, f) => {
|
||||
write!(w, "F");
|
||||
write!(w, "{}|", (cx.ds)(def_id));
|
||||
enc_substs(w, cx, substs);
|
||||
enc_bare_fn_ty(w, cx, f);
|
||||
}
|
||||
ty::TyFnPtr(f) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue