From b4f1dfd2c57985a4cbb74fb34073ba04fd6f5f63 Mon Sep 17 00:00:00 2001 From: Timothée Delabrouille Date: Fri, 23 Apr 2021 22:15:13 +0200 Subject: 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. --- src/librustdoc/json/conversions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librustdoc/json') 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 for FunctionPointer { impl FromWithTcx 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 -- cgit 1.4.1-3-g733a5