Skip to content

Commit 2c19c0e

Browse files
Add #![allow(missing_docs)] to generated "partial" mods
This makes sense as we might generated new items that don't have any docs. Also, we don't forward any docs of the input structs. That we could change, but I don't think it currently helps in any way. Maybe at the point when Rust analyzer can fully see and understand the generated module, then it would make sense to forward docs. But this is the easier option now.
1 parent 4f72a14 commit 2c19c0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

macro/src/gen/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ fn gen_partial_mod(input: &ir::Input) -> TokenStream {
249249
quote! {
250250
#[doc = #module_doc]
251251
#visibility mod #mod_name {
252+
#![allow(missing_docs)]
252253
use super::*;
253254

254255
#[derive(confique::serde::Deserialize)]

0 commit comments

Comments
 (0)