Change return type of Attribute::tokens
.
The `AttrTokenStream` is always immediately turned into a `TokenStream`.
This commit is contained in:
parent
a56d345490
commit
208ca93cda
3 changed files with 10 additions and 12 deletions
|
@ -388,7 +388,7 @@ impl<'a> StripUnconfigured<'a> {
|
|||
attr: &Attribute,
|
||||
(item, item_span): (ast::AttrItem, Span),
|
||||
) -> Attribute {
|
||||
let orig_tokens = attr.tokens().to_tokenstream();
|
||||
let orig_tokens = attr.tokens();
|
||||
|
||||
// We are taking an attribute of the form `#[cfg_attr(pred, attr)]`
|
||||
// and producing an attribute of the form `#[attr]`. We
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue