Skip to content

Commit 6300a97

Browse files
committed
Remove assertion that substitutions are erased. It'd be nice if they
always were but it's dang annoying to weed out all the places that fail to meet the assertion, and it doesn't really hurt things if we don't always get it right.
1 parent 064cf55 commit 6300a97

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/librustc_trans/trans/monomorphize.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,6 @@ pub fn apply_param_substs<'tcx,T>(tcx: &ty::ctxt<'tcx>,
300300
-> T
301301
where T : TypeFoldable<'tcx> + Repr<'tcx> + HasProjectionTypes + Clone
302302
{
303-
assert!(param_substs.regions.is_erased());
304-
305303
let substituted = value.subst(tcx, param_substs);
306304
normalize_associated_type(tcx, &substituted)
307305
}

0 commit comments

Comments
 (0)