Auto merge of #34234 - GuillaumeGomez:bad_inlining, r=steveklabnik
Fix invalid inlining r? @steveklabnik So to put a context. @nox found an issue on the generated doc:  So as you can see, the two variants are on the same where they shouldn't. I found out that the issue is also on structs:  And so such is the result of the PR:  
This commit is contained in:
commit
be8bd82268
2 changed files with 6 additions and 2 deletions
|
@ -2265,8 +2265,8 @@ fn item_struct(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
|
|||
if fields.peek().is_some() {
|
||||
write!(w, "<h2 class='fields'>Fields</h2>")?;
|
||||
for (field, ty) in fields {
|
||||
write!(w, "<span id='{shortty}.{name}'><code>{name}: {ty}</code></span>
|
||||
<span class='stab {stab}'></span>",
|
||||
write!(w, "<span id='{shortty}.{name}' class='{shortty}'><code>{name}: {ty}</code>
|
||||
</span><span class='stab {stab}'></span>",
|
||||
shortty = ItemType::StructField,
|
||||
stab = field.stability_class(),
|
||||
name = field.name.as_ref().unwrap(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue