1
Fork 0

Move the Unevaluated constant arm upwards in the type structure

This commit is contained in:
Oliver Scherer 2018-12-11 19:56:59 +01:00
parent cae164753f
commit b903cb9d60
62 changed files with 405 additions and 316 deletions

View file

@ -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),
)),
})))
}