diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2016-02-16 18:36:41 +0200 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2016-03-09 16:45:28 +0200 |
| commit | ffa0860467aff2c1e5e2f6594cd7cf554da26c5e (patch) | |
| tree | d13a015c72e9d89513b1f4c34cf17d615b4f0f13 /src/librustdoc/clean/inline.rs | |
| parent | b423a0f9ef488ca4cd9ff620a44566bb441eb21f (diff) | |
| download | rust-ffa0860467aff2c1e5e2f6594cd7cf554da26c5e.tar.gz rust-ffa0860467aff2c1e5e2f6594cd7cf554da26c5e.zip | |
Track fn type and lifetime parameters in TyFnDef.
Diffstat (limited to 'src/librustdoc/clean/inline.rs')
| -rw-r--r-- | src/librustdoc/clean/inline.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/inline.rs b/src/librustdoc/clean/inline.rs index 90cdd7e5833..c14e4af8103 100644 --- a/src/librustdoc/clean/inline.rs +++ b/src/librustdoc/clean/inline.rs @@ -164,7 +164,7 @@ pub fn build_external_trait(cx: &DocContext, tcx: &TyCtxt, fn build_external_function(cx: &DocContext, tcx: &TyCtxt, did: DefId) -> clean::Function { let t = tcx.lookup_item_type(did); let (decl, style, abi) = match t.ty.sty { - ty::TyFnDef(_, ref f) => ((did, &f.sig).clean(cx), f.unsafety, f.abi), + ty::TyFnDef(_, _, ref f) => ((did, &f.sig).clean(cx), f.unsafety, f.abi), _ => panic!("bad function"), }; |
