make the set of methods between our two Const types more consistent
This commit is contained in:
parent
6e4779ab17
commit
11a4a24d8e
8 changed files with 132 additions and 174 deletions
|
@ -136,7 +136,7 @@ impl<'tcx> InstSimplifyContext<'tcx, '_> {
|
|||
return;
|
||||
}
|
||||
|
||||
let literal = ConstantKind::from_const(len, self.tcx);
|
||||
let literal = ConstantKind::from_ty_const(len, self.tcx);
|
||||
let constant = Constant { span: source_info.span, literal, user_ty: None };
|
||||
*rvalue = Rvalue::Use(Operand::Constant(Box::new(constant)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue