Skip to content

Commit 55325e6

Browse files
committed
rustdoc: Stringify more named lifetimes
cc rust-lang#14462
1 parent 34ef4d2 commit 55325e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,9 +519,9 @@ impl Clean<Option<Lifetime>> for ty::Region {
519519
ty::ReStatic => Some(Lifetime("static".to_string())),
520520
ty::ReLateBound(_, ty::BrNamed(_, name)) =>
521521
Some(Lifetime(token::get_name(name).get().to_string())),
522+
ty::ReEarlyBound(_, _, name) => Some(Lifetime(name.clean())),
522523

523524
ty::ReLateBound(..) |
524-
ty::ReEarlyBound(..) |
525525
ty::ReFree(..) |
526526
ty::ReScope(..) |
527527
ty::ReInfer(..) |

0 commit comments

Comments
 (0)