mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
Add space in opaque impl Trait
This commit is contained in:
parent
5bc98076f3
commit
8805e934af
@ -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…
Reference in New Issue
Block a user