Skip to content

Commit

Permalink
Auto merge of rust-lang#93095 - Aaron1011:remove-assoc-ident, r=cjgillot
Browse files Browse the repository at this point in the history
Store a `Symbol` instead of an `Ident` in `AssocItem`

This is the same idea as rust-lang#92533, but for `AssocItem` instead
of `VariantDef`/`FieldDef`.

With this change, we no longer have any uses of
`#[stable_hasher(project(...))]`
  • Loading branch information
bors committed Jan 25, 2022
2 parents aee89cd + a35c1e7 commit 02516c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/same_name_method.rs
Original file line number Diff line number Diff line change
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 02516c4

Please sign in to comment.