]> git.lizzy.rs Git - rust.git/commitdiff
remove is_local check since getting the def_id directly makes it unnecessary
authorRyan1729 <Ryan1729@gmail.com>
Mon, 27 Jul 2020 05:06:36 +0000 (23:06 -0600)
committerRyan1729 <Ryan1729@gmail.com>
Mon, 27 Jul 2020 05:06:36 +0000 (23:06 -0600)
clippy_lints/src/derive.rs

index 04395621e9ee5e7c7bd1da567a1741f120177eef..ab001f7773e444842c505d552bd12b41eb83287c 100644 (file)
@@ -215,7 +215,6 @@ fn check_ord_pord<'tcx>(
         if let Some(pord_trait_def_id) = cx.tcx.lang_items().partial_ord_trait();
         if let Some(def_id) = &trait_ref.trait_def_id();
         if *def_id == ord_trait_def_id;
-        if !def_id.is_local();
         then {
             // Look for the PartialOrd implementations for `ty`
             cx.tcx.for_each_relevant_impl(pord_trait_def_id, ty, |impl_id| {