about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-27 18:07:08 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-31 21:59:50 -0700
commit19fe4aad684bc04a9be0c4fc12aeca12353dae1d (patch)
tree287b9054561b6b9d5891f76dd0ffc17f2e75cad6
parent658924068e8cfc0b612ab3d068ec0fa16f422880 (diff)
downloadrust-19fe4aad684bc04a9be0c4fc12aeca12353dae1d.tar.gz
rust-19fe4aad684bc04a9be0c4fc12aeca12353dae1d.zip
rustdoc: Stringify more named lifetimes
cc #14462
-rw-r--r--src/librustdoc/clean/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs
index 5deadc88672..d5cb39ded2a 100644
--- a/src/librustdoc/clean/mod.rs
+++ b/src/librustdoc/clean/mod.rs
@@ -519,9 +519,9 @@ impl Clean<Option<Lifetime>> for ty::Region {
             ty::ReStatic => Some(Lifetime("static".to_string())),
             ty::ReLateBound(_, ty::BrNamed(_, name)) =>
                 Some(Lifetime(token::get_name(name).get().to_string())),
+            ty::ReEarlyBound(_, _, name) => Some(Lifetime(name.clean())),
 
             ty::ReLateBound(..) |
-            ty::ReEarlyBound(..) |
             ty::ReFree(..) |
             ty::ReScope(..) |
             ty::ReInfer(..) |