cg_fulfill_obligation: expect erased regions
This commit is contained in:
parent
4387e4b68f
commit
bf183101dd
@ -23,8 +23,6 @@ pub fn codegen_fulfill_obligation<'tcx>(
|
|||||||
tcx: TyCtxt<'tcx>,
|
tcx: TyCtxt<'tcx>,
|
||||||
(param_env, trait_ref): (ty::ParamEnv<'tcx>, ty::PolyTraitRef<'tcx>),
|
(param_env, trait_ref): (ty::ParamEnv<'tcx>, ty::PolyTraitRef<'tcx>),
|
||||||
) -> Result<&'tcx ImplSource<'tcx, ()>, CodegenObligationError> {
|
) -> Result<&'tcx ImplSource<'tcx, ()>, CodegenObligationError> {
|
||||||
// Remove any references to regions; this helps improve caching.
|
|
||||||
let trait_ref = tcx.erase_regions(trait_ref);
|
|
||||||
// We expect the input to be fully normalized.
|
// We expect the input to be fully normalized.
|
||||||
debug_assert_eq!(trait_ref, tcx.normalize_erasing_regions(param_env, trait_ref));
|
debug_assert_eq!(trait_ref, tcx.normalize_erasing_regions(param_env, trait_ref));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user