diff options
| author | Brian Anderson <banderson@mozilla.com> | 2015-01-22 12:33:46 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2015-01-23 15:50:03 -0800 |
| commit | 9758c488a94e77cc8a110a6783a99cf5b91326db (patch) | |
| tree | ca5f2436cb4b9dc39aa7f525cf4a5fc9288d0ac7 /src/librustdoc/html/format.rs | |
| parent | cd6d9eab5d75584edfcae4ffdef8b0836db80c1e (diff) | |
| download | rust-9758c488a94e77cc8a110a6783a99cf5b91326db.tar.gz rust-9758c488a94e77cc8a110a6783a99cf5b91326db.zip | |
Deprecated attributes don't take 'feature' names and are paired with stable/unstable
Conflicts: src/libcore/atomic.rs src/libcore/finally.rs src/test/auxiliary/inherited_stability.rs src/test/auxiliary/lint_stability.rs
Diffstat (limited to 'src/librustdoc/html/format.rs')
| -rw-r--r-- | src/librustdoc/html/format.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs index 012b417a552..255ce03c586 100644 --- a/src/librustdoc/html/format.rs +++ b/src/librustdoc/html/format.rs @@ -765,9 +765,6 @@ impl fmt::String for ModuleSummary { try!(write!(f, "<span class='summary Unstable' \ style='width: {:.4}%; display: inline-block'> </span>", (100 * cnt.unstable) as f64/tot as f64)); - try!(write!(f, "<span class='summary Deprecated' \ - style='width: {:.4}%; display: inline-block'> </span>", - (100 * cnt.deprecated) as f64/tot as f64)); try!(write!(f, "<span class='summary Unmarked' \ style='width: {:.4}%; display: inline-block'> </span>", (100 * cnt.unmarked) as f64/tot as f64)); @@ -783,12 +780,11 @@ impl fmt::String for ModuleSummary { let mut context = Vec::new(); let tot = self.counts.total(); - let (stable, unstable, deprecated, unmarked) = if tot == 0 { - (0, 0, 0, 0) + let (stable, unstable, unmarked) = if tot == 0 { + (0, 0, 0) } else { ((100 * self.counts.stable)/tot, (100 * self.counts.unstable)/tot, - (100 * self.counts.deprecated)/tot, (100 * self.counts.unmarked)/tot) }; @@ -800,12 +796,11 @@ its children (percentages total for {name}): <blockquote> <a class='stability Stable'></a> stable ({}%),<br/> <a class='stability Unstable'></a> unstable ({}%),<br/> -<a class='stability Deprecated'></a> deprecated ({}%),<br/> <a class='stability Unmarked'></a> unmarked ({}%) </blockquote> The counts do not include methods or trait implementations that are visible only through a re-exported type.", -stable, unstable, deprecated, unmarked, +stable, unstable, unmarked, name=self.name)); try!(write!(f, "<table>")); try!(fmt_inner(f, &mut context, self)); |
