diff options
| author | bors <bors@rust-lang.org> | 2015-02-08 06:15:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-02-08 06:15:52 +0000 |
| commit | cdaf3a4393927ddfba071cfbfe86d95b68e7ae3e (patch) | |
| tree | 9828694d7a89d98659c4f8b7c79d466dabb0b435 /src/librustdoc/clean | |
| parent | f16de18db448ca5de45bff90579990259518e1fc (diff) | |
| parent | e43c478035d82556168432d9be1027eca75af495 (diff) | |
| download | rust-cdaf3a4393927ddfba071cfbfe86d95b68e7ae3e.tar.gz rust-cdaf3a4393927ddfba071cfbfe86d95b68e7ae3e.zip | |
Auto merge of #21999 - tomjakubowski:rustdoc-fixes, r=alexcrichton
r? @alexcrichton
Diffstat (limited to 'src/librustdoc/clean')
| -rw-r--r-- | src/librustdoc/clean/inline.rs | 3 | ||||
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/librustdoc/clean/inline.rs b/src/librustdoc/clean/inline.rs index 9cdad8fccbe..dfa5b01270e 100644 --- a/src/librustdoc/clean/inline.rs +++ b/src/librustdoc/clean/inline.rs @@ -306,13 +306,14 @@ fn build_impl(cx: &DocContext, tcx: &ty::ctxt, let mut item = method.clean(cx); item.inner = match item.inner.clone() { clean::TyMethodItem(clean::TyMethod { - unsafety, decl, self_, generics + unsafety, decl, self_, generics, abi }) => { clean::MethodItem(clean::Method { unsafety: unsafety, decl: decl, self_: self_, generics: generics, + abi: abi }) } _ => panic!("not a tymethod"), diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 3641370d818..7ab9d8c6672 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -27,6 +27,7 @@ pub use self::FunctionRetTy::*; pub use self::TraitMethod::*; use syntax; +use syntax::abi; use syntax::ast; use syntax::ast_util; use syntax::ast_util::PostExpansionMethod; @@ -945,6 +946,7 @@ pub struct Method { pub self_: SelfTy, pub unsafety: ast::Unsafety, pub decl: FnDecl, + pub abi: abi::Abi } impl Clean<Item> for ast::Method { @@ -973,6 +975,7 @@ impl Clean<Item> for ast::Method { self_: self.pe_explicit_self().node.clean(cx), unsafety: self.pe_unsafety().clone(), decl: decl, + abi: self.pe_abi() }), } } @@ -984,6 +987,7 @@ pub struct TyMethod { pub decl: FnDecl, pub generics: Generics, pub self_: SelfTy, + pub abi: abi::Abi } impl Clean<Item> for ast::TypeMethod { @@ -1011,6 +1015,7 @@ impl Clean<Item> for ast::TypeMethod { decl: decl, self_: self.explicit_self.node.clean(cx), generics: self.generics.clean(cx), + abi: self.abi }), } } @@ -1301,6 +1306,7 @@ impl<'tcx> Clean<Item> for ty::Method<'tcx> { generics: (&self.generics, subst::FnSpace).clean(cx), self_: self_, decl: (self.def_id, &sig).clean(cx), + abi: self.fty.abi }) } } |
