1
Fork 0

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`
This commit is contained in:
bors 2020-12-18 22:54:47 +00:00
commit 50a90975c0
6 changed files with 11 additions and 8 deletions

View file

@ -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> {