Skip to content

Commit 76ce0f4

Browse files
committed
inline Const::from_usize
1 parent 9b8b0d5 commit 76ce0f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_middle/src/mir/consts.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ impl<'tcx> Const<'tcx> {
448448
Self::Val(cv, ty)
449449
}
450450

451+
#[inline]
451452
pub fn from_usize(tcx: TyCtxt<'tcx>, n: u64) -> Self {
452453
let ty = tcx.types.usize;
453454
let typing_env = ty::TypingEnv::fully_monomorphized();

0 commit comments

Comments
 (0)