fix: Fix attribute stripping ignoring doc comments

This commit is contained in:
Lukas Wirth 2022-01-07 18:51:10 +01:00
parent 87735e5e9e
commit 81163b8cd4
5 changed files with 35 additions and 18 deletions

View file

@ -772,6 +772,7 @@ impl ast::HasLoopBody for ast::ForExpr {
}
impl ast::HasAttrs for ast::AnyHasDocComments {}
impl ast::HasDocComments for ast::Item {}
impl From<ast::Adt> for ast::Item {
fn from(it: ast::Adt) -> Self {