diff options
| author | scalexm <alexandre@scalexm.fr> | 2018-10-22 22:38:51 +0200 |
|---|---|---|
| committer | scalexm <alexandre@scalexm.fr> | 2018-11-03 11:41:51 +0100 |
| commit | d0447550dabc1b5fee1bde2a2663ebe15d6bbf2a (patch) | |
| tree | d0bf02333e6f9dd50ae81b4906417eab6bd655a3 /src/librustc/ty/instance.rs | |
| parent | 1003b7f85e75e3a726adc34b9c315e98094176d5 (diff) | |
Shift both late bound regions and bound types
Diffstat (limited to 'src/librustc/ty/instance.rs')
| -rw-r--r-- | src/librustc/ty/instance.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/ty/instance.rs b/src/librustc/ty/instance.rs index 041565c8b5a..2fc8ef548fa 100644 --- a/src/librustc/ty/instance.rs +++ b/src/librustc/ty/instance.rs @@ -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 } |
