1
Fork 0

Disallow unsafe in derive

This commit is contained in:
carbotaniuman 2024-04-23 07:50:53 -05:00
parent 67f5dd1ef1
commit c4de986afa
6 changed files with 37 additions and 2 deletions

View file

@ -295,6 +295,13 @@ pub(crate) struct DerivePathArgsValue {
pub(crate) span: Span,
}
#[derive(Diagnostic)]
#[diag(builtin_macros_derive_unsafe_path)]
pub(crate) struct DeriveUnsafePath {
#[primary_span]
pub(crate) span: Span,
}
#[derive(Diagnostic)]
#[diag(builtin_macros_no_default_variant)]
#[help]