Continue String to Symbol conversion in rustdoc
This commit is contained in:
parent
fee693d08e
commit
57266f1df6
6 changed files with 11 additions and 8 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue