Skip to content

Commit a35c1e7

Browse files
committed
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(...))]`
1 parent 5a25c0e commit a35c1e7

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)