use crate::RuleId;
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[non_exhaustive]
pub enum UnsupportedForm {
ArgumentCount,
KeywordArguments,
ArgumentTypes,
MissingTypeContext,
}
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[non_exhaustive]
pub struct StdlibDiagnostic {
pub rule: RuleId,
pub form: UnsupportedForm,
pub message: &'static str,
}
impl StdlibDiagnostic {
#[must_use]
pub const fn unsupported(rule: RuleId, form: UnsupportedForm, message: &'static str) -> Self {
Self {
rule,
form,
message,
}
}
}