diff --git a/macro/src/expand.rs b/macro/src/expand.rs index e6773b5b..c063cf32 100644 --- a/macro/src/expand.rs +++ b/macro/src/expand.rs @@ -296,6 +296,7 @@ fn expand_enum(enm: &Enum) -> TokenStream { #derives #[repr(transparent)] pub struct #ident { + #[allow(missing_docs)] pub repr: #repr, } diff --git a/tests/ui/deny_missing_docs.stderr b/tests/ui/deny_missing_docs.stderr index fcf11a59..c9cb8c97 100644 --- a/tests/ui/deny_missing_docs.stderr +++ b/tests/ui/deny_missing_docs.stderr @@ -31,14 +31,6 @@ error: missing documentation for a struct | = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) -error: missing documentation for a struct field - --> $DIR/deny_missing_docs.rs:9:1 - | -9 | #[cxx::bridge] - | ^^^^^^^^^^^^^^ - | - = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) - error: missing documentation for an associated constant --> $DIR/deny_missing_docs.rs:9:1 |