Skip to content

Commit 8805e93

Browse files
Add space in opaque impl Trait
1 parent 5bc9807 commit 8805e93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_middle/src/ty/print/pretty.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ pub trait PrettyPrinter<'tcx>:
688688
}
689689

690690
p!(
691-
write("{}", if first { " " } else { "+" }),
691+
write("{}", if first { " " } else { " + " }),
692692
print(trait_ref.print_only_trait_path())
693693
);
694694

@@ -699,7 +699,7 @@ pub trait PrettyPrinter<'tcx>:
699699
}
700700

701701
if is_future {
702-
p!(write("{}Future", if first { " " } else { "+" }));
702+
p!(write("{}Future", if first { " " } else { " + " }));
703703
first = false;
704704

705705
if let Some(future_output_ty) = future_output_ty {
@@ -712,7 +712,7 @@ pub trait PrettyPrinter<'tcx>:
712712
}
713713

714714
if !is_sized {
715-
p!(write("{}?Sized", if first { " " } else { "+" }));
715+
p!(write("{}?Sized", if first { " " } else { " + " }));
716716
} else if first {
717717
p!(" Sized");
718718
}

0 commit comments

Comments
 (0)