diff options
| author | bors <bors@rust-lang.org> | 2022-01-25 18:53:45 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-01-25 18:53:45 +0000 |
| commit | 02516c47ab089d7cf8f106c3fbc1921cce370462 (patch) | |
| tree | e609dfd123c1641017607fe0794e3c70854f6949 | |
| parent | aee89cdff18ad0dcf97e464ffd8f63cbac5364f5 (diff) | |
| parent | a35c1e7c84178233a0123aecdb22e625554134ff (diff) | |
| download | rust-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.rs | 2 |
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() |
