about summary refs log tree commit diff
path: root/compiler/rustc_middle
diff options
context:
space:
mode:
authorOli Scherer <github333195615777966@oli-obk.de>2025-05-30 15:19:58 +0000
committerOli Scherer <github333195615777966@oli-obk.de>2025-05-30 16:08:44 +0000
commit02e2766cc38e6df79ec45c9bb2012ab14a1ae8de (patch)
treef989a923efa6be2d1da0c66aee3472a9f37b5279 /compiler/rustc_middle
parent685d1c9e2904813876f233622148838d3575b518 (diff)
downloadrust-02e2766cc38e6df79ec45c9bb2012ab14a1ae8de.tar.gz
rust-02e2766cc38e6df79ec45c9bb2012ab14a1ae8de.zip
Move naked fn checks to hir_typeck
Diffstat (limited to 'compiler/rustc_middle')
-rw-r--r--compiler/rustc_middle/src/hooks/mod.rs5
1 files changed, 0 insertions, 5 deletions
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]