Port more stuff to mark used attributes
This commit is contained in:
parent
50181add04
commit
e0648093d8
8 changed files with 63 additions and 53 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue