Move the Unevaluated
constant arm upwards in the type structure
This commit is contained in:
parent
cae164753f
commit
b903cb9d60
62 changed files with 405 additions and 316 deletions
|
@ -533,7 +533,9 @@ impl<'b, 'tcx> ElaborateDropsCtxt<'b, 'tcx> {
|
|||
span,
|
||||
ty: self.tcx.types.bool,
|
||||
user_ty: None,
|
||||
literal: ty::Const::from_bool(self.tcx, val),
|
||||
literal: self.tcx.intern_lazy_const(ty::LazyConst::Evaluated(
|
||||
ty::Const::from_bool(self.tcx, val),
|
||||
)),
|
||||
})))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue