diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-11-17 16:13:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-17 16:13:58 +0100 |
| commit | ca38bd4230c80651348eda0964d92ea379c4e1a7 (patch) | |
| tree | 412acb02460485ffb8ff77f37706d454b3ee25dc /src/librustdoc/html | |
| parent | 3d63f25edfc39efc6461aa62803a5160af397edd (diff) | |
| parent | 5903163893ab6560c3f2bf961bfe261c05248ba7 (diff) | |
| download | rust-ca38bd4230c80651348eda0964d92ea379c4e1a7.tar.gz rust-ca38bd4230c80651348eda0964d92ea379c4e1a7.zip | |
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`
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 7022cde459c..28f7a4d3162 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -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>", |
