]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #18860 : aturon/rust/reexports-in-stab-summary, r=brson
authorbors <bors@rust-lang.org>
Wed, 12 Nov 2014 12:21:57 +0000 (12:21 +0000)
committerbors <bors@rust-lang.org>
Wed, 12 Nov 2014 12:21:57 +0000 (12:21 +0000)
Previously, the stability summary page attempted to associate impl
blocks with the module in which they were defined, rather than the
module defining the type they apply to (which is usually, but not
always, the same). Unfortunately, due to the basic architecture of
rustdoc, this meant that impls from re-exports were not being counted.

This commit makes the stability summary work the same way that rustdoc's
rendered output does: all methods are counted alongside the type they
apply to, no matter where the methods are defined.

In addition, for trait impl blocks only the stability of the overall
block is counted; the stability of the methods within is not
counted (since that stability level is part of the trait definition).

Fixes #18812


Trivial merge