Add space in opaque impl Trait
This commit is contained in:
parent
5bc98076f3
commit
8805e934af
1 changed files with 3 additions and 3 deletions
|
@ -688,7 +688,7 @@ pub trait PrettyPrinter<'tcx>:
|
|||
}
|
||||
|
||||
p!(
|
||||
write("{}", if first { " " } else { "+" }),
|
||||
write("{}", if first { " " } else { " + " }),
|
||||
print(trait_ref.print_only_trait_path())
|
||||
);
|
||||
|
||||
|
@ -699,7 +699,7 @@ pub trait PrettyPrinter<'tcx>:
|
|||
}
|
||||
|
||||
if is_future {
|
||||
p!(write("{}Future", if first { " " } else { "+" }));
|
||||
p!(write("{}Future", if first { " " } else { " + " }));
|
||||
first = false;
|
||||
|
||||
if let Some(future_output_ty) = future_output_ty {
|
||||
|
@ -712,7 +712,7 @@ pub trait PrettyPrinter<'tcx>:
|
|||
}
|
||||
|
||||
if !is_sized {
|
||||
p!(write("{}?Sized", if first { " " } else { "+" }));
|
||||
p!(write("{}?Sized", if first { " " } else { " + " }));
|
||||
} else if first {
|
||||
p!(" Sized");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue