Do not collect tokens for doc comments
This commit is contained in:
parent
1773f60ea5
commit
12de1e8985
17 changed files with 138 additions and 159 deletions
|
@ -426,7 +426,7 @@ pub trait PrintState<'a>: std::ops::Deref<Target = pp::Printer> + std::ops::Dere
|
|||
}
|
||||
self.maybe_print_comment(attr.span.lo());
|
||||
match attr.kind {
|
||||
ast::AttrKind::Normal(ref item) => {
|
||||
ast::AttrKind::Normal(ref item, _) => {
|
||||
match attr.style {
|
||||
ast::AttrStyle::Inner => self.word("#!["),
|
||||
ast::AttrStyle::Outer => self.word("#["),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue