diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2015-03-11 08:38:27 +0200 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2015-03-11 23:39:16 +0200 |
| commit | ce10fa8d12cb20d9eee59fffeeaadfcca8badf4a (patch) | |
| tree | c39add1b10d1a2f80d727c3f6db839760a525b97 /src/librustdoc | |
| parent | f98b1763140e4c9b0f122bde2f5cbd24227554a2 (diff) | |
| download | rust-ce10fa8d12cb20d9eee59fffeeaadfcca8badf4a.tar.gz rust-ce10fa8d12cb20d9eee59fffeeaadfcca8badf4a.zip | |
syntax: rename TypeMethod to MethodSig and use it in MethDecl.
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 202b5f59fb7..05139bf1eab 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -951,8 +951,8 @@ pub struct Method { impl Clean<Method> for ast::Method { fn clean(&self, cx: &DocContext) -> Method { - let all_inputs = &self.pe_fn_decl().inputs; - let inputs = match self.pe_explicit_self().node { + let all_inputs = &self.pe_sig().decl.inputs; + let inputs = match self.pe_sig().explicit_self.node { ast::SelfStatic => &**all_inputs, _ => &all_inputs[1..] }; @@ -960,15 +960,15 @@ impl Clean<Method> for ast::Method { inputs: Arguments { values: inputs.clean(cx), }, - output: self.pe_fn_decl().output.clean(cx), + output: self.pe_sig().decl.output.clean(cx), attrs: Vec::new() }; Method { - generics: self.pe_generics().clean(cx), - self_: self.pe_explicit_self().node.clean(cx), - unsafety: self.pe_unsafety().clone(), + generics: self.pe_sig().generics.clean(cx), + self_: self.pe_sig().explicit_self.node.clean(cx), + unsafety: self.pe_sig().unsafety.clone(), decl: decl, - abi: self.pe_abi() + abi: self.pe_sig().abi } } } @@ -982,7 +982,7 @@ pub struct TyMethod { pub abi: abi::Abi } -impl Clean<TyMethod> for ast::TypeMethod { +impl Clean<TyMethod> for ast::MethodSig { fn clean(&self, cx: &DocContext) -> TyMethod { let inputs = match self.explicit_self.node { ast::SelfStatic => &*self.decl.inputs, |
