Skip to content

Commit bf18310

Browse files
committed
cg_fulfill_obligation: expect erased regions
1 parent 4387e4b commit bf18310

File tree

1 file changed

+0
-2
lines changed
  • compiler/rustc_trait_selection/src/traits

1 file changed

+0
-2
lines changed

compiler/rustc_trait_selection/src/traits/codegen.rs

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ pub fn codegen_fulfill_obligation<'tcx>(
2323
tcx: TyCtxt<'tcx>,
2424
(param_env, trait_ref): (ty::ParamEnv<'tcx>, ty::PolyTraitRef<'tcx>),
2525
) -> Result<&'tcx ImplSource<'tcx, ()>, CodegenObligationError> {
26-
// Remove any references to regions; this helps improve caching.
27-
let trait_ref = tcx.erase_regions(trait_ref);
2826
// We expect the input to be fully normalized.
2927
debug_assert_eq!(trait_ref, tcx.normalize_erasing_regions(param_env, trait_ref));
3028

0 commit comments

Comments
 (0)