about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-04-17 09:59:27 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-11-21 08:16:54 +1100
commitafe238f66fc9348b8c4a1daacefb93c0ec36296a (patch)
treea5d73e126f02ef75ab679f56e1d01b2ded77d86d /src
parenta1f299953656f95004c69b24ad8071d6899fa9da (diff)
Introduce `InvisibleOrigin` on invisible delimiters.
It's not used meaningfully yet, but will be needed to get rid of
interpolated tokens.
Diffstat (limited to 'src')
-rw-r--r--src/tools/rustfmt/src/macros.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rustfmt/src/macros.rs b/src/tools/rustfmt/src/macros.rs
index 5a35e115d8f..4083d9398f6 100644
--- a/src/tools/rustfmt/src/macros.rs
+++ b/src/tools/rustfmt/src/macros.rs
@@ -620,7 +620,7 @@ fn delim_token_to_str(
                 ("{ ", " }")
             }
         }
-        Delimiter::Invisible => unreachable!(),
+        Delimiter::Invisible(_) => unreachable!(),
     };
     if use_multiple_lines {
         let indent_str = shape.indent.to_string_with_newline(context.config);