impl mk_const_infer
Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
This commit is contained in:
parent
bd2fa222c0
commit
e965b75603
@ -2678,6 +2678,18 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
|
||||
self.mk_ty(Infer(it))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn mk_const_infer(
|
||||
self,
|
||||
ic: InferConst<'tcx>,
|
||||
ty: Ty<'tcx>,
|
||||
) -> &'tcx LazyConst<'tcx> {
|
||||
self.mk_lazy_const(LazyConst::Evaluated(ty::Const {
|
||||
val: ConstValue::Infer(ic),
|
||||
ty,
|
||||
}))
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn mk_ty_param(self,
|
||||
index: u32,
|
||||
|
Loading…
x
Reference in New Issue
Block a user