about summary refs log tree commit diff
path: root/clippy_lints/src/methods/bytes_count_to_len.rs
diff options
context:
space:
mode:
authorKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-02-07 01:29:48 -0700
committerKyle Matsuda <kyle.yoshio.matsuda@gmail.com>2023-02-16 17:05:56 -0700
commit98c4a49db8c305c468646715b773fa9b6ec7049a (patch)
tree541623703e40826c44cea7071ce196dce7e71b80 /clippy_lints/src/methods/bytes_count_to_len.rs
parentf0565c939e2f271f57b853a4b7ee21dea0541d0b (diff)
remove bound_type_of query; make type_of return EarlyBinder; change type_of in metadata
Diffstat (limited to 'clippy_lints/src/methods/bytes_count_to_len.rs')
-rw-r--r--clippy_lints/src/methods/bytes_count_to_len.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/bytes_count_to_len.rs b/clippy_lints/src/methods/bytes_count_to_len.rs
index 5b27145ac22..46a20ad412b 100644
--- a/clippy_lints/src/methods/bytes_count_to_len.rs
+++ b/clippy_lints/src/methods/bytes_count_to_len.rs
@@ -17,7 +17,7 @@ pub(super) fn check<'tcx>(
     if_chain! {
         if let Some(bytes_id) = cx.typeck_results().type_dependent_def_id(count_recv.hir_id);
         if let Some(impl_id) = cx.tcx.impl_of_method(bytes_id);
-        if cx.tcx.bound_type_of(impl_id).subst_identity().is_str();
+        if cx.tcx.type_of(impl_id).subst_identity().is_str();
         let ty = cx.typeck_results().expr_ty(bytes_recv).peel_refs();
         if ty.is_str() || is_type_lang_item(cx, ty, hir::LangItem::String);
         then {