From 7168e70bcb390c97d39055d17295d8247fa8e4fe Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 18 Oct 2013 18:16:38 -0700 Subject: [PATCH] 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. --- src/librustdoc/clean.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/clean.rs b/src/librustdoc/clean.rs index 3ffe6a7085a2..169363c75538 100644 --- a/src/librustdoc/clean.rs +++ b/src/librustdoc/clean.rs @@ -337,7 +337,7 @@ impl Clean 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(),