replace hir().def_kind for def_kind query in rustc_passes

Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
This commit is contained in:
Miguel Guarniz
2022-05-04 16:43:36 -04:00
parent 90685c6333
commit eea16de9f7
3 changed files with 5 additions and 5 deletions

View File

@@ -88,7 +88,7 @@ pub(crate) fn provide(providers: &mut Providers) {
fn check_item<'tcx>(tcx: TyCtxt<'tcx>, id: hir::ItemId) {
let _: Option<_> = try {
if !matches!(tcx.hir().def_kind(id.def_id), DefKind::Impl) {
if !matches!(tcx.def_kind(id.def_id), DefKind::Impl) {
None?
}