diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-05-30 15:19:58 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-05-30 16:08:44 +0000 |
| commit | 02e2766cc38e6df79ec45c9bb2012ab14a1ae8de (patch) | |
| tree | f989a923efa6be2d1da0c66aee3472a9f37b5279 /compiler/rustc_middle | |
| parent | 685d1c9e2904813876f233622148838d3575b518 (diff) | |
| download | rust-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.rs | 5 |
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] |
