replace hir().def_kind for def_kind query in rustc_passes
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
This commit is contained in:
@@ -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?
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user