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:
commit
50a90975c0
6 changed files with 11 additions and 8 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue