Retire is_foreign_item query.
This commit is contained in:
parent
6c64870fa6
commit
37209dcddd
5 changed files with 7 additions and 20 deletions
|
@ -73,7 +73,6 @@ pub fn provide(providers: &mut Providers) {
|
|||
fn_sig,
|
||||
impl_trait_ref,
|
||||
impl_polarity,
|
||||
is_foreign_item,
|
||||
generator_kind,
|
||||
collect_mod_item_types,
|
||||
is_type_alias_impl_trait,
|
||||
|
@ -1466,10 +1465,6 @@ fn compute_sig_of_foreign_fn_decl<'tcx>(
|
|||
fty
|
||||
}
|
||||
|
||||
fn is_foreign_item(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool {
|
||||
matches!(tcx.hir().get_by_def_id(def_id), Node::ForeignItem(..))
|
||||
}
|
||||
|
||||
fn generator_kind(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Option<hir::GeneratorKind> {
|
||||
match tcx.hir().get_by_def_id(def_id) {
|
||||
Node::Expr(&rustc_hir::Expr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue