remove is_local check since getting the def_id directly makes it unnecessary

This commit is contained in:
Ryan1729 2020-07-26 23:06:36 -06:00
parent 6c3e4591b8
commit 7dc974815e

View 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| {