Compile fixes

This commit is contained in:
Sylvester Hesp 2022-08-24 14:44:38 +02:00 committed by Eduard-Mihai Burtescu
parent 5ede5aaa73
commit 954edc9fb2

View File

@ -495,10 +495,8 @@ fn check_mod_attrs(tcx: TyCtxt<'_>, module_def_id: LocalDefId) {
tcx,
sym: Symbols::get(),
};
tcx.hir().visit_item_likes_in_module(
module_def_id,
&mut check_spirv_attr_visitor.as_deep_visitor(),
);
tcx.hir()
.deep_visit_item_likes_in_module(module_def_id, check_spirv_attr_visitor);
if module_def_id.is_top_level_module() {
check_spirv_attr_visitor.check_spirv_attributes(CRATE_HIR_ID, Target::Mod);
}