From b39e99cfc72a21ae6e697e9db2cef252dfb1aecb Mon Sep 17 00:00:00 2001 From: Tom Jakubowski Date: Tue, 16 Dec 2014 06:32:52 -0800 Subject: [PATCH] rustdoc: render `for<>` on old closure lifetimes --- src/librustdoc/html/format.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs index a2d5530692c..4ec974b0cf7 100644 --- a/src/librustdoc/html/format.rs +++ b/src/librustdoc/html/format.rs @@ -407,7 +407,7 @@ impl fmt::Show for clean::Type { lifetimes = if decl.lifetimes.len() == 0 { "".to_string() } else { - format!("<{:#}>", decl.lifetimes) + format!("for <{:#}>", decl.lifetimes) }, args = decl.decl.inputs, arrow = decl.decl.output, @@ -436,7 +436,7 @@ impl fmt::Show for clean::Type { lifetimes = if decl.lifetimes.len() == 0 { "".to_string() } else { - format!("<{:#}>", decl.lifetimes) + format!("for <{:#}>", decl.lifetimes) }, args = decl.decl.inputs, bounds = if decl.bounds.len() == 0 {