diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-04-01 14:04:20 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-04-01 15:38:59 -0700 |
| commit | 0304e15e5c39654346e827c2bb25ca41ed310c86 (patch) | |
| tree | 2e8b8ea5a0daf51f819acaab9b9e2572459e2a60 /src/librustdoc | |
| parent | 655634e6ab00707ef98034dcfb32000cbfa7a01c (diff) | |
| download | rust-0304e15e5c39654346e827c2bb25ca41ed310c86.tar.gz rust-0304e15e5c39654346e827c2bb25ca41ed310c86.zip | |
Test fixes and rebase conflicts, round 1
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index e4d9fac5b9c..e0ed83f4019 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -2392,7 +2392,7 @@ fn resolve_type(cx: &DocContext, }; match def { - def::DefSelfTy(..) => { + def::DefSelfTy(..) if path.segments.len() == 1 => { return Generic(token::get_name(special_idents::type_self.name).to_string()); } def::DefPrimTy(p) => match p { @@ -2412,7 +2412,9 @@ fn resolve_type(cx: &DocContext, ast::TyFloat(ast::TyF32) => return Primitive(F32), ast::TyFloat(ast::TyF64) => return Primitive(F64), }, - def::DefTyParam(_, _, _, n) => return Generic(token::get_name(n).to_string()), + def::DefTyParam(_, _, _, n) => { + return Generic(token::get_name(n).to_string()) + } _ => {} }; let did = register_def(&*cx, def); |
