diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2025-07-08 22:50:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-08 22:50:29 -0500 |
| commit | 00aa4e1627bfb0890302da9fcb715cd34926f8c8 (patch) | |
| tree | c94ea4e968e55783ce840f31111fa09749e2f062 /compiler/rustc_const_eval/src/interpret/eval_context.rs | |
| parent | f1517ddae8a8090ad613c2c6b40eae9a8ede2959 (diff) | |
| parent | e5f7d4d783c1567ddc16e02091bae8bacfca1418 (diff) | |
| download | rust-00aa4e1627bfb0890302da9fcb715cd34926f8c8.tar.gz rust-00aa4e1627bfb0890302da9fcb715cd34926f8c8.zip | |
Rollup merge of #143520 - Stypox:enter_trace_span-closure, r=RalfJung
Fix perf regression caused by tracing See rust-lang/rust#143334, this is another alternative that may be worth benchmarking as suggested in https://github.com/rust-lang/rust/pull/143334#issuecomment-3038953172. r? ``@RalfJung``
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>, |
