We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad251c0 commit 5f13de2Copy full SHA for 5f13de2
crates/backend/src/codegen.rs
@@ -867,10 +867,18 @@ impl ToTokens for ast::ImportType {
867
868
let no_deref = self.no_deref;
869
870
+ let doc = if doc_comment.is_empty() {
871
+ quote! {}
872
+ } else {
873
+ quote! {
874
+ #[doc = #doc_comment]
875
+ }
876
+ };
877
+
878
(quote! {
879
#[automatically_derived]
880
#(#attrs)*
- #[doc = #doc_comment]
881
+ #doc
882
#[repr(transparent)]
883
#vis struct #rust_name {
884
obj: #internal_obj
0 commit comments