Skip to content

Commit 02516c4

Browse files
committed
Auto merge of rust-lang#93095 - Aaron1011:remove-assoc-ident, r=cjgillot
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(...))]`
2 parents aee89cd + a35c1e7 commit 02516c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/same_name_method.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl<'tcx> LateLintPass<'tcx> for SameNameMethod {
8787
.filter(|assoc_item| {
8888
matches!(assoc_item.kind, AssocKind::Fn)
8989
})
90-
.map(|assoc_item| assoc_item.ident.name)
90+
.map(|assoc_item| assoc_item.name)
9191
.collect()
9292
}else{
9393
BTreeSet::new()

0 commit comments

Comments
 (0)