Put doc-comments under metadata flag.

This commit is contained in:
Stephen Chung
2021-04-09 22:49:47 +08:00
parent 2b1555cff8
commit 29d186b361
4 changed files with 36 additions and 10 deletions

View File

@@ -1002,6 +1002,8 @@ pub fn optimize_into_ast(
lib: None,
#[cfg(not(feature = "no_module"))]
mods: Default::default(),
#[cfg(not(feature = "no_function"))]
#[cfg(feature = "metadata")]
comments: Default::default(),
})
.for_each(|fn_def| {