Skip to content

Commit c6676db

Browse files
committed
Some more fine-grained forced inlining
1 parent d81f5ab commit c6676db

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler/rustc_middle/src/mir/type_foldable.rs

+1
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ impl<'tcx> TypeFoldable<'tcx> for Constant<'tcx> {
348348
}
349349

350350
impl<'tcx> TypeFoldable<'tcx> for ConstantKind<'tcx> {
351+
#[inline(always)]
351352
fn fold_with<F: TypeFolder<'tcx>>(self, folder: &mut F) -> Self {
352353
folder.fold_mir_const(self)
353354
}

compiler/rustc_mir/src/interpret/eval_context.rs

+1
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
527527
}
528528
}
529529

530+
#[inline(always)]
530531
pub fn layout_of_local(
531532
&self,
532533
frame: &Frame<'mir, 'tcx, M::PointerTag, M::FrameExtra>,

0 commit comments

Comments
 (0)