rustdoc: where clause adjustment to fix tests
- add spaces to output so stripping lines and breaking spaces renders the same - add commas to where clauses in rustdoc tests to match the new output
This commit is contained in:
parent
36bc448c00
commit
ae0e45c028
5 changed files with 14 additions and 11 deletions
|
@ -2710,14 +2710,14 @@ fn render_struct(w: &mut fmt::Formatter, it: &clean::Item,
|
|||
}
|
||||
write!(w, ")")?;
|
||||
if let Some(g) = g {
|
||||
write!(w, "{}", WhereClause { gens: g, indent: 0, end_newline: true })?
|
||||
write!(w, "{}", WhereClause { gens: g, indent: 0, end_newline: false })?
|
||||
}
|
||||
write!(w, ";")?;
|
||||
}
|
||||
doctree::Unit => {
|
||||
// Needed for PhantomData.
|
||||
if let Some(g) = g {
|
||||
write!(w, "{}", WhereClause { gens: g, indent: 0, end_newline: true })?
|
||||
write!(w, "{}", WhereClause { gens: g, indent: 0, end_newline: false })?
|
||||
}
|
||||
write!(w, ";")?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue