Shift both late bound regions and bound types

This commit is contained in:
scalexm 2018-10-22 22:38:51 +02:00
parent 1003b7f85e
commit d0447550da
25 changed files with 165 additions and 119 deletions

View file

@ -213,7 +213,7 @@ impl<'tcx> fmt::Display for Instance<'tcx> {
impl<'a, 'b, 'tcx> Instance<'tcx> {
pub fn new(def_id: DefId, substs: &'tcx Substs<'tcx>)
-> Instance<'tcx> {
assert!(!substs.has_escaping_regions(),
assert!(!substs.has_escaping_bound_vars(),
"substs of instance {:?} not normalized for codegen: {:?}",
def_id, substs);
Instance { def: InstanceDef::Item(def_id), substs: substs }