diff options
| author | Timothée Delabrouille <timothee.delabrouille@musicworldmedia.com> | 2021-04-23 22:15:13 +0200 |
|---|---|---|
| committer | Timothée Delabrouille <timothee.delabrouille@musicworldmedia.com> | 2021-04-27 10:17:59 +0200 |
| commit | b4f1dfd2c57985a4cbb74fb34073ba04fd6f5f63 (patch) | |
| tree | 574a6b0f39e26251ab3354f22d86575146726755 /src/librustdoc/json | |
| parent | 5da10c01214a3d3ebec65b8ba6effada92a0673f (diff) | |
| download | rust-b4f1dfd2c57985a4cbb74fb34073ba04fd6f5f63.tar.gz rust-b4f1dfd2c57985a4cbb74fb34073ba04fd6f5f63.zip | |
Removed usage of Attributes in FnDecl and ExternalCrate. Relocate part of the fields in Attributes, as functions in AttributesExt.
refacto use from_def_id_and_attrs_and_parts instead of an old trick most of josha suggestions + check if def_id is not fake before using it in a query Removed usage of Attributes in FnDecl and ExternalCrate. Relocate part of the Attributes fields as functions in AttributesExt.
Diffstat (limited to 'src/librustdoc/json')
| -rw-r--r-- | src/librustdoc/json/conversions.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/json/conversions.rs b/src/librustdoc/json/conversions.rs index 42cd765c294..3d5dc7dbec0 100644 --- a/src/librustdoc/json/conversions.rs +++ b/src/librustdoc/json/conversions.rs @@ -421,7 +421,7 @@ impl FromWithTcx<clean::BareFunctionDecl> for FunctionPointer { impl FromWithTcx<clean::FnDecl> for FnDecl { fn from_tcx(decl: clean::FnDecl, tcx: TyCtxt<'_>) -> Self { - let clean::FnDecl { inputs, output, c_variadic, attrs: _ } = decl; + let clean::FnDecl { inputs, output, c_variadic } = decl; FnDecl { inputs: inputs .values |
