pub(crate) fn pattern_arg_in_extern_fn( ctx: &DiagnosticsContext<'_, '_>, d: &PatternArgInExternFn, ) -> Diagnostic