]> git.lizzy.rs Git - rust.git/blobdiff - src/types.rs
Merge pull request #3011 from topecongiro/rustc-ap-syntax
[rust.git] / src / types.rs
index 3a30f40a591da80616773e1cde2edcca70254a5f..07794030ba8deab90d5071fc1011e4c0b20c6a75 100644 (file)
@@ -400,7 +400,7 @@ enum ArgumentKind<T>
             shape.block().indent.to_string_with_newline(context.config),
         )
     };
-    if last_line_width(&args) + first_line_width(&output) <= shape.width {
+    if output.is_empty() || last_line_width(&args) + first_line_width(&output) <= shape.width {
         Some(format!("{}{}", args, output))
     } else {
         Some(format!(