Do not collect tokens for doc comments
This commit is contained in:
@@ -616,12 +616,7 @@ fn prepend_attrs(
|
||||
if attr.style == ast::AttrStyle::Inner {
|
||||
return None;
|
||||
}
|
||||
builder.push(
|
||||
attr.tokens
|
||||
.as_ref()
|
||||
.unwrap_or_else(|| panic!("Attribute {:?} is missing tokens!", attr))
|
||||
.create_token_stream(),
|
||||
);
|
||||
builder.push(attr.tokens());
|
||||
}
|
||||
builder.push(tokens);
|
||||
Some(builder.build())
|
||||
|
||||
Reference in New Issue
Block a user