Remove impl_polarity query
This commit is contained in:
parent
b43fbe63e7
commit
74c9dffac3
6 changed files with 5 additions and 13 deletions
|
@ -79,7 +79,6 @@ pub fn provide(providers: &mut Providers) {
|
|||
adt_def,
|
||||
fn_sig,
|
||||
impl_trait_header,
|
||||
impl_polarity,
|
||||
coroutine_kind,
|
||||
coroutine_for_closure,
|
||||
collect_mod_item_types,
|
||||
|
@ -1394,11 +1393,6 @@ fn check_impl_constness(
|
|||
}))
|
||||
}
|
||||
|
||||
fn impl_polarity(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::ImplPolarity {
|
||||
let item = tcx.hir().expect_item(def_id);
|
||||
polarity_of_impl(tcx, def_id, item.expect_impl(), item.span)
|
||||
}
|
||||
|
||||
fn polarity_of_impl(
|
||||
tcx: TyCtxt<'_>,
|
||||
def_id: LocalDefId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue