Skip to content

Commit

Permalink
Store a Symbol instead of an Ident in AssocItem
Browse files Browse the repository at this point in the history
This is the same idea as #92533, but for `AssocItem` instead
of `VariantDef`/`FieldDef`.

With this change, we no longer have any uses of
`#[stable_hasher(project(...))]`
  • Loading branch information
Aaron1011 committed Jan 19, 2022
1 parent 5a25c0e commit a35c1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/same_name_method.rs
Expand Up @@ -87,7 +87,7 @@ impl<'tcx> LateLintPass<'tcx> for SameNameMethod {
.filter(|assoc_item| {
matches!(assoc_item.kind, AssocKind::Fn)
})
.map(|assoc_item| assoc_item.ident.name)
.map(|assoc_item| assoc_item.name)
.collect()
}else{
BTreeSet::new()
Expand Down

0 comments on commit a35c1e7

Please sign in to comment.