diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-07-04 10:16:51 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-02 16:16:51 +1100 |
| commit | 4c0cbaeb9e799362dd081ff8514f75e23ab8c2f5 (patch) | |
| tree | 68527462ead5fae11c0bf3bf5398b915b999e2ff /compiler/rustc_attr_parsing/src | |
| parent | 4d8f7577b5f2f7c72d1e258c07b882d0afcf0956 (diff) | |
| download | rust-4c0cbaeb9e799362dd081ff8514f75e23ab8c2f5.tar.gz rust-4c0cbaeb9e799362dd081ff8514f75e23ab8c2f5.zip | |
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.
Diffstat (limited to 'compiler/rustc_attr_parsing/src')
| -rw-r--r-- | compiler/rustc_attr_parsing/src/context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_attr_parsing/src/context.rs b/compiler/rustc_attr_parsing/src/context.rs index a68d4578b40..3bf03f84ce8 100644 --- a/compiler/rustc_attr_parsing/src/context.rs +++ b/compiler/rustc_attr_parsing/src/context.rs @@ -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 |
