diff options
| author | Stypox <stypox@pm.me> | 2025-07-02 18:10:57 +0200 |
|---|---|---|
| committer | Stypox <stypox@pm.me> | 2025-07-08 15:23:48 +0200 |
| commit | c4bf37d35824cf22dade0c1c4595186a29a8714d (patch) | |
| tree | 17086393ab02268c4559267ca65aeb59e854a8eb /compiler/rustc_const_eval/src/interpret/eval_context.rs | |
| parent | 45b80ac21a454d343833aad763ef604510c88375 (diff) | |
| download | rust-c4bf37d35824cf22dade0c1c4595186a29a8714d.tar.gz rust-c4bf37d35824cf22dade0c1c4595186a29a8714d.zip | |
Always inline InterpCx::layout_of after perf regression
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/eval_context.rs')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/eval_context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/eval_context.rs b/compiler/rustc_const_eval/src/interpret/eval_context.rs index 068d6369f87..41fc8d47cd3 100644 --- a/compiler/rustc_const_eval/src/interpret/eval_context.rs +++ b/compiler/rustc_const_eval/src/interpret/eval_context.rs @@ -96,7 +96,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> { /// This inherent method takes priority over the trait method with the same name in LayoutOf, /// and allows wrapping the actual [LayoutOf::layout_of] with a tracing span. /// See [LayoutOf::layout_of] for the original documentation. - #[inline] + #[inline(always)] pub fn layout_of( &self, ty: Ty<'tcx>, |
