From 02e2766cc38e6df79ec45c9bb2012ab14a1ae8de Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Fri, 30 May 2025 15:19:58 +0000 Subject: Move naked fn checks to hir_typeck --- compiler/rustc_middle/src/hooks/mod.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'compiler/rustc_middle') diff --git a/compiler/rustc_middle/src/hooks/mod.rs b/compiler/rustc_middle/src/hooks/mod.rs index 12110c36044..c5ce6efcb81 100644 --- a/compiler/rustc_middle/src/hooks/mod.rs +++ b/compiler/rustc_middle/src/hooks/mod.rs @@ -102,11 +102,6 @@ declare_hooks! { /// Ensure the given scalar is valid for the given type. /// This checks non-recursive runtime validity. hook validate_scalar_in_layout(scalar: crate::ty::ScalarInt, ty: Ty<'tcx>) -> bool; - - /// Naked fns can only have trivial binding patterns in arguments, - /// may not actually use those arguments, and the body must consist of just - /// a single asm statement. - hook typeck_naked_fn(def_id: LocalDefId, body: &'tcx rustc_hir::Body<'tcx>) -> (); } #[cold] -- cgit 1.4.1-3-g733a5