about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-01-25 18:53:45 +0000
committerbors <bors@rust-lang.org>2022-01-25 18:53:45 +0000
commit02516c47ab089d7cf8f106c3fbc1921cce370462 (patch)
treee609dfd123c1641017607fe0794e3c70854f6949
parentaee89cdff18ad0dcf97e464ffd8f63cbac5364f5 (diff)
parenta35c1e7c84178233a0123aecdb22e625554134ff (diff)
downloadrust-02516c47ab089d7cf8f106c3fbc1921cce370462.tar.gz
rust-02516c47ab089d7cf8f106c3fbc1921cce370462.zip
Auto merge of #93095 - Aaron1011:remove-assoc-ident, r=cjgillot
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(...))]`
-rw-r--r--clippy_lints/src/same_name_method.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/same_name_method.rs b/clippy_lints/src/same_name_method.rs
index 1bbaa104e60..22b45896955 100644
--- a/clippy_lints/src/same_name_method.rs
+++ b/clippy_lints/src/same_name_method.rs
@@ -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()