From bb04e7e2a2bd0f1a8e0034f6f93bb00673b4c210 Mon Sep 17 00:00:00 2001 From: Nixon Enraght-Moony Date: Fri, 14 Oct 2022 19:57:01 +0100 Subject: rustdoc-json: Document and Test that args can be patterns. --- src/rustdoc-json-types/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/rustdoc-json-types') diff --git a/src/rustdoc-json-types/lib.rs b/src/rustdoc-json-types/lib.rs index 7379b04ad16..dbbdeecd99d 100644 --- a/src/rustdoc-json-types/lib.rs +++ b/src/rustdoc-json-types/lib.rs @@ -618,6 +618,10 @@ pub struct FunctionPointer { #[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] pub struct FnDecl { + /// List of argument names and their type. + /// + /// Note that not all names will be valid identifiers, as some of + /// them may be patterns. pub inputs: Vec<(String, Type)>, pub output: Option, pub c_variadic: bool, -- cgit 1.4.1-3-g733a5