diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2022-01-12 21:15:51 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2022-01-19 17:13:21 -0500 |
| commit | a35c1e7c84178233a0123aecdb22e625554134ff (patch) | |
| tree | 0e461aa3b5dff94a22840d3758de5a4bbb253690 | |
| parent | 5a25c0e6e95fb8dc7138b9028c8c76698b637449 (diff) | |
| download | rust-a35c1e7c84178233a0123aecdb22e625554134ff.tar.gz rust-a35c1e7c84178233a0123aecdb22e625554134ff.zip | |
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() |
