rustdoc: Strip methods correctly based on privacy
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:
parent
df187a0b67
commit
7168e70bcb
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ impl Clean<Item> for ast::method {
|
||||||
name: Some(self.ident.clean()),
|
name: Some(self.ident.clean()),
|
||||||
attrs: self.attrs.clean(),
|
attrs: self.attrs.clean(),
|
||||||
source: self.span.clean(),
|
source: self.span.clean(),
|
||||||
id: self.self_id.clone(),
|
id: self.id.clone(),
|
||||||
visibility: self.vis.clean(),
|
visibility: self.vis.clean(),
|
||||||
inner: MethodItem(Method {
|
inner: MethodItem(Method {
|
||||||
generics: self.generics.clean(),
|
generics: self.generics.clean(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue