Skip to content

Commit

Permalink
rustdoc: Stringify more named lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed May 30, 2014
1 parent 17120c5 commit 5163ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/clean/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(..) |
Expand Down

0 comments on commit 5163ccd

Please sign in to comment.