Fix invalid HTML generation for higher bounds
This commit is contained in:
parent
44995f7afb
commit
321425386a
@ -270,7 +270,7 @@ impl clean::Generics {
|
||||
0 => String::new(),
|
||||
_ if f.alternate() => {
|
||||
format!(
|
||||
"for<{:#}> ",
|
||||
"for<{:#}> ",
|
||||
comma_sep(bound_params.iter().map(|lt| lt.print()))
|
||||
)
|
||||
}
|
||||
@ -1059,7 +1059,11 @@ fn print_hrtb_with_space<'a, 'tcx: 'a>(
|
||||
) -> impl fmt::Display + 'a + Captures<'tcx> {
|
||||
display_fn(move |f| {
|
||||
if !self.generic_params.is_empty() {
|
||||
write!(f, "for<{}> ", comma_sep(self.generic_params.iter().map(|g| g.print(cx))))
|
||||
write!(
|
||||
f,
|
||||
"for<{}> ",
|
||||
comma_sep(self.generic_params.iter().map(|g| g.print(cx)))
|
||||
)
|
||||
} else {
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user