diff options
Diffstat (limited to 'src/librustdoc/json/conversions.rs')
| -rw-r--r-- | src/librustdoc/json/conversions.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustdoc/json/conversions.rs b/src/librustdoc/json/conversions.rs index 026d8f96dee..e021faa5041 100644 --- a/src/librustdoc/json/conversions.rs +++ b/src/librustdoc/json/conversions.rs @@ -238,7 +238,7 @@ fn stringify_header(header: &rustc_hir::FnHeader) -> String { impl From<clean::Function> for Function { fn from(function: clean::Function) -> Self { - let clean::Function { decl, generics, header, all_types: _, ret_types: _ } = function; + let clean::Function { decl, generics, header } = function; Function { decl: decl.into(), generics: generics.into(), @@ -435,11 +435,12 @@ impl From<clean::Impl> for Impl { } crate fn from_function_method(function: clean::Function, has_body: bool) -> Method { - let clean::Function { header, decl, generics, all_types: _, ret_types: _ } = function; + let clean::Function { header, decl, generics } = function; Method { decl: decl.into(), generics: generics.into(), header: stringify_header(&header), + abi: header.abi.to_string(), has_body, } } |
