Remove TokenStream::flattened and InvisibleOrigin::FlattenToken.
They are no longer needed. This does slightly worsen the error message for a single test, but that test contains code that is so badly broken that I'm not worried about it.
This commit is contained in:
@@ -320,7 +320,7 @@ impl<'sess> AttributeParser<'sess> {
|
||||
ast::AttrArgs::Delimited(args) => AttrArgs::Delimited(DelimArgs {
|
||||
dspan: args.dspan,
|
||||
delim: args.delim,
|
||||
tokens: args.tokens.flattened(),
|
||||
tokens: args.tokens.clone(),
|
||||
}),
|
||||
// This is an inert key-value attribute - it will never be visible to macros
|
||||
// after it gets lowered to HIR. Therefore, we can extract literals to handle
|
||||
|
||||
Reference in New Issue
Block a user