diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-17 08:23:24 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-23 06:03:17 +1000 |
| commit | a1b6d46e040176e63954ba3ba5bb18cd4ed3691a (patch) | |
| tree | 479b605483022d25cfb237928e1ee428d67e8dec | |
| parent | c679a5510222cb861a2a23088d1365707d1e0d6f (diff) | |
| download | rust-a1b6d46e040176e63954ba3ba5bb18cd4ed3691a.tar.gz rust-a1b6d46e040176e63954ba3ba5bb18cd4ed3691a.zip | |
Use `JointHidden` in a couple of suitable places.
This has no notable effect, but it's appropriate because the relevant tokens are followed by delimiters.
| -rw-r--r-- | compiler/rustc_ast/src/tokenstream.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast/src/tokenstream.rs b/compiler/rustc_ast/src/tokenstream.rs index fb666550e93..3d46415507d 100644 --- a/compiler/rustc_ast/src/tokenstream.rs +++ b/compiler/rustc_ast/src/tokenstream.rs @@ -661,11 +661,11 @@ impl TokenStream { if attr_style == AttrStyle::Inner { vec![ TokenTree::token_joint(token::Pound, span), - TokenTree::token_alone(token::Not, span), + TokenTree::token_joint_hidden(token::Not, span), body, ] } else { - vec![TokenTree::token_alone(token::Pound, span), body] + vec![TokenTree::token_joint_hidden(token::Pound, span), body] } } } |
