Shift both late bound regions and bound types
This commit is contained in:
parent
1003b7f85e
commit
d0447550da
25 changed files with 165 additions and 119 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue