1
Fork 0

Add 'feature' and 'since' to stability attributes

This commit is contained in:
Brian Anderson 2015-01-12 18:40:19 -08:00
parent 90aa581cff
commit 94ca8a3610
186 changed files with 2822 additions and 2561 deletions

View file

@ -714,7 +714,7 @@ impl<'a> fmt::String for Stability<'a> {
Some(ref stability) => {
write!(f, "<a class='stability {lvl}' title='{reason}'>{lvl}</a>",
lvl = stability.level,
reason = stability.text)
reason = stability.reason)
}
None => Ok(())
}
@ -728,8 +728,8 @@ impl<'a> fmt::String for ConciseStability<'a> {
Some(ref stability) => {
write!(f, "<a class='stability {lvl}' title='{lvl}{colon}{reason}'></a>",
lvl = stability.level,
colon = if stability.text.len() > 0 { ": " } else { "" },
reason = stability.text)
colon = if stability.reason.len() > 0 { ": " } else { "" },
reason = stability.reason)
}
None => {
write!(f, "<a class='stability Unmarked' title='No stability level'></a>")