pub(crate) fn validate_per_param_attr_conflicts(
attr: &PerParamMiniextendrAttr,
param_name: &str,
is_dots: bool,
span: Span,
) -> Result<()>Expand description
Validate per-parameter attribute conflicts.
Returns Err if:
coerce+match_argon the same parametercoerce+choices(...)on the same parameterchoices(...)+ explicitdefaulton the same parametermatch_arg+choices(...)on the same parameter (two sources for one choice list; thematch_argplaceholder would shadow the literal list and, with noMatchArgentry to resolve it, dangle in the R formals)no_defaulton a parameter that is neithermatch_argnorchoices, or together withdefault(#1828)defaultorformalon a&Dotsparameter
The type-dependent checks of a choice parameter live in
classify_choice_param, shared with the method paths.