mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Store a Symbol
instead of an Ident
in AssocItem
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(...))]`
This commit is contained in:
parent
5a25c0e6e9
commit
a35c1e7c84
@ -87,7 +87,7 @@ impl<'tcx> LateLintPass<'tcx> for SameNameMethod {
|
|||||||
.filter(|assoc_item| {
|
.filter(|assoc_item| {
|
||||||
matches!(assoc_item.kind, AssocKind::Fn)
|
matches!(assoc_item.kind, AssocKind::Fn)
|
||||||
})
|
})
|
||||||
.map(|assoc_item| assoc_item.ident.name)
|
.map(|assoc_item| assoc_item.name)
|
||||||
.collect()
|
.collect()
|
||||||
}else{
|
}else{
|
||||||
BTreeSet::new()
|
BTreeSet::new()
|
||||||
|
Loading…
Reference in New Issue
Block a user