1
Fork 0

Rollup merge of #79126 - jyn514:auto, r=GuillaumeGomez

Remove duplicate `Trait::auto` field

It was exactly the same as `is_auto`.

I found this while working on #78082, but it's not required for that PR.

r? `@GuillaumeGomez`
This commit is contained in:
Mara Bos 2020-11-17 16:13:58 +01:00 committed by GitHub
commit ca38bd4230
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 7 deletions

View file

@ -2761,7 +2761,7 @@ fn item_trait(w: &mut Buffer, cx: &Context, it: &clean::Item, t: &clean::Trait,
}
write_loading_content(w, "</div>");
if t.auto {
if t.is_auto {
write_small_section_header(
w,
"synthetic-implementors",
@ -2792,7 +2792,7 @@ fn item_trait(w: &mut Buffer, cx: &Context, it: &clean::Item, t: &clean::Trait,
);
write_loading_content(w, "</div>");
if t.auto {
if t.is_auto {
write_small_section_header(
w,
"synthetic-implementors",
@ -4457,7 +4457,7 @@ fn sidebar_trait(buf: &mut Buffer, it: &clean::Item, t: &clean::Trait) {
sidebar.push_str(&sidebar_assoc_items(it));
sidebar.push_str("<a class=\"sidebar-title\" href=\"#implementors\">Implementors</a>");
if t.auto {
if t.is_auto {
sidebar.push_str(
"<a class=\"sidebar-title\" \
href=\"#synthetic-implementors\">Auto Implementors</a>",