diff options
| author | bors <bors@rust-lang.org> | 2020-12-18 22:54:47 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-12-18 22:54:47 +0000 |
| commit | 50a90975c0f78219db45d3bee0676a22695ec103 (patch) | |
| tree | 5eaaad82a3008bf565637fb6e0d52237df115a10 /src/librustdoc/html/render | |
| parent | f74583445702e2e27ec4415376f2c540a83d7ded (diff) | |
| parent | 57266f1df6e9168f262b208f4a2ee62ebdaf9ad2 (diff) | |
| download | rust-50a90975c0f78219db45d3bee0676a22695ec103.tar.gz rust-50a90975c0f78219db45d3bee0676a22695ec103.zip | |
Auto merge of #80154 - GuillaumeGomez:str-to-symbol, r=jyn514
Continue String to Symbol conversion in rustdoc (2) Follow-up of #80119. This is the last one (and I actually expected more conversions but seems like it was the last one remaining...). r? `@jyn514`
Diffstat (limited to 'src/librustdoc/html/render')
| -rw-r--r-- | src/librustdoc/html/render/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 67ccc3d4cf8..c21570d9716 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -2983,7 +2983,7 @@ fn render_assoc_item( AssocItemLink::GotoSource(did, provided_methods) => { // We're creating a link from an impl-item to the corresponding // trait-item and need to map the anchored type accordingly. - let ty = if provided_methods.contains(&*name.as_str()) { + let ty = if provided_methods.contains(&name) { ItemType::Method } else { ItemType::TyMethod @@ -3452,7 +3452,7 @@ fn render_union( #[derive(Copy, Clone)] enum AssocItemLink<'a> { Anchor(Option<&'a str>), - GotoSource(DefId, &'a FxHashSet<String>), + GotoSource(DefId, &'a FxHashSet<Symbol>), } impl<'a> AssocItemLink<'a> { |
