remove is_local check since getting the def_id directly makes it unnecessary
This commit is contained in:
parent
6c3e4591b8
commit
7dc974815e
@ -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| {
|
||||
|
Loading…
x
Reference in New Issue
Block a user