1
Fork 0

Port more stuff to mark used attributes

This commit is contained in:
Steven Fackler 2014-05-21 00:05:45 -07:00
parent 50181add04
commit e0648093d8
8 changed files with 63 additions and 53 deletions

View file

@ -1091,8 +1091,8 @@ impl<'a> fmt::Show for Item<'a> {
shortty(self.item), self.item.name.get_ref().as_slice()));
// Write stability attributes
match attr::find_stability(self.item.attrs.iter()) {
Some(ref stability) => {
match attr::find_stability_generic(self.item.attrs.iter()) {
Some((ref stability, _)) => {
try!(write!(fmt,
"<a class='stability {lvl}' title='{reason}'>{lvl}</a>",
lvl = stability.level.to_str(),