treat all mir::Constant values as ConstantKind::Val
This commit is contained in:
@@ -54,7 +54,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
||||
Constant {
|
||||
span: source_info.span,
|
||||
user_ty: None,
|
||||
literal: ty::Const::from_usize(self.tcx, value).into(),
|
||||
literal: ConstantKind::from_usize(self.tcx, value),
|
||||
},
|
||||
);
|
||||
temp
|
||||
|
||||
Reference in New Issue
Block a user