Skip to content

Commit 8fa4770

Browse files
committed
Track fn type and lifetime parameters in TyFnDef.
1 parent 2e603a2 commit 8fa4770

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clean/inline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pub fn build_external_trait(cx: &DocContext, tcx: &TyCtxt,
164164
fn build_external_function(cx: &DocContext, tcx: &TyCtxt, did: DefId) -> clean::Function {
165165
let t = tcx.lookup_item_type(did);
166166
let (decl, style, abi) = match t.ty.sty {
167-
ty::TyFnDef(_, ref f) => ((did, &f.sig).clean(cx), f.unsafety, f.abi),
167+
ty::TyFnDef(_, _, ref f) => ((did, &f.sig).clean(cx), f.unsafety, f.abi),
168168
_ => panic!("bad function"),
169169
};
170170

clean/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ impl<'tcx> Clean<Type> for ty::Ty<'tcx> {
16631663
mutability: mt.mutbl.clean(cx),
16641664
type_: box mt.ty.clean(cx),
16651665
},
1666-
ty::TyFnDef(_, ref fty) |
1666+
ty::TyFnDef(_, _, ref fty) |
16671667
ty::TyFnPtr(ref fty) => BareFunction(box BareFunctionDecl {
16681668
unsafety: fty.unsafety,
16691669
generics: Generics {

0 commit comments

Comments
 (0)