diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-05-30 02:29:06 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-06-20 13:18:41 +1000 |
| commit | ee648edd9033779312037686df9aef48ac26ff2a (patch) | |
| tree | 25c92ff5a75a97b5e935de0e046016976ced2d15 | |
| parent | 76d583ba0ef93268e0690ced5db20dceb3da952d (diff) | |
| download | rust-ee648edd9033779312037686df9aef48ac26ff2a.tar.gz rust-ee648edd9033779312037686df9aef48ac26ff2a.zip | |
Avoid some unnecessary symbol interning.
- `Ident::from_str_and_span` -> `Ident::new` when the string is pre-interned. - `Ident::from_str` -> `Ident::with_dummy_span` when the string is pre-interned. - `_d` and `_e` are unused.
| -rw-r--r-- | clippy_lints/src/bool_assert_comparison.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/bool_assert_comparison.rs b/clippy_lints/src/bool_assert_comparison.rs index ae36bb76117..8f95e44bf85 100644 --- a/clippy_lints/src/bool_assert_comparison.rs +++ b/clippy_lints/src/bool_assert_comparison.rs @@ -56,7 +56,7 @@ fn is_impl_not_trait_with_bool_out<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'tcx>) - .and_then(|trait_id| { cx.tcx.associated_items(trait_id).find_by_ident_and_kind( cx.tcx, - Ident::from_str("Output"), + Ident::with_dummy_span(sym::Output), ty::AssocTag::Type, trait_id, ) |
