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.
This commit is contained in:
Lukas Kalbertodt
2023-01-15 18:01:10 +01:00
parent 4f72a14c60
commit 2c19c0eed9

View File

@@ -249,6 +249,7 @@ fn gen_partial_mod(input: &ir::Input) -> TokenStream {
quote! {
#[doc = #module_doc]
#visibility mod #mod_name {
#![allow(missing_docs)]
use super::*;
#[derive(confique::serde::Deserialize)]