about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRyan1729 <Ryan1729@gmail.com>2020-07-26 23:06:36 -0600
committerRyan1729 <Ryan1729@gmail.com>2020-07-26 23:06:36 -0600
commit7dc974815ec8736f026dc10a070137e0d4601d52 (patch)
tree2c72ff7d7542541591d00177616103acd37c381b
parent6c3e4591b87e6c690b31166867484675dcb1e48c (diff)
downloadrust-7dc974815ec8736f026dc10a070137e0d4601d52.tar.gz
rust-7dc974815ec8736f026dc10a070137e0d4601d52.zip
remove is_local check since getting the def_id directly makes it unnecessary
-rw-r--r--clippy_lints/src/derive.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/clippy_lints/src/derive.rs b/clippy_lints/src/derive.rs
index 04395621e9e..ab001f7773e 100644
--- a/clippy_lints/src/derive.rs
+++ b/clippy_lints/src/derive.rs
@@ -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| {