1
Fork 0

Check that #[pointee] is applied only to generic arguments

This commit is contained in:
Brezak 2024-08-20 20:53:49 +02:00
parent 2305aad7ac
commit aa4f16a6e7
No known key found for this signature in database
GPG key ID: CB3891E2B1279D7C
5 changed files with 131 additions and 1 deletions

View file

@ -235,6 +235,8 @@ builtin_macros_non_exhaustive_default = default variant must be exhaustive
.label = declared `#[non_exhaustive]` here
.help = consider a manual implementation of `Default`
builtin_macros_non_generic_pointee = the `#[pointee]` attribute may only be used on generic parameters
builtin_macros_non_unit_default = the `#[default]` attribute may only be used on unit enum variants
.help = consider a manual implementation of `Default`