Skip to content

Commit

Permalink
Use JointHidden in a couple of suitable places.
Browse files Browse the repository at this point in the history
This has no notable effect, but it's appropriate because the relevant
tokens are followed by delimiters.
  • Loading branch information
nnethercote committed May 20, 2024
1 parent 73162c0 commit 0f157f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_ast/src/tokenstream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}
}
Expand Down

0 comments on commit 0f157f6

Please sign in to comment.