auto merge of #9941 : alexcrichton/rust/rustdoc, r=huonw

Beforehand the id of a method was the id of the 'self' argument, but this is not
the id which privacy was using (the id of the ast::method) struct, so by moving
the ids over to the privacy-target ones the methods are now stripped correctly.
This commit is contained in:
bors 2013-10-19 03:56:19 -07:00
commit 0b1fb461d6

View File

@ -337,7 +337,7 @@ impl Clean<Item> for ast::method {
name: Some(self.ident.clean()),
attrs: self.attrs.clean(),
source: self.span.clean(),
id: self.self_id.clone(),
id: self.id.clone(),
visibility: self.vis.clean(),
inner: MethodItem(Method {
generics: self.generics.clean(),