diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-17 09:54:53 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-05-23 06:03:17 +1000 |
| commit | b6de7821982caf99f58e2925ae3cb78673b31e24 (patch) | |
| tree | 8dee56c03a4d870fc6a66e7b3bfb8fac3764f5cb | |
| parent | 3fc8f8998c45fbc211b98b5bae04cc87f8eb1619 (diff) | |
| download | rust-b6de7821982caf99f58e2925ae3cb78673b31e24.tar.gz rust-b6de7821982caf99f58e2925ae3cb78673b31e24.zip | |
Clarify a comment.
| -rw-r--r-- | compiler/rustc_expand/src/proc_macro_server.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_expand/src/proc_macro_server.rs b/compiler/rustc_expand/src/proc_macro_server.rs index 1f3547c841a..ec7e4416b91 100644 --- a/compiler/rustc_expand/src/proc_macro_server.rs +++ b/compiler/rustc_expand/src/proc_macro_server.rs @@ -309,10 +309,10 @@ impl ToInternal<SmallVec<[tokenstream::TokenTree; 2]>> use rustc_ast::token::*; // The code below is conservative, using `token_alone`/`Spacing::Alone` - // in most places. When the resulting code is pretty-printed by - // `print_tts` it ends up with spaces between most tokens, which is - // safe but ugly. It's hard in general to do better when working at the - // token level. + // in most places. It's hard in general to do better when working at + // the token level. When the resulting code is pretty-printed by + // `print_tts` the `space_between` function helps avoid a lot of + // unnecessary whitespace, so the results aren't too bad. let (tree, rustc) = self; match tree { TokenTree::Punct(Punct { ch, joint, span }) => { |
