1
Fork 0

Continue String to Symbol conversion in rustdoc

This commit is contained in:
Guillaume Gomez 2020-12-18 12:05:51 +01:00
parent fee693d08e
commit 57266f1df6
6 changed files with 11 additions and 8 deletions

View file

@ -2966,7 +2966,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
@ -3429,7 +3429,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> {