From 5c58a1b0031d57d199376c9ed761bad7ed9e3396 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Thu, 1 Dec 2022 23:51:03 +0000 Subject: [PATCH] Remove unnecessary recursive call to parent unsafeck All bodies are unsafe checked anyway. Current MIR unsafeck also just returns for closures. --- compiler/rustc_mir_build/src/check_unsafety.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/compiler/rustc_mir_build/src/check_unsafety.rs b/compiler/rustc_mir_build/src/check_unsafety.rs index dc7f37c2566..bd9535eedda 100644 --- a/compiler/rustc_mir_build/src/check_unsafety.rs +++ b/compiler/rustc_mir_build/src/check_unsafety.rs @@ -627,9 +627,6 @@ pub fn check_unsafety<'tcx>(tcx: TyCtxt<'tcx>, def: ty::WithOptConstParam