Skip to content

Commit

Permalink
remove is_local check since getting the def_id directly makes it unne…
Browse files Browse the repository at this point in the history
…cessary
  • Loading branch information
Ryan1729 committed Jul 27, 2020
1 parent 6c3e459 commit 7dc9748
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion clippy_lints/src/derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down

0 comments on commit 7dc9748

Please sign in to comment.