From 2c19c0eed90a556cfd48b9ce2c8992a5c9db492d Mon Sep 17 00:00:00 2001 From: Lukas Kalbertodt Date: Sun, 15 Jan 2023 18:01:10 +0100 Subject: [PATCH] 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. --- macro/src/gen/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/macro/src/gen/mod.rs b/macro/src/gen/mod.rs index 51dbb9f..c8bedcd 100644 --- a/macro/src/gen/mod.rs +++ b/macro/src/gen/mod.rs @@ -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)]