Check that #[pointee]
is applied only to generic arguments
This commit is contained in:
parent
2305aad7ac
commit
aa4f16a6e7
5 changed files with 131 additions and 1 deletions
|
@ -937,3 +937,10 @@ pub(crate) struct NakedFunctionTestingAttribute {
|
|||
#[label]
|
||||
pub testing_span: Span,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(builtin_macros_non_generic_pointee)]
|
||||
pub(crate) struct NonGenericPointee {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue