Skip to content

Commit e7e3c9e

Browse files
committed
Always inline InterpCx::layout_of after perf regression
1 parent f51c987 commit e7e3c9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_const_eval/src/interpret/eval_context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
9696
/// This inherent method takes priority over the trait method with the same name in LayoutOf,
9797
/// and allows wrapping the actual [LayoutOf::layout_of] with a tracing span.
9898
/// See [LayoutOf::layout_of] for the original documentation.
99-
#[inline]
99+
#[inline(always)]
100100
pub fn layout_of(
101101
&self,
102102
ty: Ty<'tcx>,

0 commit comments

Comments
 (0)